Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davebitter/storybook-addon-changelog-viewer
Show Changelog files in the Storybook UI
https://github.com/davebitter/storybook-addon-changelog-viewer
changelog docs markdown storybook-addons viewer
Last synced: 5 days ago
JSON representation
Show Changelog files in the Storybook UI
- Host: GitHub
- URL: https://github.com/davebitter/storybook-addon-changelog-viewer
- Owner: DaveBitter
- License: mit
- Created: 2023-05-08T11:45:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T06:10:21.000Z (5 months ago)
- Last Synced: 2024-10-24T15:14:23.095Z (14 days ago)
- Topics: changelog, docs, markdown, storybook-addons, viewer
- Language: TypeScript
- Homepage:
- Size: 745 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Storybook Addon Changelog Viewer
_Show Changelog files in the Storybook UI_ - made with ❤️ by [Dave Bitter](https://github.com/DaveBitter)
> Storybook v7.0.0 or higher is needed to use this addon
![Storybook UI showing the changelog tab active and displaying a mock changelog](https://github.com/DaveBitter/storybook-addon-changelog-viewer/raw/main/storybook-addon-changelog-viewer-demo.png)
## Usage
1. Install addon
```
npm install storybook-addon-changelog-viewer --save
```
```
yarn add storybook-addon-changelog-viewer --save
```
2. Load addon in `.storybook/main.js`
```js
module.exports = {
// other configuration here
addons: [
// other addons here.
"storybook-addon-changelog-viewer",
],
};
```
3. Import changelog file in story and pass it to the `changelog` parameter```js
import changelog from "./CHANGELOG.md";export default {
title: "Your Component",
parameters: {
changelog: changelog,
},
};
```4. View changelog in the Storybook UI. There should be a new tab called "Changelog"
## Features
- View changelog files in the Storybook UI
- Render Markdown as HTML
- Automatically generate a navigation with links to all headings with a SemVer string (e.g. "## 1.0.0 - 2022-06-30")## Motivation
This addon was created to make it easier to view changelog files in the Storybook UI. Since Storybook v7.0.0. the [Storybook Addon Notes
](https://storybook.js.org/addons/@storybook/addon-notes) is no longer working which is why this addon was created.