clear-skies-doc-builder 2.0.7__py3-none-any.whl → 2.0.8__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clear-skies-doc-builder
3
- Version: 2.0.7
3
+ Version: 2.0.8
4
4
  Summary: The docbuilder for all 'official' clearskies plugins (as well as the main clearskies docs)
5
5
  Project-URL: repository, https://github.com/clearskies-py/docs
6
6
  Project-URL: issues, https://github.com/clearskies-py/docs/issues
@@ -142,6 +142,38 @@ This creates:
142
142
 
143
143
  The `grand_parent` field enables the Jekyll "just-the-docs" theme's three-level navigation, allowing you to document submodule classes under their logical grouping.
144
144
 
145
+ #### Parent-Only Sections (No Classes)
146
+
147
+ You can create a parent section that only serves as a navigation container without documenting any classes directly. This is useful when you want to group multiple submodules under a common heading:
148
+
149
+ ```json
150
+ {
151
+ "tree": [
152
+ {
153
+ "title": "Cursors",
154
+ "source": "clearskies.cursors.Cursor",
155
+ "builder": "clearskies_doc_builder.builders.Module"
156
+ },
157
+ {
158
+ "title": "IAM Cursors",
159
+ "source": "clearskies.cursors.iam.IamCursor",
160
+ "builder": "clearskies_doc_builder.builders.Module",
161
+ "parent": "Cursors",
162
+ "classes": ["clearskies.cursors.iam.RdsMysql"]
163
+ },
164
+ {
165
+ "title": "Port Forwarding",
166
+ "source": "clearskies.cursors.port_forwarding.PortForwarder",
167
+ "builder": "clearskies_doc_builder.builders.Module",
168
+ "parent": "Cursors",
169
+ "classes": ["clearskies.cursors.port_forwarding.Ssm"]
170
+ }
171
+ ]
172
+ }
173
+ ```
174
+
175
+ Note that the "Cursors" entry has no `classes` field - it just creates an index page with the overview from the source class docblock. The child sections ("IAM Cursors" and "Port Forwarding") will appear as sub-navigation items under "Cursors".
176
+
145
177
  #### Using SingleClass for Individual Classes
146
178
 
147
179
  You can also use `SingleClass` builder for documenting individual classes within a hierarchy:
@@ -8,7 +8,7 @@ clearskies_doc_builder/backends/module_backend.py,sha256=hHJXt00TJIF3-69p_kjdAZu
8
8
  clearskies_doc_builder/backends/python.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  clearskies_doc_builder/builders/__init__.py,sha256=ndAK4-imR9vhl7CS425ASYi46FN5-eR9Dr6bKxCn5lA,292
10
10
  clearskies_doc_builder/builders/builder.py,sha256=2QZDscwOZ4vfx4NzFU4AyKgAPuKVU0jsYBcT42CZgzY,7957
11
- clearskies_doc_builder/builders/module.py,sha256=WlLSMPN3AoCaMg66DxvRXiO3x4zVFhoYGXjHM6U0M6c,4912
11
+ clearskies_doc_builder/builders/module.py,sha256=tPtXcqmI-XG-yH82WdmK4MLBL73RMiAHL_0VOJZaIKw,4920
12
12
  clearskies_doc_builder/builders/single_class.py,sha256=-3b9VC_bxB9r5EHcdUCA1VFWxY0r_N72td0ZHLydy3Y,4846
13
13
  clearskies_doc_builder/builders/single_class_to_section.py,sha256=uEyawxW4cIdavBVnK2TBiIqywUgj3IxmUcS16E81cgI,1754
14
14
  clearskies_doc_builder/columns/__init__.py,sha256=--cof8kFPwlZncM3MBQYkvfq8TejEeI0B99vTlEVCkU,566
@@ -32,7 +32,7 @@ clearskies_doc_builder/models/method_reference.py,sha256=U4YOpRLotyEp6G0Y5OHORdo
32
32
  clearskies_doc_builder/models/module.py,sha256=5JUF2LUKTpVsYlviT7T_qgLdMApGtS4qIUloCEzJ-uo,573
33
33
  clearskies_doc_builder/models/module_reference.py,sha256=-zHnrkP6JR7j2XFuW94uGlPENI3ZshxgBu4yY9ayzSg,177
34
34
  clearskies_doc_builder/models/property.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- clear_skies_doc_builder-2.0.7.dist-info/METADATA,sha256=vOVE5Aqo5BiuVRm3QdwiE5FHfelXSRvRS_2OfKkwo_A,7036
36
- clear_skies_doc_builder-2.0.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
37
- clear_skies_doc_builder-2.0.7.dist-info/licenses/LICENSE,sha256=pgH32-xrgpIDf6WIBUA1X19o-sIHIXgToCxo-tBWDdw,1071
38
- clear_skies_doc_builder-2.0.7.dist-info/RECORD,,
35
+ clear_skies_doc_builder-2.0.8.dist-info/METADATA,sha256=0FnkQRgfk8cDjVAC3T8uak55otGw8h5jgB_eG84gmkY,8191
36
+ clear_skies_doc_builder-2.0.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
37
+ clear_skies_doc_builder-2.0.8.dist-info/licenses/LICENSE,sha256=pgH32-xrgpIDf6WIBUA1X19o-sIHIXgToCxo-tBWDdw,1071
38
+ clear_skies_doc_builder-2.0.8.dist-info/RECORD,,
@@ -9,7 +9,7 @@ from .builder import Builder
9
9
  class Module(Builder):
10
10
  def __init__(self, branch, modules, classes, doc_root, nav_order):
11
11
  super().__init__(branch, modules, classes, doc_root, nav_order)
12
- self.class_list = branch["classes"]
12
+ self.class_list = branch.get("classes", [])
13
13
  self.args_to_additional_attributes_map = branch.get("args_to_additional_attributes_map", {})
14
14
  self.parent = branch.get("parent", False)
15
15
  self.grand_parent = branch.get("grand_parent", False)