Skip to content

docs: fix broken cross-references in documentation#1369

Open
wahajahmed010 wants to merge 2 commits into
collective:mainfrom
wahajahmed010:fix/1158-doc-links
Open

docs: fix broken cross-references in documentation#1369
wahajahmed010 wants to merge 2 commits into
collective:mainfrom
wahajahmed010:fix/1158-doc-links

Conversation

@wahajahmed010
Copy link
Copy Markdown

@wahajahmed010 wahajahmed010 commented May 7, 2026

See #1158

Changes

  • Remove :py: prefix from cross-references in docstrings:

    • :py:class::class:
    • :py:mod::mod:
    • :py:meth::meth:
  • Fix unqualified references to use fully qualified names:

    • :class:BUSYTYPE → `:class:`icalendar.enums.BUSYTYPE
    • :class:FBTYPE → `:class:`icalendar.enums.FBTYPE
    • :func:_escape_char → `:func:`~icalendar.parser.string._escape_char
    • ...and more
  • Use tilde-prefixed references (~) for cleaner displayed text while maintaining correct linking.

Files changed (13)

  • src/icalendar/cal/calendar.py
  • src/icalendar/cal/lazy.py
  • src/icalendar/cal/todo.py
  • src/icalendar/caselessdict.py
  • src/icalendar/enums.py
  • src/icalendar/parser/ical/lazy.py
  • src/icalendar/parser/parameter.py
  • src/icalendar/parser/property.py
  • src/icalendar/parser/string.py
  • src/icalendar/prop/dt/date.py
  • src/icalendar/prop/dt/datetime.py
  • src/icalendar/prop/dt/duration.py
  • src/icalendar/prop/dt/time.py

This PR was AI-assisted.


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

Fixes collective#1158

- Remove :py: prefix from cross-references in docstrings (:py:class: -> :class:, :py:mod: -> :mod:, :py:meth: -> :meth:)
- Fix unqualified references to use fully qualified names (e.g. :class:`BUSYTYPE` -> :class:`icalendar.enums.BUSYTYPE`)
- Use tilde-prefixed references for cleaner display (:class:`~icalendar.cal.todo.Todo`)
- Affected files: calendar.py, lazy.py, todo.py, caselessdict.py, enums.py,
  parser/ical/lazy.py, parser/parameter.py, parser/property.py, parser/string.py,
  prop/dt/date.py, prop/dt/datetime.py, prop/dt/duration.py, prop/dt/time.py
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 7, 2026

@stevepiercy
Copy link
Copy Markdown
Member

stevepiercy commented May 14, 2026

@wahajahmed010 would you please:

  • Replace "Fixes" with "See" in your PR description, as there may be other items that haven't been addressed and the issue should remain open
  • Update your branch against main
  • Fix code style with ruff
  • Resolve any change conflicts
  • Add a change log entry

For details, see https://icalendar.readthedocs.io/en/stable/contribute/index.html and https://icalendar.readthedocs.io/en/stable/contribute/development.html.

Once you perform those tasks, then I'll do a review. Thank you!

@wahajahmed010
Copy link
Copy Markdown
Author

@stevepiercy Thanks for the review! I've addressed all your feedback:

  1. ✅ Changed 'Fixes' → 'See' in the PR description
  2. ✅ Rebased on main
  3. ✅ Fixed ruff style errors (E501 line-length in docstrings)
  4. ✅ Resolved merge conflicts
  5. ✅ Added changelog entry

Ready for another review! 🙏

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