Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 984284f

Browse files
committed
still testing docs
1 parent cf2b3d7 commit 984284f

4 files changed

Lines changed: 19 additions & 38 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ sign:
103103
ls -l tarball/$$v.tar.gz.asc tarball/$$v.zip.asc ;
104104

105105
docs: all
106-
sphinx-apidoc -Mfe -o docs . setup.py
107-
sphinx-build -j auto -b html docs docs/_build/html
106+
sphinx-apidoc --force --module-first --separate --full --ext-autodoc -A 'Martin J Levy' -R 2.20.0 -V 2.20.0 -o docs . 'setup.py'
107+
sphinx-build -a -E -j auto -b html docs docs/_build/html
108108

109109
clean-docs: all
110-
rm -rf docs/*.rst docs/_build/
110+
rm -rf docs/CloudFlare*.rst docs/cli4*.rst docs/examples*.rst docs/modules*.rst docs/_build docs/_static
111111

112112
lint:
113113
$(PYLINT) CloudFlare cli4

‎docs/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#
21
# Minimal makefile for Sphinx documentation
32
#
43

@@ -8,7 +7,6 @@ SPHINXOPTS ?=
87
SPHINXBUILD ?= sphinx-build
98
SOURCEDIR = .
109
BUILDDIR = _build
11-
STATICDIR = _static
1210

1311
# Put it first so that "make" without argument is like "make help".
1412
help:
@@ -19,5 +17,4 @@ help:
1917
# Catch-all target: route all unknown targets to Sphinx using the new
2018
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2119
%: Makefile
22-
mkdir -p ${BUILDDIR} ${STATICDIR}
2320
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

‎docs/conf.py‎

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,35 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9-
import re
10-
with open('../CloudFlare/__init__.py', 'r') as f:
11-
_version_re = re.compile(r"__version__\s=\s'(.*)'")
12-
version = _version_re.search(f.read()).group(1)
13-
149
project = 'python-cloudflare'
15-
copyright = 'Copyright (c) 2016 thru 2024, Cloudflare. All rights reserved.'
10+
copyright = '2024, Martin J Levy'
1611
author = 'Martin J Levy'
17-
release = str(version)
12+
13+
version = '2.20.0'
14+
release = '2.20.0'
1815

1916
# -- General configuration ---------------------------------------------------
2017
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2118

2219
extensions = [
23-
'myst_parser',
2420
'sphinx.ext.autodoc',
25-
'sphinx_rtd_theme',
21+
'sphinx.ext.viewcode',
22+
'sphinx.ext.todo',
23+
'sphinx.ext.autodoc',
2624
]
2725

28-
html_theme = "sphinx_rtd_theme"
29-
3026
templates_path = ['_templates']
31-
exclude_patterns = [
32-
'CloudFlare/__init__.py',
33-
'CloudFlare/tests/__init__.py',
34-
'_build',
35-
'Thumbs.db',
36-
'.DS_Store'
37-
]
27+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
3828

39-
autoclass_content = 'both'
29+
language = 'en'
4030

4131
# -- Options for HTML output -------------------------------------------------
4232
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
4333

4434
html_theme = 'alabaster'
4535
html_static_path = ['_static']
4636

47-
import os
48-
import sys
49-
sys.path.insert(0, os.path.abspath('..'))
37+
# -- Options for todo extension ----------------------------------------------
38+
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration
39+
40+
todo_include_todos = True

‎docs/index.rst‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
.. python-cloudflare documentation master file, created by
2-
sphinx-quickstart on Fri Mar 1 09:53:57 2024.
2+
sphinx-quickstart on Sun Mar 3 23:59:20 2024.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
66
Welcome to python-cloudflare's documentation!
77
=============================================
88

9-
This `python-cloudflare` package is a Python wrapper providing full access to the CloudFlare v4 API.
10-
11-
.. toctree::
12-
:maxdepth: 2
13-
:caption: Contents:
14-
15-
python-cloudflare
16-
=================
17-
189
.. toctree::
1910
:maxdepth: 4
11+
:caption: Contents:
2012

2113
CloudFlare
2214
cli4
2315
examples
2416

17+
2518
Indices and tables
2619
==================
2720

0 commit comments

Comments
 (0)