Download the PHP package webvpf/wn-simpledocs-plugin without Composer
On this page you can find all versions of the php package webvpf/wn-simpledocs-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webvpf/wn-simpledocs-plugin
More information about webvpf/wn-simpledocs-plugin
Files in webvpf/wn-simpledocs-plugin
Package wn-simpledocs-plugin
Short Description Simple Documentation - plugin for Winter CMS.
License MIT
Homepage https://github.com/WebVPF/wn-simpledocs-plugin
Informations about the package wn-simpledocs-plugin
wn-simpledocs-plugin
Simple documentation for WinterCMS website
Screenshots: https://github.com/WebVPF/wn-simpledocs-plugin/issues/2
Installing Composer
Documentation creation
To display documentation on the site, create three files (layout template and two CMS pages).
Documentation layout template
Create a new layout for your documentation template. To do this, create a file docs.htm
with the following content in the folder themes/nameTheme/layouts
:
Documentation Pages
Now we need to create two CMS pages. One of them will display Main documentation page, the second - documentation records.
Both of these pages will be hidden. Hidden pages are only available to logged in users (authorized in the backend). To make your documentation available to everyone on the Internet, simply remove the is_hidden = 1
parameter from the page settings.
Documentation main page
Create a file docs.htm
in the folder themes/nameTheme/pages/docs
Documentation record output page
Create a file item.htm
in the folder themes/nameTheme/pages/docs
Styles for quick start connected in layout:
Code highlighting
Use Markdown syntax to insert example code into the text of your document.
Before the beginning of the code and at the end, insert lines of characters ```
.
Add the identifier of the programming language or technology to which the code belongs to the first three quotes. For example, for HTML the identifier is html
, for CSS - css
, for JavaScript - javascript
or a short synonym js
.
Example of inserting PHP code: