1
Ich möchte die Standardschriftart in Sphinx-Dokumentation ändern. Ich benutze das sphinx_bootstrap_theme 'Journal'Standardschriftart in Sphinx-Dokumentation ändern
Wie mache ich das?
Ich möchte die Standardschriftart in Sphinx-Dokumentation ändern. Ich benutze das sphinx_bootstrap_theme 'Journal'Standardschriftart in Sphinx-Dokumentation ändern
Wie mache ich das?
Erstellen Sie Ihr eigenes "_templates
" Verzeichnis und "layout.html
" Datei (vorausgesetzt, Sie von einer "Quelle" Verzeichnis erstellen):
$ mkdir source/_templates
$ touch source/_templates/layout.html
Konfigurieren Sie Ihren "conf.py":
templates_path = ['_templates']
html_static_path = ['_static']
Überschreibungsdatei "source/_templates/layout.html
":
{# Import the theme's layout. #}
{% extends "!layout.html" %}
{# Custom CSS overrides #}
{% set bootswatch_css_custom = ['_static/my-styles.css'] %}
In 012.:
body{
font-family:"Arial", Helvetica, sans-serif;
}
This link weiter nützlich sein sollte