This readme describes the project file organization and steps for building the Blockstack documentation site found at [docs.blockstack.com]()https://docs.blockstack.com).
You can also make use of the **Edit this page on GitHub** link found at the bottom of every page in the docs.
![A screenshot of docs.blockstack.org](/public/images/docs-homepage.png)
## Running and building the site locally
@ -10,89 +8,23 @@ If you are interested in contributing to the site and making changes, please ref
## Generated documentation
### To generate the CLI json manually
### Blockstack CLI reference
The `src/_data/cliRef.json` file is generated from the `blockstack-cli` subcommand `docs`. This data file is consumed by the `_includes/commandline.md` file which is used to serve up the reference.
The `src/_data/cli-reference.json` file is generated from the `blockstack-cli` subcommand `docs`.
1. Install the latest version of the cli according to the instructions at: https://github.com/blockstack/cli-blockstack
2. Generate the json for the cli in the `docs.blockstack` repo.
3. Make sure the generated docs are clean by building the documentation.
If you run into any problem in the generation usually it results from a problem in the repo. You can make a pull request back to the repo to fix anything.
### Clarity Reference
As of 8/12/19 Clarity is in the [develop](https://github.com/blockstack/blockstack-core/tree/develop) branch of core. You can build the Clarity command line from the Docker image. `core/src/vm/docs/mod.rs`
1. Pull the latest developer preview from the Docker Hub.
There is a json file that is generated via the `stacks-blockchain` repo, which automatically brings it over to this repo
via a github action.
This generates the JSON source files which are consumed through Liquid templates into markdown.
### FAQs
7. Rebuild the documentation site with Jekyll.
8. Review the changes in the Clarity documentation to ensure that no breaking changes were introduced through code changes.
9. If you find the documentation is no longer formatting correctly or there are errors in the reference, create a PR against the `blockstack-core` repo.
### View and test the clarity cli
You can view [the source code](https://github.com/blockstack/blockstack-core/blob/develop/src/clarity.rs).
1. Pull the Stacks Node clarity-developer-preview image from Docker Hub.