This repository was archived by the owner on May 7, 2024. It is now read-only.
File tree 5 files changed +61
-9
lines changed
5 files changed +61
-9
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,22 @@ version: 2
8
8
# Optionally declare the Python requirements required to build your docs
9
9
python :
10
10
install :
11
+ - path : .
11
12
- requirements : docs/requirements.txt
12
13
- requirements : requirements.txt
13
14
14
15
# Set the version of Python and other tools you might need
15
16
build :
16
17
os : ubuntu-22.04
17
18
tools :
18
- python : " 3"
19
+ python : " 3.11 "
19
20
20
21
# Build documentation in the docs/ directory with Sphinx
21
22
sphinx :
22
23
configuration : docs/conf.py
24
+ builder : " html"
25
+
26
+ # Optionally build your docs in additional formats such as PDF and ePub
27
+ formats :
28
+ - pdf
29
+ - epub
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ PYLINT = pylint
5
5
TWINE = twine
6
6
PYTEST = pytest
7
7
8
+ SPHINX_RELEASE = 2.20.0
9
+ SPHINX_AUTHOR = Martin J. Levy
10
+ SPHINX_COPYRIGHT = Copyright (c) 2016 thru 2024, Cloudflare. All rights reserved.
11
+
8
12
9
13
NAME = "cloudflare"
10
14
@@ -103,7 +107,8 @@ sign:
103
107
ls -l tarball/$$ v.tar.gz.asc tarball/$$ v.zip.asc ;
104
108
105
109
docs : all
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'
110
+ @mkdir -p docs/_build docs/_static
111
+ sphinx-apidoc --force --module-first --separate --ext-autodoc -A " $( SPHINX_AUTHOR) " -R " $( SPHINX_RELEASE) " -V " $( SPHINX_RELEASE) " -o docs . ' setup.*'
107
112
sphinx-build -a -E -j auto -b html docs docs/_build/html
108
113
109
114
clean-docs : all
Original file line number Diff line number Diff line change 7
7
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8
8
9
9
project = 'python-cloudflare'
10
- copyright = '2024, Martin J Levy '
10
+ copyright = 'Copyright (c) 2016 thru 2024, Cloudflare. All rights reserved. '
11
11
author = 'Martin J Levy'
12
12
13
13
version = '2.20.0'
Original file line number Diff line number Diff line change 3
3
You can adapt this file completely to your liking, but it should at least
4
4
contain the root `toctree` directive.
5
5
6
- Welcome to python-cloudflare's documentation!
7
- =============================================
6
+ python-cloudflare - A Python-based access to Cloudflare's API's
7
+ ===============================================================
8
+
9
+ Release v\ |version |.
10
+
11
+ .. image :: https://static.pepy.tech/badge/cloudflare/month
12
+ :target: https://pepy.tech/project/cloudflare
13
+ :alt: Requests Downloads Per Month Badge
14
+
15
+ .. image :: https://img.shields.io/pypi/l/cloudflare.svg
16
+ :target: https://pypi.org/project/cloudflare/
17
+ :alt: License Badge
18
+
19
+ .. image :: https://img.shields.io/pypi/wheel/cloudflare.svg
20
+ :target: https://pypi.org/project/cloudflare/
21
+ :alt: Wheel Support Badge
22
+
23
+ .. image :: https://img.shields.io/pypi/pyversions/cloudflare.svg
24
+ :target: https://pypi.org/project/cloudflare/
25
+ :alt: Python Version Support Badge
26
+
27
+ **python-cloudflare ** is a Python library for easy access to Cloudflare's API's.
28
+
29
+ **Trivial example **::
30
+
31
+ >>> import CloudFlare
32
+ >>> cf = CloudFlare.cloudflare()
33
+ >>>
34
+ >>> cf.ips()
35
+ {'ipv4_cidrs': ['173.245.48.0/20', ... ], ... }
36
+ >>>
37
+
38
+ Refer to the `examples ` directory for full examples.
39
+
40
+ The User Guide
41
+ --------------
8
42
9
43
.. toctree ::
10
44
:maxdepth: 4
11
45
:caption: Contents:
12
46
13
- CloudFlare
14
- cli4
15
- examples
16
-
47
+ .. include :: modules.rst
17
48
18
49
Indices and tables
19
50
==================
Original file line number Diff line number Diff line change
1
+ python-cloudflare
2
+ =================
3
+
4
+ .. toctree ::
5
+ :maxdepth: 4
6
+
7
+ CloudFlare
8
+ cli4
9
+ examples
You can’t perform that action at this time.
0 commit comments