2.1 KiB
README for the documentation site
Building after a fork
Run locally
To run locally:
-
Get the content from the downstream repos.
./get-content.sh
-
Build and serve locally.
bundle exec jekyll serve --config _config.yml,staticman.yml
Use this format to turn on production features:
JEKYLL_ENV=production bundle exec jekyll serve --config _config.yml
Deploy via Netlify
To deploy to Netlify:
-
Build the site.
JEKYLL_ENV=production bundle exec jekyll build --config _config.yml
-
Force add the
_site
directory.git push -f origin
Test a Deploy with Surge
cd _site
surge
surge --domain raspy-songs.surge.sh
To generate the CLI json manually
The _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.
-
Install the latest version of the cli.
$ npm install -g https://github.com/blockstack/cli-blockstack
-
Generate the json for the cli in the `docs.blockstack1 repo.
$ blockstack-cli docs | python -m json.tool > _data/cliRef.json
-
Make sure the generated docs are clean.
Clarity Reference
As of 8/12/19 Clarity is in the develop branch of core. You can build the Clarity command line from the Docker image. core/src/vm/docs/mod.rs
-
Pull the latest developer preview from the Docker Hub.
$ docker pull blockstack/blockstack-core:clarity-developer-preview
-
Build the lastest JSON.
docker run -it -v $HOME/blockstack-dev-data:/data/ blockstack/blockstack-core:clarity-developer-preview blockstack-core docgen | jsonpp > ~/repos/docs.blockstack/_data/clarityRef.json
-
Build the documentation and verify the Clarity reference is building correctly.