Files
nym/documentation/README.md
T
mx 435673bcb9 Chore/clean config in docs runner (#4172)
* added script for cicd workflow

* added new script to cicd docs workflows

* updated readme with new script + new structure

* removed autodeploy on push to master

* made name for removing config dir more informative

* remove ascii

* test things

* apt

* adding spacing for ease of reading

* removed remove_existing_config.sh from docs ci

* code comment

* removed matrix notification temporarily

* testing moving back to custom runner

* tweaked cd

* fixed script

* remove admonish commands for the moment

* made small change to test deploy

* switched to large gh runner

* namefix for runner

* cleanup and test

* pulling new changes to cd

* removed --no-default-features flag

* reintroduced --no-default flag for test

* updated readme with new command + note on contributions

* reintroduced faster mdbook install

* revert test change

* removed old versions

* add continue on error: false to vercel steps

* updated readme with cicd workflow

---------

Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com>
Co-authored-by: mfahampshire <mfahampshire@protonmail.ch>
2023-11-29 19:38:37 +00:00

4.0 KiB

Documentation

Doc projects

Each directory contains a readme with more information about running and contributing to the projects. Each is built with mdbook - use mdbook serve to build and serve them (defaults to localhost:3000).

If you are looking for the Typescript SDK documentation located at sdk.nymtech.net this can be found in ../sdk/typescript/docs/

Contribution

  • If you wish to add to the documentation please create a PR against this repo.
  • If you are adding a plugin dependency make sure to also add that to the list of plugins in install_mdbook_deps.sh line 12.

Scripts

  • bump_versions.sh allows you to update the platform_release_version and wallet_release_version variables in the book.toml of each mdbook project at once. You can also optionally update the minimum_rust_version as well. Helpful for lazy-updating when cutting a new version of the docs.

  • The following scripts are used by the ci-dev.yml and cd-dev.yml scripts (located in ../.github/workflows/):

    • build_all_to_dist.sh is used for building all mdbook projects and moving the rendered html to ../dist/ to be rsynced with various servers.
    • install_mdbook_deps.sh checks for an existing install of mdbook (and plugins), uninstalls them, and then installs them on a clean slate. This is to avoid weird dependency clashes if relying on an existing mdbook version.
    • post_process.sh is used to post process CSS/image/href links for serving several mdbooks from a subdirectory.
    • removed_existing_config.sh is used to check for existing nym client/node config files on the CI/CD server and remove it if it exists. This is to mitigate issues with mdbook-cmdrun where e.g. a node is already initialised, and the command fails.

CI/CD

Deployment of the docs is partially automated and partially manual.

  • ci-docs.yml will run on pushes to all branches apart from master
  • cd-docs.yml must be run manually. This pushes to a staging branch which then must be manually promoted to production.

This is a monorepo and components that make up Nym as a system are licensed individually, so for accurate information, please check individual files.

As a general approach, licensing is as follows this pattern: