pydata_sphinx_theme/layout.html
template and overriding the fonts
block to specify font families for the body and header elements.
{% extends "pydata_sphinx_theme/layout.html" %}
pydata_sphinx_theme/layout.html
file. This means that the current template will use the structure and elements defined in the base template, and only the overridden blocks will be different.
{% block fonts %}
… {% endblock %}
fonts
block defined in the base template. It allows customizing the fonts used in the documentation site.
<style>
tag containing CSS rules for the body
and .header-style
elements.
body { font-family: ...; }
: This rule sets the font family for the entire body of the documentation pages. It uses a font stack starting with system fonts for better cross-platform consistency and falls back to generic sans-serif fonts..header-style { font-family: ...; }
: This rule sets the font family for elements with the class header-style
. It uses the same font stack as the body
rule.pydata_sphinx_theme/layout.html
).