# docsify-example-panels
[](https://www.npmjs.com/package/docsify-example-panels)
[](https://github.com/docsifyjs/awesome-docsify#plugins)
[](https://app.codacy.com/app/VagnerDomingues/docsify-example-panels?utm_source=github.com&utm_medium=referral&utm_content=VagnerDomingues/docsify-example-panels&utm_campaign=Badge_Grade_Dashboard)
[](https://github.com/VagnerDomingues/docsify-example-panels/blob/master/LICENSE)
[](https://www.jsdelivr.com/package/npm/docsify-example-panels)
[](https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2FVagnerDomingues%2Fdocsify-example-panels&hashtags=docsify,developers,frontend,plugin,documentation)
Star
A [docsify.js](https://docsify.js.org) plugin for rendering example panels content from markdown.
## Demo
If you are on widescreen, checkout the *right* panel, *right* there →
This is an example panel.
You can see it's usage in practice in the docs listed below:
- [Fairlay API](https://fairlay.com/api)
- [FLAP services](https://docs.flap.cloud/#/create_new_service?id=special-files)
please contact me if you use docsify-example-panels. i would like to display it here too.
## Features
**Advantages**
- Create div panels really fast and anywhere in your .md file.
- Choose the classnames for your divs and stylize them.
- Use CSS custom properties to change it's structure.
- Prefab CSS classes for "left-panel", "right-panel" and "title-panel".
**Compatibility**
- Fully compatible with any markdown or html features:
code snippets
```html
```
quotes
> just a quote
?> a cooler quote... (at least i think it is)
images (memorable)
This is a paragraph.
``` ### **JS** ```js // JavaScript function add(a, b) { return Number(a + b); } ``` ### **CSS** ```css /* CSS */ body { background: white; } ``` ## Installation Just add the docsify-example-panels plugin to your `HTML` after docsify and you'll be ready to go. ```html ``` ## Usage 1. Define a panel in markdown file using `panels:start` and `panels:end` HTML comments. HTML comments are used to mark the start and end of a panel. The use of HTML comments prevents any markup from being displayed when markdown is rendered as HTML outside of your docsify site (e.g. Github, GitLab, etc). ```markdown (...) - Awesome div wrapper ``` 2. Define divs within a panel in markdown file using HTML comments. The character sequence after double dot : will be rendered as the classname of the div content. all proceeding content will be associated with that div up to start of the next div `div:class` or end of panel `panels:end` comments. ```markdown (...) - Awesome title (...) - Awesome explanation (...) - Awesome example ``` 3. You can add a custom class aswell. perphaps you want something like a "floating-cat" class ```markdown ... ``` ## Customization ### Properties Allows you to customize panels styles without rewriting any CSS rule. ```css :root{ /* Document */ --docsify-example-panels-document-width: 90%; /* Wrapper */ --docsify-example-panels-wrapper-width: 100%; /* Standards */ --docsify-example-panels-padding-inner : 8px 16px; --docsify-example-panels-padding-surroundings : 0px; /* Panel Left */ --docsify-example-panels-left-panel-background : transparent; --docsify-example-panels-left-panel-width : 60%; /* Panel Right */ --docsify-example-panels-right-panel-background : transparent; --docsify-example-panels-right-panel-width : 40%; /* Titles */ --docsify-example-panels-title-background: transparent; } ``` ### Custom Properties You can change properties by adding a ` ```
```
2. will be rendered like this:
```html