Skip to content

DOC - add proper meta tags in the API pages - #2267

Closed
rcap107 wants to merge 4 commits into
skrub-data:mainfrom
rcap107:doc-add-meta-tag
Closed

DOC - add proper meta tags in the API pages#2267
rcap107 wants to merge 4 commits into
skrub-data:mainfrom
rcap107:doc-add-meta-tag

Conversation

@rcap107

@rcap107 rcap107 commented Sep 3, 2026

Copy link
Copy Markdown
Member

This PR modifies how API pages are rendered by sphinx so that their HTML includes meta tags that contain the first line of the docstrings as description.

This is because search engines rely on meta tags to describe the content of a page as their search summary (see https://developers.google.com/search/docs/appearance/snippet).

Without this PR, the description was

content="Gallery examples: Getting Started with skrub Quick overview of DataOps Hands-On with Column Selection and Transformers SquashingScaler: Robust numerical preprocessing for neural networks Sessions i..."

which is not useful at all, and is indeed the same description for all pages.

@rcap107 rcap107 closed this Sep 3, 2026
@rcap107
rcap107 deleted the doc-add-meta-tag branch September 3, 2026 11:42
@rcap107

rcap107 commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

closing because the history was messed up

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