Fix doc generation workflow (#1)
Co-authored-by: an.tsouchlos <an.tsouchlos@users.noreply.github.com> Reviewed-on: #1 Co-authored-by: Andreas Tsouchlos <an.tsouchlos@gmail.com> Co-committed-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
This commit is contained in:
parent
1ad511c7fb
commit
2ad0800099
7
.gitattributes
vendored
Normal file
7
.gitattributes
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
*.csv filter=bom_csv
|
||||||
|
*.html filter=bom_html
|
||||||
|
*.gbr filter=gerber
|
||||||
|
*.gbrjob filter=gbrjob
|
||||||
|
*.xml filter=xml
|
||||||
|
*.kicad_pcb filter=kicad_pcb_f
|
||||||
|
*.net filter=net_filter
|
||||||
20
.gitconfig
Normal file
20
.gitconfig
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[filter "bom_csv"]
|
||||||
|
clean = sed -E 's/^BoM Date:.*$/BoM Date:Date/'
|
||||||
|
smudge = sed -E \"s/BoM Date:Date/BoM Date:,`date +\\\"%a %d %b %Y %X %:::z\\\"`/\"
|
||||||
|
[filter "bom_html"]
|
||||||
|
clean = sed -E 's/^<tr><td>BoM Date<\\/td><td>.*$/<tr><td>BoM Date<\\/td><td>Date<\\/td><\\/tr>/'
|
||||||
|
smudge = sed -E \"s/<tr><td>BoM Date<\\/td><td>Date<\\/td><\\/tr>/<tr><td>BoM Date<\\/td><td>`date +\\\"%a %d %b %Y %X %:::z\\\"`<\\/td><\\/tr>/\"
|
||||||
|
[filter "gerber"]
|
||||||
|
clean = sed -E -e 's/^%TF.CreationDate,.*$/%TF.CreationDate,Date%/' -e 's/^G04 Created by KiCad.*$/G04 Created by KiCad*/'
|
||||||
|
smudge = sed -E \"s/%TF.CreationDate,Date%/%TF.CreationDate,`date +%Y-%m-%dT%H:%M:%S%:z`/\"
|
||||||
|
[filter "gbrjob"]
|
||||||
|
clean = sed -E 's/\"CreationDate\":.*/\"CreationDate\": \"Date\"/'
|
||||||
|
smudge = sed -E \"s/\\\"CreationDate\\\": \\\"Date\\\"/\\\"CreationDate\\\": \\\"`date +%Y-%m-%dT%H:%M:%S%:z`\\\"/\"
|
||||||
|
[filter "xml"]
|
||||||
|
clean = sed -E -e 's/^ <date>.*<\\/date>/ <date>Date2<\\/date>/' -e 's/^ <date>.*<\\/date>/ <date>Date1<\\/date>/'
|
||||||
|
smudge = sed -E -e \"s/<date>Date1<\\/date>/<date>`date +\\\"%a %d %b %Y %X %:::z\\\"`<\\/date>/\" -e \"s/<date>Date2<\\/date>/<date>`date +\\\"%Y-%m-%d\\\"`<\\/date>/\"
|
||||||
|
[filter "kicad_pcb_f"]
|
||||||
|
clean = sed -E 's/\\(host pcbnew ([[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+).*/\\(host pcbnew \\1\\)/'
|
||||||
|
[filter "net_filter"]
|
||||||
|
clean = sed -E -e 's/\\(date \\\".*\\\"\\)/\\(date \\\"Date\\\"\\)/'
|
||||||
|
smudge = sed -E -e \"s/\\(date \\\"Date\\\"\\)/\\(date \\\"`date +\\\"%a %d %b %Y %X %:::z\\\"`\\\"\\)/\"
|
||||||
@ -2,9 +2,10 @@ name: docs-generation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
# paths:
|
paths:
|
||||||
# - '**.sch'
|
- '**.kicad_sch'
|
||||||
# - '**.kicad_pcb'
|
- '**.kicad_pcb'
|
||||||
|
- '**.kicad_pro'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs-generation:
|
docs-generation:
|
||||||
|
|||||||
15
README.md
15
README.md
@ -1,10 +1,19 @@
|
|||||||
# HyperLink
|
# HyperLink
|
||||||
|
|
||||||
A PCB for gathering data sent out by CommonSense boards over bluetooth and retransmitting it over wifi
|
A PCB for gathering data sent out by CommonSense boards over bluetooth and
|
||||||
|
retransmitting over wifi.
|
||||||
|
|
||||||
## Downloading libraries
|
After cloning, the libraries can be downloaded using
|
||||||
|
|
||||||
After cloning, the libraries have to be downloaded using
|
|
||||||
```bash
|
```bash
|
||||||
$ git submodule update --init
|
$ git submodule update --init
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## PCB
|
||||||
|
|
||||||
|
<img width=400 src="./doc/generated/HyperLink-top.svg" />
|
||||||
|
<img width=400 src="./doc/generated/HyperLink-bottom.svg" />
|
||||||
|
|
||||||
|
## Schematic
|
||||||
|
|
||||||
|
<img src="./doc/generated/HyperLink-schematic.svg" />
|
||||||
|
|||||||
BIN
doc/generated/HyperLink-bottom.png
Normal file
BIN
doc/generated/HyperLink-bottom.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
1455
doc/generated/HyperLink-bottom.svg
Normal file
1455
doc/generated/HyperLink-bottom.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 166 KiB |
BIN
doc/generated/HyperLink-schematic.pdf
Normal file
BIN
doc/generated/HyperLink-schematic.pdf
Normal file
Binary file not shown.
56507
doc/generated/HyperLink-schematic.svg
Normal file
56507
doc/generated/HyperLink-schematic.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 1.0 MiB |
BIN
doc/generated/HyperLink-top.png
Normal file
BIN
doc/generated/HyperLink-top.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 125 KiB |
2776
doc/generated/HyperLink-top.svg
Normal file
2776
doc/generated/HyperLink-top.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 434 KiB |
Loading…
Reference in New Issue
Block a user