-
Notifications
You must be signed in to change notification settings - Fork 132
Add docs README to explain testing procedure #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ef4b732
e9b76c8
fdfbc10
e043d5e
d5fa081
eb6da01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Docs | ||
|
|
||
| `docs/` contains end user documentation geared towards writing smart contracts with PyTeal. The README explains how to edit docs. | ||
|
|
||
| ## Local testing | ||
|
|
||
| Pyteal uses [Sphinx](https://github.com/sphinx-doc/sphinx) to generate HTML from RST files. Test changes by generating HTML and viewing with a web browser. | ||
|
|
||
| Here's the process: | ||
| * Perform one-time environment setup: | ||
| * Activate the top-level virtual environment. | ||
| * Install dependencies: `pip install -r requirements.txt`. | ||
| * Generate HTML docs: `make html`. | ||
| * If successful, generated HTML is available in `docs/_build/html`. | ||
|
|
||
| Additionally, each PR commit generates HTML docs via [Github Actions](../.github/workflows/build.yml). | ||
|
|
||
| ## Releasing | ||
|
|
||
| Production docs live at https://pyteal.readthedocs.io/en/stable/. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,9 +28,8 @@ | |
| # Add any Sphinx extension module names here, as strings. They can be | ||
| # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
| # ones. | ||
| # extensions = ['m2r'] | ||
| extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon"] | ||
| source_suffix = [".rst", ".md"] | ||
| source_suffix = [".rst"] | ||
| master_doc = "index" | ||
|
|
||
| napoleon_include_init_with_doc = True | ||
|
|
@@ -54,4 +53,4 @@ | |
| # Add any paths that contain custom static files (such as style sheets) here, | ||
| # relative to this directory. They are copied after the builtin static files, | ||
| # so a file named "default.css" will overwrite the builtin "default.css". | ||
| html_static_path = ["_static"] | ||
| # html_static_path = ["_static"] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reviewers: I commented out the highlighted line because it seems we're not making use of the If there's a reason to keep the configuration, let me know and I'll revert. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| m2r | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving a trail in case someone comes back to the PR later. We opted to remove Additionally, the dependency is deprecated and replaced by |
||
| sphinx_rtd_theme | ||
| py-algorand-sdk | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to the line, but opening a thread to isolate messaging.
While removing
m2r, we observed multiplemake htmlwarnings and errors. I investigated to discover the branch behavior is no worse thanmaster. While undesirable, since the behavior is no worse, I propose addressing the warnings and errors out-of-band to the PR.Here's what I did:
make htmloutput frommasterand the branch:make html >>/tmp/make_html_pyteal_docs_readme.txt 2>&1.