Skip to content

Commit 22bdf62

Browse files
Merge pull request #2553 from VWS-Python/docs-github-pages-4
Switch from ReadTheDocs to GitHub Pages
2 parents 9b1df1a + e7aa907 commit 22bdf62

File tree

5 files changed

+30
-26
lines changed

5 files changed

+30
-26
lines changed

.github/workflows/publish-site.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Deploy documentation
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
pages:
12+
runs-on: ubuntu-latest
13+
environment:
14+
name: ${{ github.ref_name == 'main' && 'github-pages' || 'development' }}
15+
url: ${{ steps.deployment.outputs.page_url }}
16+
permissions:
17+
pages: write
18+
id-token: write
19+
steps:
20+
- id: deployment
21+
uses: sphinx-notes/pages@v3
22+
with:
23+
documentation_path: docs/source
24+
pyproject_extras: dev
25+
python_version: '3.13'
26+
sphinx_build_options: -W
27+
publish: ${{ github.ref_name == 'main' }}

README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|Build Status| |codecov| |PyPI| |Documentation Status|
1+
|Build Status| |codecov| |PyPI|
22

33
vws-python
44
==========
@@ -67,15 +67,12 @@ Getting Started
6767
Full Documentation
6868
------------------
6969

70-
See the `full
71-
documentation <https://vws-python.readthedocs.io/en/latest>`__.
70+
See the `full documentation <https://vws-python.github.io/vws-python/>`__.
7271

7372
.. |Build Status| image:: https://github.com/VWS-Python/vws-python/actions/workflows/ci.yml/badge.svg?branch=main
7473
:target: https://github.com/VWS-Python/vws-python/actions
7574
.. |codecov| image:: https://codecov.io/gh/VWS-Python/vws-python/branch/main/graph/badge.svg
7675
:target: https://codecov.io/gh/VWS-Python/vws-python
7776
.. |PyPI| image:: https://badge.fury.io/py/VWS-Python.svg
7877
:target: https://badge.fury.io/py/VWS-Python
79-
.. |Documentation Status| image:: https://readthedocs.org/projects/vws-python/badge/?version=latest
80-
:target: https://vws-python.readthedocs.io/en/latest/?badge=latest
8178
.. |minimum-python-version| replace:: 3.12

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ See https://vws-python-mock.readthedocs.io/en/latest/differences-to-vws.html for
114114

115115
.. _VWS Python Mock: https://github.com/VWS-Python/vws-python-mock
116116

117-
118117
Reference
119118
---------
120119

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ optional-dependencies.dev = [
8282
"yamlfix==1.17.0",
8383
]
8484
optional-dependencies.release = [ "check-wheel-contents==0.6.1" ]
85-
urls.Documentation = "https://vws-python.readthedocs.io/en/latest/"
85+
urls.Documentation = "https://vws-python.github.io/vws-python/"
8686
urls.Source = "https://github.com/VWS-Python/vws-python"
8787

8888
[tool.setuptools]
@@ -283,7 +283,6 @@ ignore = [
283283
".yamlfmt",
284284
"*.enc",
285285
".pre-commit-config.yaml",
286-
"readthedocs.yaml",
287286
"CHANGELOG.rst",
288287
"CODE_OF_CONDUCT.rst",
289288
"CONTRIBUTING.rst",

readthedocs.yaml

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

0 commit comments

Comments
 (0)