Read The Fancy Docs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
792 B

3 years ago
#! /usr/bin/python3 -B
import os
import shutil
import sphinx
INPUT = ["docs"]
OUTPUT = "out"
def main():
file = os.path.realpath(__file__)
directory = os.path.dirname(file)
output_directory = os.path.join(directory, OUTPUT)
shutil.rmtree(output_directory, ignore_errors=True)
for doc in INPUT:
arguments = [
"-j", "2",
"-b", "html",
"-D", "project={}".format(doc),
"-D", "master_doc={}".format("index"),
"-D", "html_theme={}".format("sphinx_rtd_theme"),
# "-C",
"-c", directory,
os.path.join(directory, doc),
os.path.join(output_directory, doc),
if __name__ == "__main__":