Skip to content

docs: fix toctree and broken doc reference warnings#1305

Merged
niccokunzmann merged 1 commit intocollective:mainfrom
claw-explorer:docs-fix-broken-links
Mar 29, 2026
Merged

docs: fix toctree and broken doc reference warnings#1305
niccokunzmann merged 1 commit intocollective:mainfrom
claw-explorer:docs-fix-broken-links

Conversation

@claw-explorer
Copy link
Copy Markdown

@claw-explorer claw-explorer commented Mar 28, 2026

Summary

Fix the two remaining Sphinx build warnings that cause -W (warnings as errors) mode to fail.

Changes

1. Add explanation/ to main toctree (docs/index.rst)

The explanation/ directory was added in PR #1281 but was not included in any toctree, causing:

docs/explanation/index.rst: WARNING: document isn't included in any toctree [toc.not_included]

Added an Explanation section to the main index.rst toctree.

2. Fix broken :doc: reference in CHANGES.rst

Line 54 referenced :doc:\component-api`which doesn't exist. The correct path is:doc:`../explanation/api-design`(relative todocs/reference/whereCHANGES.rstis included viachangelog.rst`).

CHANGES.rst:54: WARNING: unknown document: 'component-api' [ref.doc]

Verification

Documentation build now completes with zero warnings under -W mode:

build succeeded.

Contributes to #1158


📚 Documentation preview 📚: https://icalendar--1305.org.readthedocs.build/

- Add explanation/ directory to the main toctree in index.rst,
  resolving the 'document isn't included in any toctree' warning
  for explanation/index.rst (introduced in PR collective#1281)

- Fix broken :doc:`component-api` reference in CHANGES.rst to
  point to the correct path :doc:`../explanation/api-design`,
  resolving the 'unknown document' warning

The documentation build now completes with zero warnings under -W
(warnings as errors) mode.

Contributes to collective#1158
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 icalendar | 🛠️ Build #32020105 | 📁 Comparing 97b0787 against latest (8d9046d)


🔍 Preview build

Show files changed (7 files in total): 📝 7 modified | ➕ 0 added | ➖ 0 deleted
File Status
404.html 📝 modified
index.html 📝 modified
explanation/api-design.html 📝 modified
explanation/index.html 📝 modified
reference/changelog.html 📝 modified
reference/index.html 📝 modified
tutorials/create-event-with-attendees.html 📝 modified

@niccokunzmann
Copy link
Copy Markdown
Member

Thanks. Since we do not have warningsansd these warnings indicate serious problems with the docs, do you suggest that the CI should fail in case of warnings? It seems to me, that would be a feature.

@niccokunzmann niccokunzmann enabled auto-merge March 29, 2026 13:14
@niccokunzmann niccokunzmann merged commit ded7396 into collective:main Mar 29, 2026
33 checks passed
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.

2 participants