Search code examples
python-sphinxrestructuredtext

How to insert metadata in Sphinx?


I want to insert some metadata (i.e. keywords, description, author) inside my web pages created by Sphinx.

I found

:fieldname: Field content

in the documentation of Sphinx, but I have no idea how to use it.


Solution

  • I already figure out. There is a directive called "meta", which perfectly meets my desire.

    You can find it here: http://docutils.sourceforge.net/docs/ref/rst/directives.html#meta