You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit improves on the current logic (from #995) and moves it to occur earlier in the build process, directly after the need location has been analysed (i.e. once it is no longer necessary).
Copy file name to clipboardExpand all lines: docs/contributing.rst
+10-9
Original file line number
Diff line number
Diff line change
@@ -203,13 +203,14 @@ The following is an outline of the build events which this extension adds to the
203
203
- Start process timing, if enabled (``prepare_env``)
204
204
- Load external needs (``load_external_needs``)
205
205
206
-
#. For all removed and changed documents (``env-before-read-docs`` event):
206
+
#. For all removed and changed documents (``env-purge-doc`` event):
207
207
208
208
- Remove all cached need items that originate from the document (``purge_needs``)
209
209
210
210
#. For changed documents (``doctree-read`` event, priority 880 of transforms)
211
211
212
-
- Determine and add data on containing sections and parents to needs (``add_sections``)
212
+
- Determine and add data on parent sections and needs(``analyse_need_locations``)
213
+
- Remove ``Need`` nodes marked as ``hidden`` (``analyse_need_locations``)
213
214
214
215
#. When building in parallel mode (``env-merge-info`` event), merge ``BuildEnvironment`` data (``merge_data``)
215
216
@@ -223,7 +224,7 @@ The following is an outline of the build events which this extension adds to the
223
224
224
225
#. For all changed documents, or their dependants (``doctree-resolved``)
225
226
226
-
- Replace all ```Needextract``` nodes with a list of the collected ``Need`` (``process_creator``)
227
+
- Replace all ``Needextract`` nodes with a list of the collected ``Need`` (``process_creator``)
227
228
- Remove all ``Need`` nodes, if ``needs_include_needs`` is ``True`` (``process_need_nodes``)
228
229
- Call dynamic functions, set as values on the need data items and replace them with their return values (``process_need_nodes -> resolve_dynamic_values``)
229
230
- Replace needs data variant values (``process_need_nodes -> resolve_variants_options``)
@@ -232,15 +233,15 @@ The following is an outline of the build events which this extension adds to the
232
233
- Process constraints, for each ``Need`` node (``process_need_nodes -> process_constraints``)
233
234
- Perform all modifications on need data items, due to ``Needextend`` nodes (``process_need_nodes -> process_needextend``)
234
235
- Format each ``Need`` node to give the desired visual output (``process_need_nodes -> print_need_nodes``)
235
-
- Process all need specific nodes, replacing them with the desired visual output (``process_creator``)
236
-
- Remove ``Need`` nodes marked as ``hidden`` (``remove_hidden_needs``)
236
+
- Process all other need specific nodes, replacing them with the desired visual output (``process_creator``)
237
237
238
238
#. At the end of the build (``build-finished`` event)
239
239
240
-
- Call all user defined need data checks, a.k.a warnings (``process_warnings``)
241
-
- Write the ``needs.json`` to the output folder (``build_needs_json``)
242
-
- Write all required UML files to the output file (``build_needumls_pumls``)
243
-
- Print process timing, if enabled (``process_timing``)
240
+
- Call all user defined need data checks, a.k.a `needs_warnings` (``process_warnings``)
241
+
- Write the ``needs.json`` to the output folder, if `needs_build_json = True` (``build_needs_json``)
242
+
- Write the ``needs.json`` per ID to the output folder, if `needs_build_json_per_id = True` (``build_needs_id_json``)
243
+
- Write all UML files to the output folder, if `needs_build_needumls = True` (``build_needumls_pumls``)
244
+
- Print process timing, if `needs_debug_measurement = True` (``process_timing``)
0 commit comments