Skip to content

Commit 506429b

Browse files
authored
Fix RTD builds (#228)
1 parent c3f2f34 commit 506429b

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ docs/source/_build
1212
man/ansi2html.1.xml
1313
src/ansi2html/_version.py
1414
site
15+
_readthedocs

.readthedocs.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
version: 2
3+
4+
mkdocs:
5+
fail_on_warning: true
6+
configuration: mkdocs.yml
7+
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
commands:
13+
- pip install --user tox
14+
- python3 -m tox -e docs
15+
python:
16+
install:
17+
- method: pip
18+
path: tox
19+
- method: pip
20+
path: .
21+
extra_requirements:
22+
- docs

readthedocs.yml

-12
This file was deleted.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ commands =
7171
; --attribute="manual_version=$(python3 -m setuptools_scm)" \
7272
; --format=manpage -D man \
7373
; man/ansi2html.1.txt'
74-
mkdocs build --strict
74+
mkdocs {posargs:build --strict --site-dir=_readthedocs/html/}

0 commit comments

Comments
 (0)