Skip to content

Commit 53faadc

Browse files
committed
feat: Add readthedocs support
1 parent 4b0ea14 commit 53faadc

25 files changed

+36
-51
lines changed

.readthedocs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
version: 2
4+
5+
build:
6+
os: ubuntu-24.04
7+
tools:
8+
python: "3.13"
9+
10+
sphinx:
11+
configuration: docs/source/conf.py
12+
fail_on_warning: false
13+
14+
formats:
15+
- epub
16+
- pdf
17+
18+
python:
19+
install:
20+
- requirements: docs/requirements.txt

docs/.gitignore

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

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
8+
SOURCEDIR = source/
99
BUILDDIR = _build
1010

1111
# Put it first so that "make" without argument is like "make help".

docs/pyproject.toml

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

docs/requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Generated from docs/pyproject.toml [tool.poetry.dependencies]
2+
# Note: Poetry caret constraints (^) converted to pip-compatible specifiers
3+
sphinx>=7.2.6,<8.0.0
4+
sphinx-rtd-theme>=2.0.0,<3.0.0
5+
sphinx-autodoc-typehints>=2.0.0,<3.0.0
6+
sphinx-copybutton>=0.5.2,<0.6.0
7+
sphinx-tabs>=3.4.4,<4.0.0
8+
furo>=2025.7.19,<2026.0.0
9+
-e ..
File renamed without changes.
File renamed without changes.

docs/conf.py renamed to docs/source/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import os
1414
import sys
1515

16+
from djangocms_rest import __version__
17+
1618
sys.path.insert(0, os.path.abspath(".."))
1719

1820
# -- Project information -----------------------------------------------------
@@ -22,7 +24,8 @@
2224
author = "Django CMS Association and contributors"
2325

2426
# The full version, including alpha/beta/rc tags
25-
release = "0.1.0"
27+
28+
release = __version__
2629

2730
# -- General configuration ---------------------------------------------------
2831

@@ -121,10 +124,10 @@
121124

122125
# The name for this set of Sphinx documents. If None, it defaults to
123126
# "<project> v<release> documentation".
124-
html_title = "djangocms-rest"
127+
html_title = None
125128

126129
# A shorter title for the navigation bar. Default is the same as html_title.
127-
html_short_title = "djangocms-rest"
130+
# html_short_title = "djangocms-rest"
128131

129132
# The name of an image file (relative to this directory) to place at the top
130133
# of the sidebar.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)