Skip to content

Fix Sphinx documentation build errors#725

Merged
AndyTheFactory merged 2 commits intomasterfrom
copilot/fix-title-level-consistency
Apr 7, 2026
Merged

Fix Sphinx documentation build errors#725
AndyTheFactory merged 2 commits intomasterfrom
copilot/fix-title-level-consistency

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

Summary

Fixes all Sphinx/docutils errors reported in the documentation build.

Changes

RST files

  • docs/user_guide/advanced.rst: Changed all ^^^^ title underlines to ~~~~ in subsections under "Google News Integration", "Cloudscraper Integration", and "Respecting robots.txt" sections (15 occurrences) — fixes "Title level inconsistent" CRITICAL errors
  • docs/user_guide/faq.rst: Extended 4 title underlines that were shorter than their titles — fixes "Title underline too short" warnings
  • docs/user_guide/known_newssites.rst: Extended the title underline for "Well Known News Websites Supported by newspaper4k" — fixes "Title underline too short" warning
  • docs/index.rst: Added user_guide/faq to the toctree — fixes "document isn't included in any toctree" warning

Python docstrings

  • newspaper/configuration.py:
    • Added blank line before the bullet list inside top_image_settings attribute description (RST requires blank lines before lists) — fixes "Unexpected indentation" ERROR at line 72
    • Fixed indentation of continuation lines in use_cached_categories and _honor_robotstxt attribute descriptions
    • Removed blank line inside ignored_content_types_defaults description
  • newspaper/article.py:
    • Added blank lines before .. deprecated:: directives in text_cleaned and clean_doc class attribute descriptions (RST requires blank lines before directives) — fixes "Unexpected indentation" ERRORs at lines 96 and 247
    • Fixed config parameter continuation indentation in __init__ docstring

…ocstring indentation

Agent-Logs-Url: https://github.com/AndyTheFactory/newspaper4k/sessions/aebc793b-4ef1-4fd3-b421-a31900490635

Co-authored-by: AndyTheFactory <863810+AndyTheFactory@users.noreply.github.com>
@AndyTheFactory AndyTheFactory marked this pull request as ready for review April 7, 2026 21:14
@AndyTheFactory AndyTheFactory merged commit fc1b77d into master Apr 7, 2026
17 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