Skip to content

Commit

Permalink
add ## section headers
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Sep 6, 2023
1 parent 65eec8c commit 36e8e3e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
nodes.append(node)

objects = []
cat = ''
for node in nodes:
input_list = []
for input in node.inputs:
Expand All @@ -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)
Expand Down
36 changes: 36 additions & 0 deletions docs/nodes/nodes_auto.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ title: Node Documentation
toc: true
toc-depth: 3
---
## Anim


### Anim Falloff Empty

![](videos/MN_anim_falloff_empty.mp4)
Expand All @@ -30,6 +33,9 @@ toc-depth: 3
| `To Max` | VALUE | | `1.0` |


## Animate


### Animate Field

![](videos/MN_animate_field.mp4)
Expand Down Expand Up @@ -103,6 +109,9 @@ toc-depth: 3
| `To Max` | VALUE | | `1.0` |


## Assembly


### Assembly Center

![](videos/MN_assembly_center.mp4)
Expand Down Expand Up @@ -135,6 +144,9 @@ toc-depth: 3
| `com_offset` | VECTOR | | `[0.0, 0.0, 0.0]` |


## Bonds


### Bonds Break

![](videos/MN_bonds_break.mp4)
Expand Down Expand Up @@ -165,6 +177,9 @@ toc-depth: 3
| `Bond Depth` | INT | | `3` |


## Color


### Color Atomic Number

![](videos/MN_color_atomic_number.mp4)
Expand Down Expand Up @@ -247,6 +262,9 @@ toc-depth: 3
| `Selection` | BOOLEAN | | `True` |


## Dna


### Dna Bases

![](videos/MN_dna_bases.mp4)
Expand Down Expand Up @@ -327,6 +345,9 @@ toc-depth: 3
| `Shade Smooth` | BOOLEAN | | `True` |


## Noise


### Noise Field

![](videos/MN_noise_field.mp4)
Expand Down Expand Up @@ -371,6 +392,9 @@ toc-depth: 3
| `Animate 0..1` | VALUE | | `0.5` |


## Prim


### Prim Atom

![](videos/MN_prim_atom.mp4)
Expand All @@ -389,6 +413,9 @@ toc-depth: 3
| `is_nucleic` | BOOLEAN | | `False` |


## Select


### Select Atomic Number

![](videos/MN_select_atomic_number.mp4)
Expand Down Expand Up @@ -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)
Expand All @@ -573,6 +603,9 @@ toc-depth: 3
|--------|--------|---------------|-----------|


## Style


### Style Atoms

![](videos/MN_style_atoms.mp4)
Expand Down Expand Up @@ -773,6 +806,9 @@ toc-depth: 3
| `Shade Smooth` | BOOLEAN | | `True` |


## Utils


### Utils Bio Assembly

![](videos/MN_utils_bio_assembly.mp4)
Expand Down

0 comments on commit 36e8e3e

Please sign in to comment.