diff --git a/docs/docs.py b/docs/docs.py index 2d37cb57..96963425 100644 --- a/docs/docs.py +++ b/docs/docs.py @@ -16,6 +16,7 @@ nodes.append(node) objects = [] +cat = '' for node in nodes: input_list = [] for input in node.inputs: @@ -35,7 +36,13 @@ description = input.description ) ) + title = node.name.replace('MN_', '').replace('_', ' ').title() + if title.split()[0] != cat: + cat = title.split()[0] + objects.append( + [griffe.docstrings.dataclasses.DocstringSectionText(title = None, value = f"## {cat}")] + ) title = griffe.docstrings.dataclasses.DocstringSectionText(title = None, value = f"### {title}") video = griffe.docstrings.dataclasses.DocstringSectionText(title = None, value = f"![](videos/{node.name}.mp4)") inputs = griffe.docstrings.dataclasses.DocstringSectionParameters(input_list) diff --git a/docs/nodes/nodes_auto.qmd b/docs/nodes/nodes_auto.qmd index 08c172a5..edaceb21 100644 --- a/docs/nodes/nodes_auto.qmd +++ b/docs/nodes/nodes_auto.qmd @@ -4,6 +4,9 @@ title: Node Documentation toc: true toc-depth: 3 --- +## Anim + + ### Anim Falloff Empty ![](videos/MN_anim_falloff_empty.mp4) @@ -30,6 +33,9 @@ toc-depth: 3 | `To Max` | VALUE | | `1.0` | +## Animate + + ### Animate Field ![](videos/MN_animate_field.mp4) @@ -103,6 +109,9 @@ toc-depth: 3 | `To Max` | VALUE | | `1.0` | +## Assembly + + ### Assembly Center ![](videos/MN_assembly_center.mp4) @@ -135,6 +144,9 @@ toc-depth: 3 | `com_offset` | VECTOR | | `[0.0, 0.0, 0.0]` | +## Bonds + + ### Bonds Break ![](videos/MN_bonds_break.mp4) @@ -165,6 +177,9 @@ toc-depth: 3 | `Bond Depth` | INT | | `3` | +## Color + + ### Color Atomic Number ![](videos/MN_color_atomic_number.mp4) @@ -247,6 +262,9 @@ toc-depth: 3 | `Selection` | BOOLEAN | | `True` | +## Dna + + ### Dna Bases ![](videos/MN_dna_bases.mp4) @@ -327,6 +345,9 @@ toc-depth: 3 | `Shade Smooth` | BOOLEAN | | `True` | +## Noise + + ### Noise Field ![](videos/MN_noise_field.mp4) @@ -371,6 +392,9 @@ toc-depth: 3 | `Animate 0..1` | VALUE | | `0.5` | +## Prim + + ### Prim Atom ![](videos/MN_prim_atom.mp4) @@ -389,6 +413,9 @@ toc-depth: 3 | `is_nucleic` | BOOLEAN | | `False` | +## Select + + ### Select Atomic Number ![](videos/MN_select_atomic_number.mp4) @@ -565,6 +592,9 @@ toc-depth: 3 | `Selection` | BOOLEAN | Expands given selection to include the entire residue. | `False` | +## Separate + + ### Separate Polymers ![](videos/MN_separate_polymers.mp4) @@ -573,6 +603,9 @@ toc-depth: 3 |--------|--------|---------------|-----------| +## Style + + ### Style Atoms ![](videos/MN_style_atoms.mp4) @@ -773,6 +806,9 @@ toc-depth: 3 | `Shade Smooth` | BOOLEAN | | `True` | +## Utils + + ### Utils Bio Assembly ![](videos/MN_utils_bio_assembly.mp4)