def generate_docs(soc, base_dir,
- project_name = "LiteX SoC Project",
- author = "Anonymous",
- sphinx_extensions = [],
- quiet = False,
- note_pulses = False,
- from_scratch = True):
+ project_name = "LiteX SoC Project",
+ author = "Anonymous",
+ sphinx_extensions = [],
+ quiet = False,
+ note_pulses = False,
+ from_scratch = True,
+ sphinx_extra_config = ""):
"""Possible extra extensions:
[
'm2r',
sphinx_ext_str += "\n \"{}\",".format(ext)
print(default_sphinx_configuration.format(project_name, year,
author, author, sphinx_ext_str), file=conf)
+ print(sphinx_extra_config, file=conf)
if not quiet:
print("Generate the documentation by running `sphinx-build -M html {} {}_build`".format(base_dir, base_dir))