Skip to content

Commit a41b8b7

Browse files
authored
Merge pull request #2754 from OSInside/get_rid_of_travis_sphinx
Drop use of travis-sphinx
2 parents 065477a + b76429e commit a41b8b7

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

.github/workflows/ci-publish-pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
python-version: ["3.11"]
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Python${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Install
@@ -25,9 +25,11 @@ jobs:
2525
python -m pip install poetry
2626
- name: Render
2727
run: |
28-
make prepare_for_docs
28+
poetry run sphinx-build doc/source doc/build
2929
- name: Deploy
3030
uses: peaceiris/actions-gh-pages@v3
3131
with:
32+
publish_branch: gh-pages
3233
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./doc/build_gh_pages
34+
publish_dir: ./doc/build
35+
force_orphan: true

Makefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,6 @@ prepare_for_pypi: clean setup
162162
# ci-publish-to-pypi.yml github action
163163
poetry build --format=sdist
164164

165-
prepare_for_docs: clean setup
166-
# documentation man pages
167-
poetry run make -C doc man
168-
# documentation github pages, the actual publishing via
169-
# the ci-publish-pages.yml github action
170-
poetry run bash -c 'pushd doc && \
171-
travis-sphinx --outdir build_gh_pages build --nowarn --source ./source'
172-
bash -c 'touch ./doc/build_gh_pages/.nojekyll'
173-
174165
clean: clean_git_attributes
175166
rm -rf dist
176167
rm -rf doc/build

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ sphinx = ">=5.0.0"
106106
sphinx_rtd_theme = "*"
107107
sphinxcontrib-spelling = "*"
108108
pyenchant = "*"
109-
travis-sphinx = "*"
110109
ghp-import = "*"
111110

112111
[tool.poetry.group.development]

0 commit comments

Comments
 (0)