This website is built using Docusaurus 2, a modern static website generator.
Documentation lives in Platformatic repo.
The scripts/doc-watcher.js file helps you "import" those docs into ./docs directory.
There are two ways to do this
- run
./scripts/doc-watcher.js --source ../relative/path/to/plt/docs/directoryin one terminal and runnpx docusaurus starton another - run
DOCS=path/to/platformatic/docs npm run start.
The script will keep directories in sync. You should work on platformatic/docs directory and commit changes in that repo. On this repo ./docs directory is git-ignored.
npm run start
On a unix system:
mkdir /workdir(chose your own directory)cd /workdirgit clone https://github.com/platformatic/platformatic.gitor use your own forkgit clone https://github.com/platformatic/oss.gitor use your own forkcd /workdir/oss- run
DOCS=/workdir/platformatic/docs npm run startto start the development server
Deploy happens in Github Actions. Take a look at the workflow in .github folder.
We keep online only the last 5 versions of Platformatic backwards.
Every time a new version is realeased, this repository is tagged with vX.Y.Z
To generate the documentation for a specific version, checkout the related tag and run the development server.
Sometimes when you delete a directory in ./docs, docusaurus will crash. Just stop it and restart.