docsbuild-scripts icon indicating copy to clipboard operation
docsbuild-scripts copied to clipboard

Beware of pages without description, maybe generate one from the lead

Open JulienPalard opened this issue 7 years ago • 1 comments

Typically this page https://docs.python.org/3/library/functions.html has no tag, it should.

JulienPalard avatar Jul 25 '18 13:07 JulienPalard

Do you mean the <description> HTML tag?

If so, since https://github.com/python/cpython/pull/99931 in December 1999, we now generate it with sphinxext-opengraph:

<meta name="description" content="The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.,,,, Built-in Functions,,, A, abs(), aiter(), all(), a..." />

And:

<meta property="og:description" content="The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.,,,, Built-in Functions,,, A, abs(), aiter(), all(), a..." />

hugovk avatar Sep 17 '24 14:09 hugovk