a230c754b9
* Add Sphinx documentation generation functionality * sphinx-docs -> python/sphinx * Use ninja instead of make * Update copyright info in sphinx docs * Run sphinx-apidoc before building Sphinx docs * Cleanup Sphinx path insertion * Don't write build outputs into source; use autoapi * aqt -> _aqt * Mention sphinx in development.md --------- Co-authored-by: Damien Elmes <gpg@ankiweb.net>
8 lines
410 B
Python
8 lines
410 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
import os
|
|
import subprocess
|
|
os.environ["REPO_ROOT"] = os.path.abspath(".")
|
|
subprocess.run(["out/pyenv/bin/sphinx-apidoc", "-o", "out/python/sphinx", "pylib", "qt"], check=True)
|
|
subprocess.run(["out/pyenv/bin/sphinx-build", "out/python/sphinx", "out/python/sphinx/html"], check=True)
|