Skip to content

feat: Enhance ReadTheDocs SEO and discoverability#3

Merged
osama-ata merged 1 commit intomasterfrom
seo-rtddocs-improvements
May 25, 2025
Merged

feat: Enhance ReadTheDocs SEO and discoverability#3
osama-ata merged 1 commit intomasterfrom
seo-rtddocs-improvements

Conversation

@osama-ata
Copy link
Owner

This commit introduces several improvements to the Sphinx documentation configuration to enhance SEO and site discoverability for the ReadTheDocs site.

Key changes include:

  • Added meta descriptions and keywords to conf.py using html_meta.
  • Integrated sphinx-sitemap extension to generate a sitemap.xml:
    • Added sphinx_sitemap to extensions in conf.py.
    • Set html_baseurl in conf.py.
    • Added sphinx-sitemap to project.optional-dependencies.docs in pyproject.toml to ensure it's installed by ReadTheDocs.
  • Added JSON-LD structured data to the documentation pages:
    • Created _templates/layout.html to include a schema.org TechArticle JSON-LD block.
    • Updated templates_path in conf.py to include _templates.

These changes will help search engines better understand and index the documentation content, improving its visibility and accessibility.

This commit introduces several improvements to the Sphinx documentation
configuration to enhance SEO and site discoverability for the ReadTheDocs site.

Key changes include:

- Added meta descriptions and keywords to `conf.py` using `html_meta`.
- Integrated `sphinx-sitemap` extension to generate a `sitemap.xml`:
    - Added `sphinx_sitemap` to `extensions` in `conf.py`.
    - Set `html_baseurl` in `conf.py`.
    - Added `sphinx-sitemap` to `project.optional-dependencies.docs` in `pyproject.toml`
      to ensure it's installed by ReadTheDocs.
- Added JSON-LD structured data to the documentation pages:
    - Created `_templates/layout.html` to include a schema.org `TechArticle`
      JSON-LD block.
    - Updated `templates_path` in `conf.py` to include `_templates`.

These changes will help search engines better understand and index the
documentation content, improving its visibility and accessibility.
@osama-ata osama-ata merged commit 21c40b4 into master May 25, 2025
1 of 2 checks passed
@osama-ata osama-ata deleted the seo-rtddocs-improvements branch May 25, 2025 10:13
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