This repo contains the source and building scripts for generating https://wazo-platform.org/.
- The content is authored using the Markdown language.
- Blog posts, release notes and user documentation are edited under
website/, the root for the Docusaurus beta site. The production Gatsby build then syncs them intocontent/blogandcontent/uc-doc, which are autogenerated — do not edit them directly. Ref. package.json and scripts/beta-sync.sh. - Other pages (service/API docs, tutorials) are authored directly in the content directory.
Service diagrams live there twice: as
<name>.puml, which the Gatsby build renders to<name>.svg, and as<name>.mmd, which the Docusaurus build inlines as a mermaid block in place of the.svgimage reference. Keep both in sync when editing a diagram.
Build the builder container:
make builder
cp config.sample.js config.js # the config.js file must existIn config.js, you can configure the Algolia credentials used for the search engine. If left empty, the search engine will be disabled.
make ENV=CORPORATE=1 developThen open http://localhost:8000 in your favorite browser.
There is a top-level .prettierrc file for the prettier formatter.
For uc-doc Markdown documents, the command yarn format:uc-doc should be used (and will be checked by CI).
make ENV=CORPORATE=1 buildThe documentation is built in the public/ folder, you can then run a simple HTTP server:
cd public/
python3 -m http.serverThen open http://localhost:8000 in your favorite browser.
make test