Documentation
IXM's documentation is written using the vitepress static site generator. While other generators (such as hugo) might be faster, or produce smaller output, vitepress happens to have the most complete set of features (including a default theme) out of the box, with the easiest ability to customize output.
Vitepress is installable via npm and other NodeJS tooling, which allows us to keep the actual files necessary to build the documentation located within the IXM repository. Additionally, markdown files are kept fairly readable, allowing for offline viewing if NodeJS cannot be used in a local environment.
Building Locally
Build the documentation locally requires a recent NodeJS LTS release. Additionally, the node and npm commands should be on your system PATH environment variables.
To build the documentation:
- Navigate your terminal to the root of the IXM repository
- Run
npm cito installvitepressand other tools that will help you work locally. Thecicommand will pull packages based on thepackage-lock.jsonfile. - Start the development server by running
npm run docs:dev.
This set of commands will be enough to get any user up and running quickly. Additional steps are needed before opening a Pull Request.