feat(datasheet): use mustache for hugo_template

This commit is contained in:
htfab
2024-05-07 08:47:00 +03:00
committed by Uri Shaked
parent ce9f174c87
commit 6ac178db11
4 changed files with 64 additions and 51 deletions
@@ -1,10 +1,10 @@
---
title: "{shuttle_name}"
title: "{{shuttle_name}}"
weight: 50
description: {project_count} designs, closed {end_date}
description: {{project_count}} designs, closed {{end_date}}
---
{{{{% toc %}}}}
{{#hugo}}% toc %{{/hugo}}
# Design details
@@ -22,5 +22,5 @@ description: {project_count} designs, closed {end_date}
# Chip map
{{{{< shuttle-map "{shuttle_id}" >}}}}
{{#hugo}}< shuttle-map "{shuttle_id}" >{{/hugo}}
-34
View File
@@ -1,34 +0,0 @@
---
hidden: true
title: "{mux_address} {title}"
weight: {weight}
---
## {mux_address} : {title}
* Author: {author}
* Description: {description}
* [GitHub repository]({git_url})
* [GDS submitted]({git_action})
* {project_type} project
* [Extra docs]({doc_link})
* Clock: {clock_hz} Hz
{user_docs}
### IO
| # | Input | Output | Bidirectional |
| - | -------------- | -------------- | --------------- |
| 0 | {pinout.ui[0]} | {pinout.uo[0]} | {pinout.uio[0]} |
| 1 | {pinout.ui[1]} | {pinout.uo[1]} | {pinout.uio[1]} |
| 2 | {pinout.ui[2]} | {pinout.uo[2]} | {pinout.uio[2]} |
| 3 | {pinout.ui[3]} | {pinout.uo[3]} | {pinout.uio[3]} |
| 4 | {pinout.ui[4]} | {pinout.uo[4]} | {pinout.uio[4]} |
| 5 | {pinout.ui[5]} | {pinout.uo[5]} | {pinout.uio[5]} |
| 6 | {pinout.ui[6]} | {pinout.uo[6]} | {pinout.uio[6]} |
| 7 | {pinout.ui[7]} | {pinout.uo[7]} | {pinout.uio[7]} |
### Chip location
{{{{< shuttle-map "{shuttle_id}" "{mux_address}" >}}}}
+29
View File
@@ -0,0 +1,29 @@
---
hidden: true
title: "{{mux_address}} {{title}}"
weight: {{weight}}
---
## {{mux_address}} : {{title}}
* Author: {{author}}
* Description: {{&description}}
* [GitHub repository]({{git_url}})
* [GDS submitted]({{git_action}})
* {{project_type}} project
* [Extra docs]({{doc_link}})
* Clock: {{clock_hz}} Hz
{{&user_docs}}
### IO
| # | Input | Output | Bidirectional |
| ------------- | -------- | -------- | --------------- |
{{#pins}}
| {{pin_index}} | {{&ui}} | {{&uo}} | {{&uio[0]}} |
{{/pins}}
### Chip location
{{#hugo}}< shuttle-map "{{shuttle_id}}" "{{mux_address}}" >{{/hugo}}