docs-template
is a generic website template for project docs. I use this repository to manage the core website features for other libraries I maintain (eg. type-mark and Mekpie). This website template makes creating docs sites faster and ensures that their look and feel is consistent.
For an example of what the docs sites produced by this template look like, head over to the example page.
This website template is intended for personal use, it links to my personal website and includes branding and materials related to me. If you are interested in using this template for your own site, feel free, but be aware that the steps below will probably be insufficient, as you will need to change other files that for example link to my homepage.
When creating a new docs sits be sure to do all of the following steps:
- Update
pages/index.json5
- Update
pages/index.md
- Update/remove
pages/api.json5
andpages/api.md
- Add any other desired pages
- Update
Vars.less
for site look and feel - Update
Vars.js
for site variables - Update
components/Logo.js
- Update
components/Places.js
- Replace
static/favicon.ico
- Test, build, and export
- Add
.nojekyll
Start the site with
$ npm run dev
And in a separate terminal start the page builder
$ node ./lib/page-builder.js
Run the following commands. Because of the GitHub pages url prefix you will not be able to test the output folder with static hosting.
$ npm run build
$ npm run export
$ mov out docs