Skip to content

docs: title the site 'python-moodle' and remove py_moodle.* API headings#82

Merged
erseco merged 1 commit into
mainfrom
fix-docs-title
Jul 8, 2026
Merged

docs: title the site 'python-moodle' and remove py_moodle.* API headings#82
erseco merged 1 commit into
mainfrom
fix-docs-title

Conversation

@erseco

@erseco erseco commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the documentation showing py_moodle as a title. It appeared in two spots: the site header/tab (site_name: py-moodle) and, more prominently, a redundant py_moodle.<module> heading on every API reference page (mkdocstrings rendering the fully-qualified module path under each page's own title).

Changes (mkdocs.yml only)

  • site_name: py-moodlepython-moodle (matches the PyPI/GitHub project name; header + browser tab).
  • mkdocstrings options: show_root_heading: false, show_root_full_path: false, heading_level: 2 — so each API page keeps its clean # Course title with members nested below, and no py_moodle.course heading.

Verification

Local mkdocs build (reads the same mkdocs.yml as Zensical):

  • api/course renders Course (h1) → Attributes/Classes/Functions (h2) → create_course/MoodleCourseError/... (h3). No visible py_moodle. text (it survives only as invisible anchor id=s).
  • Browser tab: Course - python-moodle (was Course - py-moodle); home page python-moodle.

Notes for reviewers

py-moodle (hyphen) remains the CLI command name and the logo brand — only the documentation site title and API headings changed. If you'd rather keep py-moodle as the site header brand, revert just the site_name line; the mkdocstrings heading fix stands on its own.

The docs showed 'py_moodle' in two places that read as titles:
- the site header / browser tab used site_name 'py-moodle';
- every API reference page rendered a redundant 'py_moodle.<module>'
  heading (mkdocstrings show_root_heading with the full module path),
  right under the page's own nice title (e.g. 'Course').

Fix both:
- site_name -> 'python-moodle' (matches the PyPI/GitHub project name).
- mkdocstrings: show_root_heading=false + show_root_full_path=false and
  heading_level=2, so each API page keeps its clean '# Course' title with
  members nested underneath and no 'py_moodle.course' heading. The
  'py_moodle' string now only survives as invisible anchor ids.

Verified with a local mkdocs build: api/course renders 'Course' (h1) ->
Attributes/Classes/Functions (h2) -> create_course etc. (h3), and the
browser title is 'Course - python-moodle'.
@erseco erseco merged commit 9c5d190 into main Jul 8, 2026
12 of 13 checks passed
@erseco erseco deleted the fix-docs-title branch July 8, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant