Skip to content

Commit 4ec6915

Browse files
authored
[doc] Use Google-hosted PT Sans for Russian docs (#494)
- import PT Sans from Google Fonts in custom CSS for `/ru` docs - keep Sphinx setup that loads this stylesheet
1 parent 756bc23 commit 4ec6915

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/_static/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
2+
3+
html[lang="ru"] body {
4+
font-family: 'PT Sans', Arial, sans-serif;
5+
}

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@
4848
"collapse_navigation": False,
4949
"navigation_depth": 2,
5050
}
51+
52+
53+
def setup(app):
54+
"""Add custom CSS files."""
55+
app.add_css_file("custom.css")

0 commit comments

Comments
 (0)