nmk-doc 0.1.1__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nmk-doc-0.1.1/src/nmk_doc.egg-info → nmk-doc-0.2.0}/PKG-INFO +1 -1
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/setup.cfg +1 -1
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/__init__.py +0 -1
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/builders.py +3 -6
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/doc.yml +26 -1
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/resolvers.py +0 -4
- nmk-doc-0.2.0/src/nmk_doc/templates/readthedocs.yaml.jinja +22 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0/src/nmk_doc.egg-info}/PKG-INFO +1 -1
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc.egg-info/SOURCES.txt +2 -1
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/LICENSE +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/README.md +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/setup.py +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/badges.yml +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/path.yml +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/plugin-defs.yml +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/plugin.yml +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/templates/__init__.py +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc/templates/config.py.jinja +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc.egg-info/dependency_links.txt +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc.egg-info/requires.txt +0 -0
- {nmk-doc-0.1.1 → nmk-doc-0.2.0}/src/nmk_doc.egg-info/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@ exclude =
|
|
|
15
15
|
name = nmk-doc
|
|
16
16
|
author = The dynod project
|
|
17
17
|
maintainer = The dynod project
|
|
18
|
-
version = 0.
|
|
18
|
+
version = 0.2.0
|
|
19
19
|
long_description = file: README.md
|
|
20
20
|
long_description_content_type = text/markdown
|
|
21
21
|
license = Mozilla Public License Version 2.0
|
|
@@ -11,15 +11,14 @@ from nmk_base.common import TemplateBuilder
|
|
|
11
11
|
|
|
12
12
|
class NmkDocConfigBuilder(TemplateBuilder):
|
|
13
13
|
"""
|
|
14
|
-
Builder used to generate
|
|
14
|
+
Builder used to generate doc config files
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
def build(self, template: str):
|
|
18
18
|
"""
|
|
19
|
-
Called by the **doc.config**
|
|
19
|
+
Called by the **doc.config** and **doc.rtd** tasks, to generate the **sphinx** + **Read The Docs** config files
|
|
20
20
|
|
|
21
|
-
:param template: Path to the Jinja template
|
|
22
|
-
:type template: str
|
|
21
|
+
:param template: Path to the Jinja template to use for generation**
|
|
23
22
|
"""
|
|
24
23
|
|
|
25
24
|
# Just build from template
|
|
@@ -36,9 +35,7 @@ class NmkDocSphinxBuilder(NmkTaskBuilder):
|
|
|
36
35
|
Called by the **doc.build** task, to build the **sphinx** documentation
|
|
37
36
|
|
|
38
37
|
:param source_folder: doc source folder
|
|
39
|
-
:type source_folder: str
|
|
40
38
|
:param output_folder: doc output folder
|
|
41
|
-
:type output_folder: str
|
|
42
39
|
"""
|
|
43
40
|
|
|
44
41
|
# Invoke sphinx
|
|
@@ -48,6 +48,12 @@ config:
|
|
|
48
48
|
# Doc output folder
|
|
49
49
|
docOutput: ${outputDir}/doc
|
|
50
50
|
|
|
51
|
+
# Config file for ReadTheDocs automated build
|
|
52
|
+
docRTDConfig: ${PROJECTDIR}/.readthedocs.yaml
|
|
53
|
+
|
|
54
|
+
# Template file for ReadTheDocs automated build config
|
|
55
|
+
docRTDConfigTemplate: ${BASEDIR}/templates/readthedocs.yaml.jinja
|
|
56
|
+
|
|
51
57
|
# Additional venv dependencies (sphinx itself + plugins)
|
|
52
58
|
venvPkgDeps:
|
|
53
59
|
- sphinx
|
|
@@ -65,12 +71,31 @@ tasks:
|
|
|
65
71
|
appendToDeps:
|
|
66
72
|
- setup
|
|
67
73
|
if: ${docInputs}
|
|
68
|
-
input:
|
|
74
|
+
input:
|
|
75
|
+
- ${gitVersionStamp}
|
|
76
|
+
- ${docConfigTemplate}
|
|
69
77
|
output: ${docConfig}
|
|
70
78
|
builder: nmk_doc.builders.NmkDocConfigBuilder
|
|
71
79
|
params:
|
|
72
80
|
template: ${docConfigTemplate}
|
|
73
81
|
|
|
82
|
+
# Generate "Read The Docs" configuration file
|
|
83
|
+
doc.rtd:
|
|
84
|
+
description: Generate ReadTheDocs config file
|
|
85
|
+
emoji: ":open_book:.:pencil:"
|
|
86
|
+
deps:
|
|
87
|
+
- doc.config
|
|
88
|
+
appendToDeps:
|
|
89
|
+
- setup
|
|
90
|
+
if: ${docInputs}
|
|
91
|
+
input:
|
|
92
|
+
- ${docConfig}
|
|
93
|
+
- ${docRTDConfigTemplate}
|
|
94
|
+
output: ${docRTDConfig}
|
|
95
|
+
builder: nmk_doc.builders.NmkDocConfigBuilder
|
|
96
|
+
params:
|
|
97
|
+
template: ${docRTDConfigTemplate}
|
|
98
|
+
|
|
74
99
|
# Build documentation
|
|
75
100
|
doc.build:
|
|
76
101
|
description: Build documentation
|
|
@@ -40,9 +40,7 @@ class NmkDocVersionResolver(NmkStrConfigResolver):
|
|
|
40
40
|
* otherwise deduce last tag and increment it with increment configured in **${docVersionIncrement}** config item
|
|
41
41
|
|
|
42
42
|
:param name: config item name to be resolved
|
|
43
|
-
:type name: str
|
|
44
43
|
:return: resolved version
|
|
45
|
-
:rtype: str
|
|
46
44
|
"""
|
|
47
45
|
|
|
48
46
|
# Get git version
|
|
@@ -97,9 +95,7 @@ class NmkDocYearResolver(NmkIntConfigResolver):
|
|
|
97
95
|
Get today's year.
|
|
98
96
|
|
|
99
97
|
:param name: config item name to be resolved
|
|
100
|
-
:type name: str
|
|
101
98
|
:return: current year
|
|
102
|
-
:rtype: str
|
|
103
99
|
"""
|
|
104
100
|
|
|
105
101
|
# Today's year
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Read the Docs configuration file for Sphinx projects
|
|
2
|
+
# Please don't edit: generated by nmk-doc plugin
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
# Required
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
# Set the OS, Python version and other tools you might need
|
|
9
|
+
build:
|
|
10
|
+
os: ubuntu-22.04
|
|
11
|
+
tools:
|
|
12
|
+
python: "{{ pythonSupportedVersions[-1] }}"
|
|
13
|
+
|
|
14
|
+
# Build documentation directory with Sphinx
|
|
15
|
+
sphinx:
|
|
16
|
+
configuration: {{ docConfig }}
|
|
17
|
+
|
|
18
|
+
# Declare the Python requirements required to build your documentation
|
|
19
|
+
python:
|
|
20
|
+
install:
|
|
21
|
+
- requirements: {{ venvRequirements }}
|
|
22
|
+
|
|
@@ -16,4 +16,5 @@ src/nmk_doc.egg-info/dependency_links.txt
|
|
|
16
16
|
src/nmk_doc.egg-info/requires.txt
|
|
17
17
|
src/nmk_doc.egg-info/top_level.txt
|
|
18
18
|
src/nmk_doc/templates/__init__.py
|
|
19
|
-
src/nmk_doc/templates/config.py.jinja
|
|
19
|
+
src/nmk_doc/templates/config.py.jinja
|
|
20
|
+
src/nmk_doc/templates/readthedocs.yaml.jinja
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|