'
+
+src_root = Path(__file__).parent.parent
+package_root = src_root / package_name
+
+for path in sorted(package_root.rglob("*.py")):
+ module_path = path.relative_to(src_root).with_suffix("")
+ doc_path = path.relative_to(src_root).with_suffix(".md")
+ full_doc_path = Path("reference/api", doc_path)
+
+ parts = tuple(module_path.parts)
+ if parts[-1] == "__init__":
+ parts = parts[:-1]
+ doc_path = doc_path.with_name("index.md")
+ full_doc_path = full_doc_path.with_name("index.md")
+ elif parts[-1].startswith("_"):
+ continue
+
+ nav_parts = [f"{mod_symbol} {part}" for part in parts]
+ nav[tuple(nav_parts)] = doc_path.as_posix()
+
+ with mkdocs_gen_files.open(full_doc_path, "w") as fd:
+ ident = ".".join(parts)
+ fd.write(f"::: {ident}")
+
+ mkdocs_gen_files.set_edit_path(full_doc_path, path)
+
+with mkdocs_gen_files.open("reference/api/SUMMARY.md", "w") as nav_file:
+ nav_file.writelines(nav.build_literate_nav())
diff --git a/docsrc/howtos/avoid-incorrect-replacements.md b/docsrc/howtos/avoid-incorrect-replacements.md
index 9f5d7f77..c7997fbb 100644
--- a/docsrc/howtos/avoid-incorrect-replacements.md
+++ b/docsrc/howtos/avoid-incorrect-replacements.md
@@ -1,6 +1,6 @@
# Avoiding incorrect replacements
-In files that have multiple version strings, bump-my-version may find the wrong string and replace it. Given this `requirements.txt` for `MyProject`:
+In files that have multiple version strings, Bump My Version may find the wrong string and replace it. Given this `requirements.txt` for `MyProject`:
```text
Django>=1.5.6,<1.6
diff --git a/docsrc/howtos/custom-version-formats-by-file.md b/docsrc/howtos/custom-version-formats-by-file.md
index 07f93d5e..fdbb2c22 100644
--- a/docsrc/howtos/custom-version-formats-by-file.md
+++ b/docsrc/howtos/custom-version-formats-by-file.md
@@ -22,7 +22,7 @@ require (
stable: "v2.21.4"
```
-You can use bump-my-version to maintain the major version number within the `go.mod` file by using the `parse` and `serialize` options, as in this example:
+You can use Bump My Version to maintain the major version number within the `go.mod` file by using the `parse` and `serialize` options, as in this example:
`.bumpversion.toml` file:
diff --git a/docsrc/howtos/index.md b/docsrc/howtos/index.md
index d9c5e687..869c35ee 100644
--- a/docsrc/howtos/index.md
+++ b/docsrc/howtos/index.md
@@ -1,9 +1,6 @@
# How-To Guides
-
-```{toctree}
-avoid-incorrect-replacements
-custom-version-formats-by-file
-multiple-replacements
-```
+- [Avoid incorrect replacements](avoid-incorrect-replacements.md)
+- [Custom version formats by file](custom-version-formats-by-file.md)
+- [Multiple replacements](multiple-replacements.md)
diff --git a/docsrc/index.md b/docsrc/index.md
index 981fe308..2e69f552 100644
--- a/docsrc/index.md
+++ b/docsrc/index.md
@@ -1,22 +1,9 @@
# Bump My Version
-```{toctree}
----
-maxdepth: 2
-caption: Contents
----
-Introduction