Update docs (#244)

* Update docs

* black
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-08-02 13:51:45 -07:00
1 parent 2c40c1b2bc
commit 966374474d
4 files changed
+2138 -11

No files matched your search

+10 -3
View File
@@ -19,8 +19,12 @@ def run_command(command: str) -> None:
sys.exit(1)
def main():
"""Run the github actions locally."""
def main(clean_cache: bool = False):
"""Run the github actions locally.
Args:
clean_cache: whether to clean the cache before building docs.
"""
print_green = lambda x: print(f"\033[32m{x}\033[0m")
@@ -29,7 +33,10 @@ def main():
# Add checks for building documentation
print_green("Building Documentation")
run_command("cd docs/; make html SPHINXOPTS='-W;'")
if clean_cache:
run_command("cd docs/; make clean; make html SPHINXOPTS='-W;'")
else:
run_command("cd docs/; make html SPHINXOPTS='-W;'")
print("\n")
print_green("=" * 100)