2.2.3 • Published 2 years ago
@pixi/webdoc-template v2.2.3
@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.jsscript 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 thetmpldirectory. The.tmpltemplate files can be edited directly and will be reflected on rebuild. - Static resources within the
staticdirectory 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.jsscript and themain.css, please refer to thesrcdirectory which hold all the source files for these 3 compiled files.src/index.jsis the entry point for the compilation ofpublish.jswhilesrc/static/index.jsis formain.jsthat gets loaded on the client.src/static/styles/index.scssis the entry point for the compilation ofmain.cssthat also gets loaded alongside the client from within the HTML files.
- Once altered, run
npm run buildto kick start the compilation.npm run watchis also available for re-compilation on changes.