readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.75k stars 1.73k forks source link

Access the body #1590

Open TigerClawKnight opened 1 month ago

TigerClawKnight commented 1 month ago

Good day.

I need your help to work on the style of this theme.

In the html files to use the template, I can't understand everything related to jinja vars, but I need to modify the content of the first files in the output html with the use of Sphinx. I understand that Sphinx uses the jinja template.

In this case, the fragment to try to access is

       <div itemprop="bodyitem">
         {% block body %}{% end block %}
       </div>

I don't understand how to work with the build information and get HTML.