@pixi/webdoc-template
v2.2.3
Published
PixiJS' webdoc template for API documentation
Downloads
3,379
Readme
@pixi/webdoc-template
This template is used to generate the standalone PixiJS API documentation and was based on pixi-jsdoc-template.
For usage, see webdoc.
Working with docs generation
- Docs generation triggers the
publish.js
script which will generate and manipulate all the doc nodes that are then used to build out the docs HTML files - based on the templates within thetmpl
directory. The.tmpl
template files can be edited directly and will be reflected on rebuild. - Static resources within the
static
directory will also be copied over into the directory where the compiled HTML files go, which include the scripts and the styles. - To iterate on the
publish.js
, themain.js
script and themain.css
, please refer to thesrc
directory which hold all the source files for these 3 compiled files.src/index.js
is the entry point for the compilation ofpublish.js
whilesrc/static/index.js
is formain.js
that gets loaded on the client.src/static/styles/index.scss
is the entry point for the compilation ofmain.css
that also gets loaded alongside the client from within the HTML files.
- Once altered, run
npm run build
to kick start the compilation.npm run watch
is also available for re-compilation on changes.