$ npm install
$ npm start
All markdown source files are in /docs/
After deploying new or updated documentation to the server, you must run the build script to generate HTML files from the Markdown files in /docs
.
$ npm run build
Processing file /Users/james/projects/dadi/product/docs/docs/api-wrapper/2.0.md
Done.
Processing file /Users/james/projects/dadi/product/docs/docs/api-wrapper/3.0.md
Done.
Processing file /Users/james/projects/dadi/product/docs/docs/cli/2.1.md
Done.
The website is using pm2
to manage the service. Restart the service after generating the HTML files:
pm2 log docs
- view logspm2 show docs
- view statuspm2 restart docs
- restart apppm2 monit
- monitor all pm2 processes
To add blockquotes that stand out, for tips/tricks/warnings, use the following format. Available types are advice
, warning
and danger
.
> **Security Note**
>
> We **strongly** recommend creating an Amazon IAM account specifically for accessing your S3 buckets.
> -- warning
A Dust helper @html
is available that loads the specified file from the file system:
{#version.results}
<div class="docs docs--{attributes.product}">
{@html app=attributes.product file=attributes._loc}{/html}
</div>
{/version.results}