-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
affdd32
commit af58522
Showing
4 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# docsify-changelog-plugin | ||
This is a docsify plugin to render changelog from given path | ||
|
||
[](https://github.com/standard/standard) | ||
[](https://www.jsdelivr.com/package/npm/docsify-changelog-plugin) | ||
|
||
## Installation | ||
|
||
Add the following stylesheet along with your other stylesheets | ||
|
||
```html | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/style.css"/> | ||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/> | ||
``` | ||
|
||
And add the following script | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"></script> | ||
``` | ||
|
||
## Configure | ||
|
||
In your docsify config object add the following | ||
|
||
```js | ||
window.$docsify = { | ||
... | ||
changelog : 'CHANGELOG.md' // path of your changelog, it can be remote as well | ||
... | ||
} | ||
``` | ||
|
||
### Thanks it, Now enjoy :tada: your changelog integration with docsify | ||
|
||
## Screen Shot | ||
|
||
<p align="center"> | ||
|
||
<img alt="ss" src="https://imgur.com/JAr22Ik.png" width="400px" /> | ||
<br/> | ||
<img alt="ss" src="https://imgur.com/FGljyYR.png" width="400px" /> | ||
|
||
</p> | ||
|
||
|
||
## Contribution Guide | ||
|
||
- Clone the repo | ||
- start editing on `src/index.js` and `src/style.styl` | ||
- The build step using | ||
- the `styl -> css` using `styl` CLI | ||
- Optimize the generated style using `cssnano` and `postcss` | ||
- Build the javascript using `rollup` | ||
- optimize it using `rollup-plugin-terser` | ||
- styling rule using `standard` | ||
|
||
|
||
## Faq | ||
|
||
**Is it responsive?** | ||
Not yet! soon, I will add the styles to make it responsive | ||
|
||
**Will it break `mergeNavbar` options?** | ||
May be | ||
|
||
**Can I change the style of the button and the panel?** | ||
Not yet !, but soon it will be possible using css variable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>docsify-changelog-plugin</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="Description" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
/> | ||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="//cdn.jsdelivr.net/npm/docsify-changelog-plugin@latest/dist/style.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" | ||
/> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script> | ||
window.$docsify = { | ||
name: 'docsify-changelog-plugin', | ||
repo: '' | ||
} | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/docsify-changelog-plugin@latest/dist/index.js"></script> | ||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters