Skip to content

Commit d4394a5

Browse files
committed
Use uv for building docs
1 parent d46b108 commit d4394a5

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,18 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Python Setup
18-
uses: actions/setup-python@v6
19-
with:
20-
python-version: 3
21-
architecture: x64
22-
2317
- name: Checkout Source
2418
uses: actions/checkout@v5
2519

26-
- name: Install Packages
27-
run: |
28-
pip install -r requirements.txt
20+
- name: Install UV and Python
21+
uses: astral-sh/setup-uv@v6
2922

3023
- name: Setup Pages
3124
uses: actions/configure-pages@v5
3225

3326
- name: Build Pages
3427
run: |
35-
make html
28+
uv run sphinx-build -W -b html source build/html
3629
3730
- name: Upload Artifact
3831
uses: actions/upload-pages-artifact@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Build Files
22
build/
3+
uv.lock
34

45
# Dev Stuff
56
.pytest_cache/

publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
22

3-
make html
3+
rm -rf build/*
4+
uv run sphinx-build -W -b html source build/html
45
rsync -avPh --delete build/html/ novelwriter.io:www/

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[project]
2+
name = "novelWriter.io"
3+
version = "1.0"
4+
description = "The novelWriter website"
5+
readme = "README.md"
6+
dependencies = [
7+
"pydata-sphinx-theme>=0.15",
8+
"sphinx-copybutton",
9+
"sphinx-design",
10+
"sphinx-favicon",
11+
"sphinx<7.0",
12+
]

requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)