bluegg / websitedocumentation
Add Style Guide & CMS Guide to your website
Installs: 225
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Language:Twig
Type:craft-plugin
Requires
- craftcms/ckeditor: ^4
- craftcms/cms: ^5.0.0
- dev-main
- 5.x-dev
- 4.x-dev
- 4.1.1
- 4.1.0
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.6.0
- 3.5.1
- 3.5.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.6.1
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.1
- v2.2.0.x-dev
- 2.2.0
- v2.1.x-dev
- 2.0.2
- v2.0.1.x-dev
- 2.0.1
- 2.0.0-beta
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.0.0
- dev-3.0.0-beta
- dev-amends
- dev-v2.0.0-beta
This package is auto-updated.
Last update: 2024-09-30 10:32:05 UTC
README
Creates two links within admin for Style Guide and CMS Guide
Requirements
This plugin requires Craft CMS 5+.
Installation
To install the plugin, follow these instructions.
- Open your terminal and go to your Craft project:
cd /path/to/project/craft
- Then tell Composer to load the plugin:
composer require towardstudio/websitedocumentation
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Website Documentation.
Usage
Installing Demo Templates
Once the plugin has installed you will see a new menu item called Documentation.
If you go to Plugin Settings -> Install Templates and click install, this will copy the default guides to your templates folder.
Within this folder you can go to Layouts -> CMS Guide / Styleguide and update the paths to where your CSS and JS live.
General Settings
Within General Settings you can add a logo, and choose colours which will be displayed across both Style and CMS Guides.
CMS Guide Settings
Here you can create the structure for your CMS Guide and add some default entries to get you started.
Adding new sections to the styleguide
If you're using the demo templates, you can add a new section by opening up the _config.twig file and adding new items to the Object. Each item can have a Sub menu as well.
The naming of these items are used in kebab case for the file in the sections folder. For example if you call a section Heroes you'll name your file heroes.twig.
Brought to you by Toward