Mary Anthony
7666248fe7
|
5 years ago | |
---|---|---|
_android | 5 years ago | |
_browser | 5 years ago | |
_common | 5 years ago | |
_community | 5 years ago | |
_core | 5 years ago | |
_data | 5 years ago | |
_develop | 5 years ago | |
_faqs | 5 years ago | |
_includes | 5 years ago | |
_ios | 5 years ago | |
_layouts | 6 years ago | |
_org | 5 years ago | |
_plugins | 6 years ago | |
_sass | 6 years ago | |
_storage | 5 years ago | |
assets | 5 years ago | |
exclude | 6 years ago | |
.gitignore | 6 years ago | |
404.md | 6 years ago | |
Gemfile | 6 years ago | |
Gemfile.lock | 5 years ago | |
Guardfile | 6 years ago | |
README.md | 5 years ago | |
THEME_README.md | 6 years ago | |
_config.yml | 5 years ago | |
_redirects | 6 years ago | |
blockstack-icon.png | 5 years ago | |
changelog.md | 7 years ago | |
collections.json | 5 years ago | |
contact.md | 6 years ago | |
get-content.sh | 7 years ago | |
history.png | 6 years ago | |
index.md | 6 years ago | |
overview_auth.md | 6 years ago | |
package-lock.json | 5 years ago | |
package.json | 6 years ago | |
robots.txt | 6 years ago | |
staticman.yml | 6 years ago | |
thanks.md | 7 years ago |
README.md
README: Overview Documentation Repository
How the Documentation is Organized
Directories that contain only content
Directory | Purpose | Technical Repo(s) |
---|---|---|
_android | SDK tutorial. Part of the developer menu. | https://github.com/blockstack/blockstack-android |
_browser | Information for end-users about our identity, Storage, and using the browser. There are also three of the original tutorials in there. User docs controlled by in the the user menu. The three tutorials that appear in the developer menu There is an outstanding issue to move these. | https://github.com/blockstack/blockstack-browser |
_common | Contains several shell files that redirect to our reference documentation sites such as Javascript, IOS, and so forth. The reference docs are linked from the developer, core, and Gaia menus. | Each of these references are generated by their respective repos, core.blockstack.org from blockstack-core , Javascript docs from the blockstack.js and so forth. |
_core | Information for wallet, blockchain, or Clarity developers -- including Atlas, BNS, and so forth. This content STILL needs to be synced with the master docs subdirectory in blockstack-core. | blockstack-core |
_develop | Information for application miners covers using the Javascript library, our mobile SDKs, and the concepts hat support them. Navigation controlled by developer menu | This information was never associated with a single repo. Much of it does rely heavily onhttps://github.com/blockstack/blockstack.js. |
_includes | Information reused (markdown or html) in many places, common html used in pages and notes. | |
_ios | SDK tutorial. Part of the developer menu. | https://github.com/blockstack/blockstack-ios |
_org | Information for Stacks holders and people curious about what Blockstack does. User docs controlled by in the the organization menu | Not associated with any repository. |
_storage | https://github.com/blockstack/blockstack-gaia |
Directory | Purpose | Notes |
---|---|---|
_common | ||
_data | ||
_faqs | ||
_includes | ||
_layouts | ||
_plugins | ||
_posts | ||
_sass | ||
assets | ||
exclude |
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 according to the instructions at: https://github.com/blockstack/cli-blockstack
-
Generate the json for the cli in the
docs.blockstack
repo.$ blockstack-cli docs | python -m json.tool > _data/cliRef.json
-
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 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 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.
-
Make changes in core
-
Build the docker image
-
Run doc gen with the new image
$ docker run --name docsbuild -it blockstack-test blockstack-core docgen | jsonpp > ~/repos/docs.blockstack/_data/clarityRef.json
To view the clarity cli
You can view the source code.
-
Pull the Blockstack core clarity-developer-preview image from Docker Hub.
$ docker pull blockstack/blockstack-core:clarity-developer-preview
-
Start the Blockstack Core test environment with a Bash shell.
$ docker run -it -v $HOME/blockstack-dev-data:/data/ blockstack/blockstack-core:clarity-developer-preview bash
The command launches a container with the Clarity test environment and opens a bash shell into the container.
-
Run the clarity-cli in the shell.
root@5b9798633251:/src/blockstack-core# clarity-cli Usage: clarity-cli [command] where command is one of: initialize to initialize a local VM state database. mine_block to simulated mining a new block. get_block_height to print the simulated block height. check to typecheck a potential contract definition. launch to launch a initialize a new contract in the local state database. eval to evaluate (in read-only mode) a program in a given contract context. eval_raw to typecheck and evaluate an expression without a contract or database context. repl to typecheck and evaluate expressions in a stdin/stdout loop. execute to execute a public function of a defined contract. generate_address to generate a random Stacks public address for testing purposes.