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
     echo "</script>" >> src/inc_dispensy_sch.md
50
     echo "</script>" >> src/inc_dispensy_sch.md
51
     echo "</div>" >> src/inc_dispensy_sch.md
51
     echo "</div>" >> src/inc_dispensy_sch.md
52
     echo >> src/inc_dispensy_sch.md
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
 done
55
 done
54
 
56
 
55
 echo "Preparing modelview dependencies"
57
 echo "Preparing modelview dependencies"

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

16
     </script>
16
     </script>
17
 </div>
17
 </div>
18
 
18
 
19
+[Direct link to this file](./plot/dispensy_pcb.svg).
20
+
19
 ## 3D PCB Model
21
 ## 3D PCB Model
20
 
22
 
21
 <p>Status: "<span id="3d_info">Preparing 3D model...</span>"</p>
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
 <script type="module">
25
 <script type="module">
24
     var view = document.getElementById('3d_viewer');
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
     var info = document.getElementById('3d_info');
28
     var info = document.getElementById('3d_info');
27
     import * as View from './js/modelview.js';
29
     import * as View from './js/modelview.js';
28
     View.init(view, info);
30
     View.init(view, info);
48
     xhttp.open("GET", file);
50
     xhttp.open("GET", file);
49
     xhttp.send();
51
     xhttp.send();
50
 </script>
52
 </script>
53
+
54
+[Direct link to this file](./plot/dispensy_pcb.3mf).

Loading…
Cancel
Save