jubnzv / scilla-docs

Documentation for Scilla

Home Page:https://scilla.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scilla Docs

Scilla short for Smart Contract Intermediate-Level LAnguage is a smart contract language being developed for Zilliqa.

Contributing

If you spot any issues or have any ideas on how we can improve the documentation, help us log an issue here

Installing dependencies

To compile the documentation you need the following dependencies.

  1. You need to have sphinx installed. Install Sphinx by running pip install -U Sphinx.
  2. Our build system checks for spelling mistakes automatically (we use the UK spelling, by the way). To enable it some additional dependencies are needed.
    • The sphinxcontrib.spelling spelling cheker for Sphinx: pip install -U sphinxcontrib-spelling.
    • The command above will automatically install PyEnchant library which itself needs the C Enchant library which one has to install using e.g. your OS's package manager. You can find the installation instructions here. Basically, you want either libenchant or enchant package depending on your setup.

Building the docs

Spellchecking

Run make spell from docs folder. In case of any found spelling mistakes you will see an output like the following.

Spelling checker messages written to /path/to/scilla-docs/docs/build/spelling/output.txt
WARNING: Found 1 misspelled words

Checkout the output.txt file and fix the typos.

If you need to teach the spelling checker more words, add them to the spelling_wordlist.txt file. The format is really simple -- it's just one word per line the file. And the file is sorted in ascending order.

Building HTML docs

Run make html from docs folder and make sure that the edits are rendered correctly on the HTML files. To do that point your browser at the locally built /path/to/scilla-docs/docs/build/html/index.html file and start checking from it.

Before submitting a pull request

Please preview your HTML files before submitting a pull request. Try to squash your commits before making the pull request. We know it's difficult, but it helps us keep our commit logs clean and makes the reviewers' lives easier.

About

Documentation for Scilla

https://scilla.readthedocs.io

License:MIT License