Skip to content

Commit 03cf8e4

Browse files
committed
Use normal GHA runner since it has unzip and git
Also preload fonts so that, at worst, text flashes only the first time the website is opened.
1 parent 87ea18b commit 03cf8e4

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ jobs:
2424
name: github-pages
2525
url: ${{ steps.deployment.outputs.page_url }}
2626
runs-on: ubuntu-latest
27-
container: sphinxdoc/sphinx
2827
steps:
2928
- uses: actions/checkout@v4
29+
with:
30+
lfs: true
3031
- uses: actions/configure-pages@v5
3132
- run: unzip fonts.zip
3233
working-directory: docs/_static/
34+
- uses: actions/setup-python@v5
3335
- run: pip install -r requirements.txt && sphinx-build . _build
3436
working-directory: docs/
3537
- uses: actions/upload-pages-artifact@v3

docs/_templates/base.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% extends "!base.html" %}
2+
{% block extrahead %}
3+
<link rel="preload" href="_static/fonts/JetBrainsMono/JetBrainsMonoNerdFont-Regular.ttf" as="font" type="font/ttf" crossorigin />
4+
<link rel="preload" href="_static/fonts/JetBrainsMono/JetBrainsMonoNerdFont-Italic.ttf" as="font" type="font/ttf" crossorigin />
5+
<link rel="preload" href="_static/fonts/JetBrainsMono/JetBrainsMonoNerdFont-Bold.ttf" as="font" type="font/ttf" crossorigin />
6+
<link rel="preload" href="_static/fonts/JetBrainsMono/JetBrainsMonoNerdFont-BoldItalic.ttf" as="font" type="font/ttf" crossorigin />
7+
<link rel="preload" href="_static/fonts/Signika/Signika-Regular.ttf" as="font" type="font/ttf" crossorigin />
8+
<link rel="preload" href="_static/fonts/Signika/Signika-Bold.ttf" as="font" type="font/ttf" crossorigin />
9+
{{ super() }}
10+
{% endblock %}

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@
2929
html_use_index = False
3030

3131
myst_heading_anchors = 3
32+
templates_path = ["_templates"]

0 commit comments

Comments
 (0)