Skip to content

Commit 501dd4a

Browse files
authored
Merge pull request #610 from FriendsOfCake/docs-build
Add config file for readthedocs
2 parents 396e058 + 14693c9 commit 501dd4a

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ docs export-ignore
1111
phpcs.xml export-ignore
1212
psalm.xml export-ignore
1313
phpstan.neon export-ignore
14+
.readthedocs.yml export-ignore

.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.9"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
formats:
27+
- pdf
28+
- epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
project = u'cakephp-upload'
1515
project_pretty_name = u'CakePHP Upload'
1616
copyright = u'%d, Jose Diaz-Gonzalez' % datetime.datetime.now().year
17-
version = '3.0.0'
18-
release = '3.0.0'
17+
version = '8.0'
18+
release = '8.0'
1919
html_title = 'CakePHP Upload'
2020
html_context = {
2121
'maintainer': maintainer,

0 commit comments

Comments
 (0)