diff --git a/docs/conf.py b/docs/conf.py index 52eb0ff76b..f738017398 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,7 +25,6 @@ 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.ext.todo', - 'sphinx.ext.viewcode', 'rawfiles' ] @@ -56,7 +55,6 @@ html_theme = 'sphinx_rtd_theme' html_use_smartypants = True -html_last_updated_fmt = '%b %d, %Y' html_split_index = False html_show_copyright = False html_sidebars = { diff --git a/docs/tlo_resources.py b/docs/tlo_resources.py index 02ea407263..afc7f4fed4 100644 --- a/docs/tlo_resources.py +++ b/docs/tlo_resources.py @@ -99,7 +99,7 @@ def excel_to_rst_table(input_path: Path, output_path: Path) -> None: def generate_docs_pages_from_resource_files( resources_directory: Path, docs_directory: Path, - max_file_size_bytes: int = 2**20, + max_file_size_bytes: int = 2**15, ) -> None: root_output_directory = docs_directory / "resources" root_output_directory.mkdir(exist_ok=True) diff --git a/tox.ini b/tox.ini index 4c63f7ea0f..d25f446a25 100644 --- a/tox.ini +++ b/tox.ini @@ -66,7 +66,7 @@ deps = ; require setuptools_scm for getting version info setuptools_scm commands = - sphinx-apidoc -e -f -o {toxinidir}/docs/reference {toxinidir}/src/tlo + sphinx-apidoc -e -o {toxinidir}/docs/reference {toxinidir}/src/tlo ; Generate API documentation for TLO methods python docs/tlo_methods_rst.py ; Generate data sources page @@ -82,8 +82,7 @@ commands = python src/tlo/analysis/hsi_events.py --output-file docs/hsi_events.csv --output-format csv ; Generate parameters listing python docs/tlo_parameters.py {toxinidir}{/}resources {toxinidir}{/}docs{/}parameters.rst - sphinx-build {posargs:-E} -b html docs dist/docs - -sphinx-build -b linkcheck docs dist/docs + sphinx-build -b html docs dist/docs [testenv:check] deps =