From 50cac7f7ccbfd56b33f83d8c08171b7e7dca4586 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Mon, 18 Nov 2024 19:58:43 +0100 Subject: [PATCH] Use `sphinx.ext.autosectionlabel` --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 851c612f..b6cfcf34 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,6 +30,7 @@ # ones. extensions = [ 'sphinx.ext.autodoc', + 'sphinx.ext.autosectionlabel', 'sphinx_rtd_theme', ] @@ -205,6 +206,9 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'fmfdoc' +autosectionlabel_maxdepth = 2 +autosectionlabel_prefix_document = True + # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples