mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 03:44:02 +08:00
1 parent
2c40c1b2bc
commit
966374474d
4 files changed
+2138
-11
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user