Skip to content

Commit d972003

Browse files
committed
Render assembly tutorials inside Sphinx manual
1 parent 0d1901c commit d972003

15 files changed

Lines changed: 83 additions & 28 deletions

File tree

‎.github/workflows/deploy-site.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31+
submodules: recursive
3132

3233
- name: Set up Node
3334
uses: actions/setup-node@v4

‎.gitmodules‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "docs/source/build/assembly-tutorials"]
2+
path = docs/source/build/assembly-tutorials
3+
url = https://github.com/Open-BeatBox/assembly-tutorials.git
4+
branch = main

‎README.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ The goal of this repository is to make the project reproducible from a single en
1010
| --- | --- |
1111
| Project website | <https://open-beatbox.github.io/> |
1212
| Technical documentation | <https://open-beatbox.github.io/docs/manual/> |
13-
| Modular assembly tutorials | <https://github.com/Open-BeatBox/assembly-tutorials/blob/main/tutorials_index.md> |
13+
| Modular assembly tutorials | <https://open-beatbox.github.io/docs/manual/build/assembly-tutorials/tutorials_index.html> |
14+
| Assembly tutorial sources | <https://github.com/Open-BeatBox/assembly-tutorials> |
1415
| Master BOM (CSV / XLSX) | <https://github.com/Open-BeatBox/assembly-tutorials#bill-of-materials> |
1516
| Interactive assembly guide | <https://open-beatbox.github.io/docs/beatbox-assembly-sop.html> |
1617
| GitHub resources directory | [`resources/`](./resources) |
@@ -59,7 +60,7 @@ Open-BeatBox.github.io/
5960

6061
## Documentation policy
6162

62-
The **Sphinx manual** in [`docs/source/`](./docs/source) is the public technical entry point. Module-level assembly instructions and the Master BOM are maintained in the separate [`assembly-tutorials`](https://github.com/Open-BeatBox/assembly-tutorials) repository and are linked from the manual. Keeping one editable copy avoids the website and tutorial sources drifting apart.
63+
The **Sphinx manual** in [`docs/source/`](./docs/source) is the public technical entry point. Module-level assembly instructions and the Master BOM are maintained in the separate [`assembly-tutorials`](https://github.com/Open-BeatBox/assembly-tutorials) repository, pinned as a Git submodule, and rendered directly inside the manual. Keeping one editable upstream copy avoids the website and tutorial sources drifting apart.
6364

6465
Public manual URL:
6566

@@ -108,6 +109,21 @@ cd site
108109
npm install
109110
```
110111

112+
If the repository was cloned without submodules, initialize the assembly tutorials before building the documentation:
113+
114+
```bash
115+
git submodule update --init --recursive
116+
```
117+
118+
To review a newer tutorial revision before publishing it in the manual:
119+
120+
```bash
121+
git submodule update --remote docs/source/build/assembly-tutorials
122+
git diff --submodule
123+
```
124+
125+
Commit the updated submodule pointer only after the tutorials and BOM have been reviewed.
126+
111127
Run the website locally:
112128

113129
```bash
Submodule assembly-tutorials added at 4b51bb1

‎docs/source/build/assembly.md‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ The current module documents are marked `0.1-draft` and have not yet been assign
1111

1212
| Module | Scope | Guide |
1313
| --- | --- | --- |
14-
| Frame and enclosure (`MOD-FRM`) | Base, pillars, walls, door, top panel, and module installation | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-frm-assembly.md) |
14+
| Frame and enclosure (`MOD-FRM`) | Base, pillars, walls, door, top panel, and module installation | {doc}`Open guide <assembly-tutorials/modules/mod-frm-assembly>` |
1515

1616
## Sub-modules
1717

1818
| Module | Scope | Guide |
1919
| --- | --- | --- |
20-
| Water bottle mount (`MOD-BMT`) | Bracket preparation and enclosure mounting | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-bmt-assembly.md) |
21-
| Feeder (`MOD-FDR`) | Housing, motor, rotor, PCBs, and cabling | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-fdr-aseembly.md) |
22-
| Light ring (`MOD-LGT`) | Housing, PCB, cap, and diffuser | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-lgt.md) |
23-
| Photobeam gate (`MOD-PBG`) | Passage, IR boards, controller, cabling, and covers | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-pbg-assembly.md) |
24-
| Screen (`MOD-SCR`) | Touchscreen, controller PCB, IR boards, cabling, and housing | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-scr-assembly.md) |
20+
| Water bottle mount (`MOD-BMT`) | Bracket preparation and enclosure mounting | {doc}`Open guide <assembly-tutorials/modules/mod-bmt-assembly>` |
21+
| Feeder (`MOD-FDR`) | Housing, motor, rotor, PCBs, and cabling | {doc}`Open guide <assembly-tutorials/modules/mod-fdr-aseembly>` |
22+
| Light ring (`MOD-LGT`) | Housing, PCB, cap, and diffuser | {doc}`Open guide <assembly-tutorials/modules/mod-lgt>` |
23+
| Photobeam gate (`MOD-PBG`) | Passage, IR boards, controller, cabling, and covers | {doc}`Open guide <assembly-tutorials/modules/mod-pbg-assembly>` |
24+
| Screen (`MOD-SCR`) | Touchscreen, controller PCB, IR boards, cabling, and housing | {doc}`Open guide <assembly-tutorials/modules/mod-scr-assembly>` |
2525

2626
## Recommended workflow
2727

@@ -36,3 +36,17 @@ The current module documents are marked `0.1-draft` and have not yet been assign
3636
## Reporting corrections
3737

3838
Report a tutorial or BOM discrepancy in the [assembly-tutorials issue tracker](https://github.com/Open-BeatBox/assembly-tutorials/issues). Include the item ID, module ID, hardware revision, tutorial section, and a photograph where useful.
39+
40+
```{toctree}
41+
:hidden:
42+
:maxdepth: 1
43+
44+
assembly-tutorials/tutorials_index
45+
assembly-tutorials/conventions
46+
assembly-tutorials/modules/mod-frm-assembly
47+
assembly-tutorials/modules/mod-bmt-assembly
48+
assembly-tutorials/modules/mod-fdr-aseembly
49+
assembly-tutorials/modules/mod-lgt
50+
assembly-tutorials/modules/mod-pbg-assembly
51+
assembly-tutorials/modules/mod-scr-assembly
52+
```

‎docs/source/build/bom.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The latest Master BOM is maintained alongside the modular assembly tutorials. It
44

55
## Download
66

7-
- [BOM.xlsx — editable working file](https://github.com/Open-BeatBox/assembly-tutorials/raw/main/BOM.xlsx)
8-
- [BOM.csv — portable version](https://github.com/Open-BeatBox/assembly-tutorials/raw/main/BOM.csv)
7+
- {download}`BOM.xlsx — editable working file <assembly-tutorials/BOM.xlsx>`
8+
- {download}`BOM.csv — portable version <assembly-tutorials/BOM.csv>`
99
- [Preview the CSV on GitHub](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/BOM.csv)
1010
- [Identifier conventions](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/conventions.md)
1111

@@ -25,4 +25,4 @@ The current BOM still contains fields marked with questions, placeholder paths o
2525
- Required and optional items are clearly separated.
2626
- The CSV and XLSX contain equivalent data.
2727

28-
Corrections belong in the [assembly-tutorials repository](https://github.com/Open-BeatBox/assembly-tutorials) so the public website never becomes a competing copy of the BOM.
28+
Corrections belong in the [assembly-tutorials repository](https://github.com/Open-BeatBox/assembly-tutorials). The manual displays the pinned submodule revision and therefore remains traceable to the exact tutorial and BOM source used for the build.

‎docs/source/build/index.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ Use the standalone checklist during hands-on assembly:
2929

3030
## Versioned sources
3131

32-
- [Tutorial index](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/tutorials_index.md)
33-
- [Master BOM downloads](https://github.com/Open-BeatBox/assembly-tutorials#bill-of-materials)
34-
- [Part-ID and media conventions](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/conventions.md)
32+
- {doc}`Tutorial index <assembly-tutorials/tutorials_index>`
33+
- {download}`Master BOM (XLSX) <assembly-tutorials/BOM.xlsx>`
34+
- {download}`Master BOM (CSV) <assembly-tutorials/BOM.csv>`
35+
- {doc}`Part-ID and media conventions <assembly-tutorials/conventions>`
3536

36-
The `assembly-tutorials` repository owns the editable module guides and BOM. This manual provides the stable public route to them; it does not maintain a second copy.
37+
The `assembly-tutorials` repository owns the editable module guides and BOM. It is included here as a pinned Git submodule, so the manual renders the reviewed source revision directly instead of maintaining a second editable copy.

‎docs/source/build/video-tutorials.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ The source videos are currently in the team's OneDrive handoff folder. Public UR
88

99
| Tutorial | Written guide | Public video |
1010
| --- | --- | --- |
11-
| Frame and enclosure | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-frm-assembly.md) | Pending |
12-
| Water bottle mount | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-bmt-assembly.md) | Pending |
13-
| Feeder module | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-fdr-aseembly.md) | Pending |
14-
| Light ring | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-lgt.md) | Pending |
15-
| Photobeam gate | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-pbg-assembly.md) | Pending |
16-
| Screen module | [Open guide](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/modules/mod-scr-assembly.md) | Pending |
11+
| Frame and enclosure | {doc}`Open guide <assembly-tutorials/modules/mod-frm-assembly>` | Pending |
12+
| Water bottle mount | {doc}`Open guide <assembly-tutorials/modules/mod-bmt-assembly>` | Pending |
13+
| Feeder module | {doc}`Open guide <assembly-tutorials/modules/mod-fdr-aseembly>` | Pending |
14+
| Light ring | {doc}`Open guide <assembly-tutorials/modules/mod-lgt>` | Pending |
15+
| Photobeam gate | {doc}`Open guide <assembly-tutorials/modules/mod-pbg-assembly>` | Pending |
16+
| Screen module | {doc}`Open guide <assembly-tutorials/modules/mod-scr-assembly>` | Pending |
1717

1818
## Publication requirements
1919

‎docs/source/conf.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
]
1414

1515
templates_path = ["_templates"]
16-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
16+
exclude_patterns = [
17+
"_build",
18+
"Thumbs.db",
19+
".DS_Store",
20+
"build/assembly-tutorials/README.md",
21+
"build/assembly-tutorials/modules/README.md",
22+
]
1723

1824
source_suffix = {
1925
".rst": "restructuredtext",

‎docs/source/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ contributing
4343

4444
## Quick links
4545

46-
- [Modular assembly tutorials](https://github.com/Open-BeatBox/assembly-tutorials/blob/main/tutorials_index.md)
46+
- {doc}`Modular assembly tutorials <build/assembly-tutorials/tutorials_index>`
4747
- [Master BOM (CSV and XLSX)](https://github.com/Open-BeatBox/assembly-tutorials#bill-of-materials)
4848
- <a href="../beatbox-assembly-sop.html">Interactive assembly SOP</a>
4949
- [Open-source resources](https://github.com/Open-BeatBox/Open-BeatBox.github.io/tree/main/resources)

0 commit comments

Comments
 (0)