Skip to content

Commit 120818c

Browse files
authored
Add readthedocs configuration (#128)
* Add basic rtd file * Move reqs to docs folder * Test no markdown * Remove unused markdown-extensions and add docs/README
1 parent ca5a3c8 commit 120818c

File tree

5 files changed

+38
-65
lines changed

5 files changed

+38
-65
lines changed

.readthedocs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation with MkDocs
9+
mkdocs:
10+
configuration: mkdocs.yml
11+
12+
# Optionally set the version of Python and requirements required to build your docs
13+
python:
14+
version: 3.7
15+
install:
16+
- requirements: docs/requirements.txt

docs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# datadog-api-client-python
2+
3+
Collection of all of the Datadog public endpoints. For the official documentation, see the [Datadog API Reference](https://docs.datadoghq.com/api/).
4+
5+
This python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
6+
7+
Need help? Reach out to our awesome [support team](https://www.datadoghq.com/support/).
8+
9+
## Author
10+
11+

docs/requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--use-feature=2020-resolver
2+
mkdocs>=1.1.1
3+
mkdocs-material>=5.2.1
4+
mkdocs-minify-plugin>=0.3.0
5+
mkdocs-git-revision-date-localized-plugin>=0.5.2
6+
mkdocstrings>=0.11.0
7+
pymdown-extensions>=7.1
8+
mkdocs-material-extensions>=1.0
9+
mkpatcher>=1.0.2
10+
Pygments>=2.6.1

mkdocs.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -50,57 +50,6 @@ plugins:
5050
show_root_heading: yes
5151
show_source: true
5252

53-
markdown_extensions:
54-
# Built-in
55-
- markdown.extensions.abbr:
56-
- markdown.extensions.admonition:
57-
- markdown.extensions.footnotes:
58-
- markdown.extensions.tables:
59-
- markdown.extensions.toc:
60-
permalink: true
61-
toc_depth: "1-6"
62-
# Extra
63-
- pymdownx.arithmatex:
64-
- pymdownx.betterem:
65-
smart_enable: all
66-
- pymdownx.caret:
67-
- pymdownx.critic:
68-
- pymdownx.details:
69-
- pymdownx.emoji:
70-
# https://github.com/twitter/twemoji
71-
# https://raw.githubusercontent.com/facelessuser/pymdown-extensions/master/pymdownx/twemoji_db.py
72-
emoji_index: !!python/name:materialx.emoji.twemoji
73-
emoji_generator: !!python/name:materialx.emoji.to_svg
74-
- pymdownx.highlight:
75-
guess_lang: false
76-
linenums_style: pymdownx-inline
77-
use_pygments: true
78-
- pymdownx.inlinehilite:
79-
- pymdownx.keys:
80-
- pymdownx.magiclink:
81-
repo_url_shortener: true
82-
repo_url_shorthand: true
83-
social_url_shortener: true
84-
social_url_shorthand: true
85-
provider: github
86-
user: DataDog
87-
repo: datadog-api-client-python
88-
- pymdownx.mark:
89-
- pymdownx.progressbar:
90-
- pymdownx.smartsymbols:
91-
- pymdownx.superfences:
92-
custom_fences:
93-
- name: mermaid
94-
class: mermaid
95-
format: !!python/name:pymdownx.superfences.fence_code_format
96-
- name: math
97-
class: arithmatex
98-
format: !!python/name:pymdownx.arithmatex.fence_mathjax_format
99-
- pymdownx.tabbed:
100-
- pymdownx.tasklist:
101-
custom_checkbox: true
102-
- pymdownx.tilde:
103-
10453
extra:
10554
social:
10655
- icon: fontawesome/solid/blog

tox.ini

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,7 @@ skip_install = true
1111
passenv = *
1212
basepython = python3
1313
deps =
14-
--use-feature=2020-resolver
15-
mkdocs>=1.1.1
16-
; theme
17-
mkdocs-material>=5.2.1
18-
; plugins
19-
mkdocs-minify-plugin>=0.3.0
20-
mkdocs-git-revision-date-localized-plugin>=0.5.2
21-
mkdocstrings>=0.11.0
22-
; Extensions
23-
pymdown-extensions>=7.1
24-
mkdocs-material-extensions>=1.0
25-
mkpatcher>=1.0.2
26-
; Necessary for syntax highlighting in code blocks
27-
Pygments>=2.6.1
14+
-rdocs/requirements.txt
2815
setenv =
2916
; Use a set timestamp for reproducible builds.
3017
; See https://reproducible-builds.org/specs/source-date-epoch/

0 commit comments

Comments
 (0)