This repo hosts the content for Agora Developer Documentation Style Guide. You can browse the guide on this website, which is built with Sphinx.
To make updates to this guide, follow the instructions in this section.
- Basic knowledge of Git
- A GitHub account
- A code editing tool, such as Visual Studio Code
- A command line tool
The master
branch is published to Read the Docs as the latest version. To make updates, do the following:
-
Create a new branch from
master
and update the Markdown file. Each section of the guide corresponds to a Markdown file in_content
. -
Create a pull request to merge your commits to
master
.
Feel free to propose something for discussion by opening an issue.
- Open the Issues page.
- Click the New Issue button.
- Edit the title and comments, and then click Submit new issue.
If you want to view the website locally before pushing your changes to GitHub, follow the instructions below.
-
Install Sphinx.
$ pip install sphinx
-
Install the following packages for Markdown support.
$ pip install recommonmark
$ pip install sphinx_markdown_tables
-
Install the theme.
$ pip install sphinx_rtd_theme
-
Build the website locally.
// Navigate to the _content folder on your PC $ cd /Users/jie/Agora_style_guide/_content // Build the website $ make html
If everything goes well, you should see something like this in the command line output:
build succeeded, 1 warning.
The output is in /_content/__build
.