KDoc Kirby Theme
Documentation website theme for Kirby CMS.
Check out a demo of it, and learn more about how it works here: https://natesteiner.com/kdoc/
To run the documentation server, just run:
Get a coffee
npm run dev
Which should open up your web browser with the documentation. As you make edits, just reload the page and your edits should build automatically.
You can write the docs by either modifying the content page directly, or by using the built in documentation editor at localhost:8008/panel. This is the recommended method as it supports markdown and kirbytext.
To login just use:
username: svgjs password: svgjs
Not sure why we have a login, but we do, so deal with it
To build the docs, navigate to localhost:8008/statify.php, which will build the static files and output a
/static folder, by pushing the contents of static to master, the docs will update automagically on the site.
Note that you must be a core collaborator to make these changes, if you would like to submit a pull request, please do so and we will update the docs on our end.
If you run
npm run dev and encounter any kind of permission denied issue on any particular files, just try deleting your node_modules folder and running npm install again. I have seen this happen a few times, so just look out for it