Skip to content

Commit 96aa3cf

Browse files
committed
Add an explicit config for building readthedocs
The explicit configuration is now required: https://blog.readthedocs.com/migrate-configuration-v2/ Also rename the `README` file and link it from docs directory so that the main page is actually generated.
1 parent 4101ec7 commit 96aa3cf

6 files changed

+12
-5
lines changed

.readthedocs.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Config for building https://python-nitrate.readthedocs.io/
2+
version: 2
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3"

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PACKAGE = python-nitrate-$(VERSION)
1313
DOCS = $(TMP)/$(PACKAGE)/docs
1414
EXAMPLES = $(TMP)/$(PACKAGE)/examples
1515
CSS = --stylesheet=style.css --link-stylesheet
16-
FILES = LICENSE README \
16+
FILES = LICENSE README.rst \
1717
Makefile python-nitrate.spec setup.py \
1818
docs examples source
1919

@@ -22,8 +22,8 @@ all: push clean
2222
build:
2323
mkdir -p $(TMP)/{SOURCES,$(PACKAGE)}
2424
cp -a $(FILES) $(TMP)/$(PACKAGE)
25-
rst2man README | gzip > $(DOCS)/python-nitrate.1.gz
26-
rst2html README $(CSS) > $(DOCS)/index.html
25+
rst2man README.rst | gzip > $(DOCS)/python-nitrate.1.gz
26+
rst2html README.rst $(CSS) > $(DOCS)/index.html
2727
rst2man $(DOCS)/notes.rst | gzip > $(DOCS)/nitrate-notes.1.gz
2828
rst2html $(DOCS)/notes.rst $(CSS) > $(DOCS)/notes.html
2929
rst2man $(DOCS)/nitrate.rst | gzip > $(DOCS)/nitrate.1.gz

README README.rst

File renamed without changes.

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.rst

python-nitrate.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}i" %{buildroot}%{_bindir}/nitrat
122122
%{python3_sitelib}/nitrate-*.egg-info/
123123
%{_mandir}/man1/*
124124
%{_bindir}/nitrate
125-
%doc README examples
125+
%doc README.rst examples
126126
%license LICENSE
127127

128128
%changelog

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Prepare short and long description
1010
description = 'Python API for the Nitrate test case management system'
11-
with open("README") as readme:
11+
with open("README.rst") as readme:
1212
long_description = readme.read()
1313

1414
# Parse version from the spec file

0 commit comments

Comments
 (0)