Browse Source

add links to generated docs pages

Thomas Buck 11 months ago
parent
commit
de8aec9453
2 changed files with 8 additions and 2 deletions
  1. 2
    0
      docs/generate_docs.sh
  2. 6
    2
      docs/src/main_board_pcb.md

+ 2
- 0
docs/generate_docs.sh View File

@@ -50,6 +50,8 @@ for f in `ls src/plot/dispensy_sch.svg/*.svg | sort -r`; do
50 50
     echo "</script>" >> src/inc_dispensy_sch.md
51 51
     echo "</div>" >> src/inc_dispensy_sch.md
52 52
     echo >> src/inc_dispensy_sch.md
53
+    echo "[Direct link to \`$name\`]($file)." >> src/inc_dispensy_sch.md
54
+    echo >> src/inc_dispensy_sch.md
53 55
 done
54 56
 
55 57
 echo "Preparing modelview dependencies"

+ 6
- 2
docs/src/main_board_pcb.md View File

@@ -16,13 +16,15 @@ You can also view the [Main-Board PCB layout as PDF](./plot/dispensy_pcb.pdf).
16 16
     </script>
17 17
 </div>
18 18
 
19
+[Direct link to this file](./plot/dispensy_pcb.svg).
20
+
19 21
 ## 3D PCB Model
20 22
 
21 23
 <p>Status: "<span id="3d_info">Preparing 3D model...</span>"</p>
22
-<div id="3d_viewer" style="width: 100%; height: 100%;" />
24
+<div id="3d_viewer" style="width: 100%; height: 100%;"></div>
23 25
 <script type="module">
24 26
     var view = document.getElementById('3d_viewer');
25
-    view.style.height = (view.clientWidth / 2) + "px";
27
+    view.style.height = (view.clientWidth * 0.707) + "px";
26 28
     var info = document.getElementById('3d_info');
27 29
     import * as View from './js/modelview.js';
28 30
     View.init(view, info);
@@ -48,3 +50,5 @@ You can also view the [Main-Board PCB layout as PDF](./plot/dispensy_pcb.pdf).
48 50
     xhttp.open("GET", file);
49 51
     xhttp.send();
50 52
 </script>
53
+
54
+[Direct link to this file](./plot/dispensy_pcb.3mf).

Loading…
Cancel
Save