diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-11-19 12:53:13 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-11-19 12:53:13 +0100 |
commit | e52d0d34a3e30bfda68b3e3deb383c7e47ffe682 (patch) | |
tree | 3cb81de2efde0eb470136e4cbd464abf52748719 | |
parent | 0db6d0616bd4a9730b68e22f29fc76232981cc88 (diff) |
more better document generation
-rw-r--r-- | docs/gen/doc.m4 | 20 | ||||
-rw-r--r-- | docs/gen/style.css | 8 | ||||
-rw-r--r-- | docs/pva.md | 12 | ||||
-rw-r--r-- | docs/pve.md | 13 |
4 files changed, 24 insertions, 29 deletions
diff --git a/docs/gen/doc.m4 b/docs/gen/doc.m4 index 3ad8009..fe1c408 100644 --- a/docs/gen/doc.m4 +++ b/docs/gen/doc.m4 @@ -1,11 +1,29 @@ +define(`docname', + ifelse(NAME, `pva', `Plan van aanpak', + NAME, `pve', `Pakket van eisen', + `UNKNOWN???'))dnl + <!DOCTYPE html> <html> <link> - <meta charset='utf-8'> + <meta charset="utf-8"> <style>undivert(`gen/style.css')</style> <script>undivert(`gen/paged.polyfill.js')</script> </head> <body> + <div class="docintro"> + <span class="left"> + docname()<br/> + Project Domotica<br/> + esyscmd(`LANG="en_US.utf8" date "+%B %d, %Y"') + </span> + <span class="right"> + Joshua Regnier <b>(2183008)</b><br/> + Loek Le Blansch <b>(2180996)</b><br/> + Niels Stunnebrink <b>(2184532)</b> + </span> + </div> + <h1>Table of contents</h1> undivert(NAME`.toc') undivert(NAME`.con') </body> diff --git a/docs/gen/style.css b/docs/gen/style.css index fe107da..ac5c18a 100644 --- a/docs/gen/style.css +++ b/docs/gen/style.css @@ -46,7 +46,7 @@ border-bottom: 1pt solid black; } - .docintro p { + .docintro { display: flex; flex-direction: row; justify-content: space-between; @@ -66,16 +66,16 @@ break-before: page; } - ol { + #TOC ol { counter-reset: item; } - li { + #TOC li { display: block; position: relative; } - li::before { + #TOC li::before { position: absolute; left: 0; content: counters(item, ".") " "; diff --git a/docs/pva.md b/docs/pva.md index c089e37..3524c5e 100644 --- a/docs/pva.md +++ b/docs/pva.md @@ -1,17 +1,5 @@ [Trello]: https://trello.com/b/LSiYzM8C/casadomotica -<div class="docintro"> - <span class="left"> - Plan van aanpak<br/> - Project Domotica - </span> - <span class="right"> - Joshua Regnier <b>(2183008)</b><br/> - Loek Le Blansch <b>(2180996)</b><br/> - Niels Stunnebrink <b>(2184532)</b> - </span> -</div> - # Backgrounds ## Project diff --git a/docs/pve.md b/docs/pve.md index 7d41b99..48daca4 100644 --- a/docs/pve.md +++ b/docs/pve.md @@ -1,16 +1,5 @@ -<div class="docintro"> - <span class="left"> - Pakket van eisen<br/> - Project Domotica - </span> - <span class="right"> - Joshua Regnier <b>(2183008)</b><br/> - Loek Le Blansch <b>(2180996)</b><br/> - Niels Stunnebrink <b>(2184532)</b> - </span> -</div> - # Introduction + node = one node that contains both a button and a LED SE = self explanatory |