diff --git a/documentation/dev-portal/README.md b/documentation/dev-portal/README.md index 330401322b..b43fbc7d2c 100644 --- a/documentation/dev-portal/README.md +++ b/documentation/dev-portal/README.md @@ -1,19 +1,16 @@ # Nym Developer Portal -Developer Portal for the Nym privacy platform built using the [mdBook](https://rust-lang.github.io/mdBook/) docs framework. - - - +Developer Portal for the Nym privacy platform built using the [mdBook](https://rust-lang.github.io/mdBook/) docs framework. Deployed version can be found [here](https://nymtech.net/developers). ## Contributing -Contributions to our documentation are very welcome. Please work on your contribution in either a `feature/` or `chore/` branch from `master` and target your pull request at `master`. +Contributions to our documentation are very welcome. Please work on your contribution in either a `feature/` or `chore/` branch from `master` and target your pull request at `master`. Changes merged to `master` will be autodeployed to the production site. ### Adding community projects and resources -If you have built a project with Nym or are compiling and writing resources about Nym, we want to include your work in the `community-resources/` section to share with the rest of the community! Just follow the existing formatting and add your project to the page, then put in a pull request. +If you have built a project with Nym or are compiling and writing resources about Nym, we want to include your work in the `community-resources/` section to share with the rest of the community! Just follow the existing formatting and add your project to the page, then put in a pull request. ## Variables -There are some variables that are shared across this book, such as the current latest software version. +There are some variables that are shared across this book, such as the current latest software version. Variables are denoted in the `.md` files wrapped in `{{}}` (e.g `{{platform_release_version}}` is the most recent release), and are located in the `book.toml` file under the `[preprocessor.variables.variables]` heading. If you are changing something like the software release version, minimum code versions in prerequisites, etc, **check in here first!** diff --git a/documentation/docs/README.md b/documentation/docs/README.md index 94480868c8..8cc1041c73 100644 --- a/documentation/docs/README.md +++ b/documentation/docs/README.md @@ -6,22 +6,26 @@ Documentation can be viewed at https://nymtech.net/docs ## Contributing Contributions to our documentation are very welcome. Please work on your contribution in either a `feature/` or `chore/` branch from `master` and target your pull request at `master`. +Since these docs autogenerate command output and import docs from binaries in `target/release` on `build` make sure you're branching off of `master` when making your branch. + Changes merged to `master` will be autodeployed to the production site. ### Contributing a new translation -To contribute tranlsations in a new language, please get in touch via our [Keybase](https://keybase.io/team/nymtech.friends) or Discord channels (Matrix coming soon). +To contribute tranlsations in a new language, please get in touch via [Matrix](https://matrix.to/#/#general:nymtech.chat) or [Discord](discord.gg/nym). -## Variables +### Variables There are some variables that are shared across the entire docs site, such as the current latest software version. Variables are denoted in the `.md` files wrapped in `{{}}` (e.g `{{platform_release_version}}` is the most recent release), and are located in the `book.toml` file under the `[preprocessor.variables.variables]` heading. If you are changing something like the software release version, minimum code versions in prerequisites, etc, **check in here first!** -## Diagrams +### Diagrams Most diagrams are simply ascii. Copies are kept in `/diagrams/` for ease of reproducability. Created using [textik](https://textik.com/#). -## Importing files +### Importing files and auto-generated command output -assumes docs is in same dir as nym monorepo +Example files are inserted as per normal with mdbook. + +Some binary command outputs are generated using the [`cmdrun`](https://docs.rs/mdbook-cmdrun/latest/mdbook_cmdrun/) mdbook plugin. ### Updating platform version @@ -39,7 +43,6 @@ You can find other commands in the [mdBook CLI tool docs](https://rust-lang.gith Looping reload is a known issue with the `mdbook-theme` preprocessor used for the table of contents and layout of these docs. As outlined in the `mdbook-theme` [readme](https://github.com/zjp-CN/mdbook-theme#avoid-repeating-call-on-this-tool-when-mdbook-watch) one way to mitigate this is to set `turn-off = true` under `[preprocessor.theme]`. This means that `mdbook serve` or `mdbook watch` ignores changes to the `theme/` directory, which is the source of the looping reload. If you have changed or commented out this line, reintroduce it to remove the looping reload. If you are trying to edit the theme of the docs and want to apply the change, see [here](https://github.com/zjp-CN/mdbook-theme#avoid-repeating-call-on-this-tool-when-mdbook-watch) for more info on how to remove the block, change the theme, and reintroduce the block. ### Checking the mdBook version - To check the version of mdBook installed on your system, you can use the `mdbook --version` command. This will print the version number of mdBook installed on your system in the terminal. The latest release of the binary of the pre-compiled binaries can be found on [GitHub](https://github.com/rust-lang/mdBook/releases).