-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add meta tags to docs.python.org #65
Comments
I think this is where we could get expert advice on what to write inside the title and description meta tags. |
I don't think we should add them manually, but use an extension to automate the creation instead.
See also: |
They're interested, there's a feature request to add |
The extension looks interesting. Looking at the comments, it seems like we can probably use the |
We can't use
I've created a PR for this: wpilibsuite/sphinxext-opengraph#71. |
Description meta tags have now been added by python/cpython#99931. For example, https://docs.python.org/3/library/sys_path_init.html has: <meta property="og:title" content="The initialization of the sys.path module search path" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://docs.python.org/3/library/sys_path_init.html" />
<meta property="og:site_name" content="Python documentation" />
<meta property="og:description" content="A module search path is initialized when Python starts. This module search path may be accessed at sys.path. The first entry in the module search path is the directory that contains the input scrip..." />
<meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
<meta property="og:image:alt" content="Python documentation" />
<meta name="description" content="A module search path is initialized when Python starts. This module search path may be accessed at sys.path. The first entry in the module search path is the directory that contains the input scrip..." />
<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" /> See also #63 (comment). |
We need to add
<meta>
tags to the output of sphinx documentation.It looks like this is supported using the
meta
directivehttps://docutils.sourceforge.io/docs/ref/rst/directives.html#meta
Example:
Some meta tags we should have:
title
description
Some advice according to: https://ahrefs.com/blog/seo-meta-tags/
Title meta:
Description meta:
The text was updated successfully, but these errors were encountered: