Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@ name: Sphinx site

on: [push]

env:
UV_LOCKED: 1

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.11
uses: actions/setup-python@v1
- uses: astral-sh/setup-uv@v7
with:
python-version: 3.11
cache: "pipenv"
- name: Install Pipenv
run: |
curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install dependencies
run: |
pipenv install
enable-cache: true
- name: Build
run: |
pipenv run make html dirhtml
make html dirhtml
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
15 changes: 8 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ build:
tools:
python: "3.11"
jobs:
pre_install:
- "pip install pipenv"
- "pipenv requirements > requirements.txt"
pre_create_environment:
- "asdf plugin add uv"
- "asdf install uv latest"
- "asdf global uv latest"
create_environment:
- 'uv venv "${READTHEDOCS_VIRTUALENV_PATH}"'
install:
- 'UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen'

sphinx:
builder: "dirhtml"
configuration: "source/conf.py"

python:
install:
- requirements: "requirements.txt"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
uv run $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
uv run $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13 changes: 0 additions & 13 deletions Pipfile

This file was deleted.

366 changes: 0 additions & 366 deletions Pipfile.lock

This file was deleted.

10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[project]
name = "ukpa-internaldocs"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"sphinx>=8.2.3",
"sphinx-rtd-theme>=3.0.2",
]
408 changes: 408 additions & 0 deletions uv.lock

Large diffs are not rendered by default.