We have decided to stop the maintenance of this public GitHub repository.
- Run this command in the terminal:
git clone https://github.com/YaaS/docpad-skeleton-apidocs.git
- Open the cloned project:
cd docpad-skeleton-apidocs
- Call the following commands:
npm run prepare
npm run init
-> to load the currently-integrated sample datanpm run start
- Open this page: http://localhost:9778/
- Start the container in the terminal:
docker run -it --rm --name api-doc-sample -p 9778:9778 derberg/dsa-quickstart /bin/bash
- Start the documentation portal with sample data in it:
npm run start
- Open this page: http://localhost:9778/
If you called npm run prepare
at least once, it means all the dependencies you need are installed. Now you can just start generation and the server with the following command: npm run start
.
To trigger generation with production configuration:
- Call the following commands:
npm run init
andnpm run prepare-deploy
- Notice the new out folder. This folder contains all generated files and you can use them in production. For example, you can copy the contents of the out folder to your GitHub Pages repository.
To push generated documentation to your repository, run:
npm run preparePushResult && npm run pushResult
Start using this documentation template by following these tutorials:
Automate your documentation builds by following Set up documentation continuous delivery pipeline.