mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* Future Annotations * Delete template_twitter_post.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed broken RTD Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
15 lines
456 B
Python
15 lines
456 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
import webbrowser
|
|
from pathlib import Path
|
|
|
|
path_makefile = Path(__file__).parents[1] / "docs"
|
|
os.system(f"cd {path_makefile} && make html")
|
|
|
|
website = (path_makefile / "build" / "html" / "index.html").absolute().as_uri()
|
|
try: # Allows you to pass a custom browser if you want.
|
|
webbrowser.get(sys.argv[1]).open_new_tab(f"{website}")
|
|
except IndexError:
|
|
webbrowser.open_new_tab(f"{website}")
|