Skip to content

Commit ce681e3

Browse files
committed
Migrating docs away from readthedocs
1 parent 4d29192 commit ce681e3

30 files changed

+1308
-201
lines changed

.github/workflows/build-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
name: build tests
3-
on: [push]
3+
4+
on:
5+
push:
6+
branches: [ '*' ]
7+
tags: [ '*' ]
48

59
jobs:
610

@@ -9,14 +13,14 @@ jobs:
913
runs-on: ubuntu-latest
1014
strategy:
1115
matrix:
12-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1317
steps:
1418
- uses: actions/checkout@v4
1519
- uses: NiklasRosenstein/slap@gha/install/v1
16-
with: { version: "1.12.0" }
20+
with: { version: "1.15.0" }
1721

1822
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2024
with: { python-version: "${{ matrix.python-version }}" }
2125

2226
- name: Create a venv to operate within using slap-cli

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
name: docs
3+
4+
on:
5+
push:
6+
branches: [ 'main', 'dev' ]
7+
8+
env:
9+
PYTHON_VERSION: "3.12"
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
16+
docs:
17+
runs-on: ubuntu-latest
18+
environment: github-pages
19+
20+
steps:
21+
- name: Checkout latest
22+
uses: actions/checkout@v4
23+
with: { fetch-depth: 0 }
24+
- name: Install Python
25+
uses: actions/setup-python@v5
26+
with: { python-version: "3.12" }
27+
- name: Install UV
28+
uses: astral-sh/setup-uv@v5
29+
- name: Install project using UV
30+
run: |
31+
cd docs
32+
uv tool install . || exit 0
33+
# NB: until uv is able to handle packages without executables we need to use an " || exit 0"
34+
- name: Build docs and publish
35+
run: |
36+
cd docs
37+
uv run --active -- bash -xc 'mkdocs --version'
38+
uv run --active -- bash -xc 'mkdocs gh-deploy --force'

.readthedocs.yml

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

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![pypi](https://img.shields.io/pypi/v/hibp-downloader.svg)](https://pypi.python.org/pypi/hibp-downloader/)
44
[![python](https://img.shields.io/pypi/pyversions/hibp-downloader.svg)](https://github.com/threatpatrols/hibp-downloader/)
55
[![build tests](https://github.com/threatpatrols/hibp-downloader/actions/workflows/build-tests.yml/badge.svg)](https://github.com/threatpatrols/hibp-downloader/actions/workflows/build-tests.yml)
6-
[![docs](https://img.shields.io/readthedocs/hibp-downloader)](https://hibp-downloader.readthedocs.io)
76
[![license](https://img.shields.io/github/license/threatpatrols/hibp-downloader.svg)](https://github.com/threatpatrols/hibp-downloader)
87

98
This is a CLI tool to efficiently download a local copy of the pwned password hash data from the very awesome
@@ -58,15 +57,6 @@ Sample download activity log; host with 32 cores on 500Mbit/s connection.
5857

5958
## Project
6059

61-
- Github - [github.com/threatpatrols/hibp-downloader](https://github.com/threatpatrols/hibp-downloader)
60+
- Docs - [threatpatrols.github.io/hibp-downloader](https://threatpatrols.github.io/hibp-downloader)
6261
- PyPI - [pypi.org/project/hibp-downloader/](https://pypi.org/project/hibp-downloader/)
63-
- ReadTheDocs - [hibp-downloader.readthedocs.io](https://hibp-downloader.readthedocs.io)
64-
65-
## Copyright
66-
- Copyright © 2023-2024 [Threat Patrols Pty Ltd](https://www.threatpatrols.com)
67-
- Copyright © 2023-2024 [Nicholas de Jong](https://www.nicholasdejong.com)
68-
69-
All rights reserved.
70-
71-
## License
72-
* BSD-3-Clause - see LICENSE file for details.
62+
- Github - [github.com/threatpatrols/hibp-downloader](https://github.com/threatpatrols/hibp-downloader)

docs/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

docs/build.novella

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

docs/content/development.md

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

docs/content/index.md

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

docs/content/license.md

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

docs/content/project.md

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

0 commit comments

Comments
 (0)