Skip to content

Commit

Permalink
docs: add PDF autogen
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Feb 20, 2024
1 parent d5ba374 commit 2cb3a0b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/_build
/_gen
6 changes: 3 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ all:
autobuild:
sphinx-autobuild . _build/html

static:
kicad-cli sch export pdf ../hardware/v2/main.kicad_sch -t Dark -o _static/v2_schematic.pdf
kicad-cli pcb export pdf ../hardware/v2/main.kicad_pcb -l "F.Cu,B.Cu,F.Mask,B.Mask,F.SilkS,B.SilkS,Edge.Cuts" -t Dark --ibt -o _static/v2_pcb.pdf
gen:
kicad-cli sch export pdf ../hardware/v2/main.kicad_sch -t Dark -o _gen/v2_schematic.pdf
kicad-cli pcb export pdf ../hardware/v2/main.kicad_pcb -l "F.Cu,B.Cu,F.Mask,B.Mask,F.SilkS,B.SilkS,Edge.Cuts" -t Dark --ibt -o _gen/v2_pcb.pdf
Empty file added docs/_gen/.keep
Empty file.
Empty file added docs/_static/.keep
Empty file.
11 changes: 8 additions & 3 deletions docs/hardware/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Апаратна частина
================
Технічні дані
=============

.. toctree::
:maxdepth: 2
:caption: Зміст

schematics_v2
----------------
Креслення (V2)
----------------

- Схема (v2): :download:`PDF <../_gen/v2_schematic.pdf>`
- Креслення PCB (v2): :download:`PDF <../_gen/v2_pcb.pdf>`
2 changes: 0 additions & 2 deletions docs/hardware/schematics_v2.rst

This file was deleted.

0 comments on commit 2cb3a0b

Please sign in to comment.