Преглед на файлове

add links to generated docs pages

Thomas Buck преди 9 месеца
родител
ревизия
de8aec9453
променени са 2 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 2
    0
      docs/generate_docs.sh
  2. 6
    2
      docs/src/main_board_pcb.md

+ 2
- 0
docs/generate_docs.sh Целия файл

@@ -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 Целия файл

@@ -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…
Отказ
Запис