This project uses Node.js, DocFX and Gulp to generate a documentation for App Builder.
To install docfx restore it as a dotnet tool:
dotnet tool restoreIf you are using npm, run:
npm installIf you are using yarn, run:
yarn installStart your command-line shell (CMD, PowerShell, Bash, etc.) with elevated permissions ("Run As Administrator" in Windows). This is required by Chocolatey, for further information read point 1 from here.
The build process depends on the environment variable NODE_ENV to be able to set the correct URL for the Angular Samples. Assign either development, staging, or production to NODE_ENV.
You can create a .env file under the root of the project and set NODE_ENV, for instance, by assigning environment.
NODE_ENV=development
To start the server, run:
for English:
npm start -- --lang enfor Japansese:
npm start -- --lang jpThe command takes an adittional argument --lang [ en | jp ] to serve either the English or Japanese version.
For instance, for English:
npm run build -- --lang enFor the Japanese version:
npm run build -- --lang jpThe build script produces a folder called _site at the root of the respective project.
For instance, for English, the static site lives under en/_site;
The build command is very similar to the beforementioned step. To build the site for staging, run:
npm run build-staging --lang enThe build command for staging is:
npm run build-production --lang jp