Skip to content

feat: add SEO metadata for documentation#27

Merged
pFornagiel merged 11 commits intomainfrom
@pFornagiel/seo-things
Mar 19, 2026
Merged

feat: add SEO metadata for documentation#27
pFornagiel merged 11 commits intomainfrom
@pFornagiel/seo-things

Conversation

@pFornagiel
Copy link
Copy Markdown
Collaborator

@pFornagiel pFornagiel commented Mar 17, 2026

Description

This PR adds SEO metadata to improve search engine discoverability of the lonkit documentation. The changes include JSON-LD, frontmatter descriptions for documentation pages, and updated project metadata in pyproject.toml.

Changes Made

  • Added JSON-LD structured data (docs/overrides/main.html) and custom_dir: docs/overrides to enable the HTML template override in mkdocs.yml for it

  • Added custom_dir: docs/overrides to enable the HTML template override in mkdocs.yml

  • Added frontmatter description to markdown documentation pages

  • In pyproject.toml:

    • Added project metadata: authors, license, URLs
    • Added keywords for better PyPI discoverability
    • Added classifiers for proper categorization

Apart from changes above, it may also be worth considering whether we want to use the Google Search Console for better docs indexing, as described here.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SEO-oriented metadata to the MkDocs documentation site and to the package distribution metadata to improve discoverability for both search engines and PyPI.

Changes:

  • Adds MkDocs Material template override to inject JSON-LD structured data into page headers.
  • Adds per-page description metadata to documentation Markdown pages.
  • Expands pyproject.toml project metadata (authors/license/URLs/keywords/classifiers).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pyproject.toml Adds richer PEP 621 project metadata (authors/license/URLs/keywords/classifiers).
mkdocs.yml Enables MkDocs Material template overrides via custom_dir.
docs/overrides/main.html Injects JSON-LD structured data through a theme override.
docs/index.md Adds page description frontmatter for the docs homepage.
docs/getting-started/installation.md Adds page description frontmatter.
docs/getting-started/quickstart.md Adds page description frontmatter.
docs/getting-started/concepts.md Adds page description frontmatter.
docs/api/index.md Adds page description frontmatter for API overview.
docs/user-guide/sampling.md Adds page description frontmatter for sampling guide.
docs/user-guide/analysis.md Adds page description frontmatter for analysis guide.
docs/user-guide/visualization.md Adds page description frontmatter for visualization guide.
docs/user-guide/examples.md Adds page description frontmatter for examples page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/overrides/main.html Outdated
@@ -0,0 +1,25 @@
{% extends "base.html" %}

{% block extrahead %}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an issue really, as the material theme we are using does not have anything defined in its extrahead block, source code for refernce

In case that I am missing some greater context, still implemented in f054e43 as this should not break anything.

Comment thread docs/overrides/main.html Outdated
"url": "https://github.com/helix-agh"
},
"downloadUrl": "https://pypi.org/project/lonkit/",
"softwareVersion": "0.1.0",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e445d63

Comment thread mkdocs.yml
Comment thread docs/user-guide/sampling.md Outdated
Comment thread pyproject.toml
Copy link
Copy Markdown
Member

@WojtAcht WojtAcht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@pFornagiel pFornagiel merged commit 49c0ca0 into main Mar 19, 2026
3 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.

3 participants