techdocs-cli

Usage
See techdocs-cli usage docs.
Development
NOTE: When we build techdocs-cli
it copies the output techdocs-cli-embedded-app
bundle into the packages/techdocs-cli/dist
which is then published with the
@techdocs/cli
npm package.
Running
yarn build --scope @techdocs/cli
packages/techdocs-cli/bin/techdocs-cli
export PATH=/path/to/backstage/packages/techdocs-cli/bin:$PATH
If you want to test live test changes to the packages/techdocs-cli-embedded-app
you can serve the app and run the CLI using the following commands:
cd packages/techdocs-cli-embedded-app
yarn start
yarn techdocs-cli:dev [...options]
Testing
Running unit tests requires mkdocs to be installed locally:
pip install mkdocs
pip install mkdocs-techdocs-core
Then run yarn test
.
Use an example docs project
We have created an example documentation project and it's shipped with techdocs-container repository, for the purpose of local development. But you are free to create your own local test site. All it takes is a docs/index.md
and mkdocs.yml
in a directory.
git clone https://github.com/backstage/techdocs-container.git
cd techdocs-container/mock-docs
techdocs-cli serve
techdocs-cli serve:mkdocs