aboutsummaryrefslogtreecommitdiff
path: root/docs/gen
diff options
context:
space:
mode:
authorNielsCoding <n.stunnebrink@student.avans.nl>2022-11-19 18:49:05 +0100
committerNielsCoding <n.stunnebrink@student.avans.nl>2022-11-19 18:49:05 +0100
commite8ed815597c29e4206a6bae120575e2963c80837 (patch)
tree85517752e8cc580c1f1e0095934ef24ebaa64ed3 /docs/gen
parentd51b56c2803cc755cd099a8f2cfef7acdcb30cfa (diff)
parent27ef32dd82d69d2c8cdcae96cab713696399a281 (diff)
Merge branch 'master' of https://github.com/lonkaars/avans-domotica
Diffstat (limited to 'docs/gen')
-rw-r--r--docs/gen/doc.m444
-rw-r--r--docs/gen/end.html2
-rw-r--r--docs/gen/start.m48
-rw-r--r--docs/gen/style.css55
4 files changed, 86 insertions, 23 deletions
diff --git a/docs/gen/doc.m4 b/docs/gen/doc.m4
new file mode 100644
index 0000000..ec4c858
--- /dev/null
+++ b/docs/gen/doc.m4
@@ -0,0 +1,44 @@
+define(`docname',
+ ifelse(NAME, `pva', `Plan van aanpak',
+ NAME, `pve', `Pakket van eisen',
+ `UNKNOWN???'))dnl
+
+<!DOCTYPE html>
+<html lang="en-US">
+<link>
+ <meta charset="utf-8">
+ <style>undivert(`gen/style.css')</style>
+ <script>undivert(`gen/paged.polyfill.js')</script>
+ `<script defer>
+ window.onload = function() {
+ document.querySelectorAll("nav li").forEach(item => {
+ var heading = "";
+ var parent = item;
+ for (parent = item; parent.nodeName != "NAV"; parent = parent.parentNode) {
+ if (parent.nodeName != "LI") continue;
+ heading = parent.getAttribute("data-item-num") + "." + heading;
+ }
+
+ item.setAttribute("heading-num-fix", heading.substr(0, heading.length - 1));
+ });
+ }
+ </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>
+</html>
diff --git a/docs/gen/end.html b/docs/gen/end.html
deleted file mode 100644
index 308b1d0..0000000
--- a/docs/gen/end.html
+++ /dev/null
@@ -1,2 +0,0 @@
-</body>
-</html>
diff --git a/docs/gen/start.m4 b/docs/gen/start.m4
deleted file mode 100644
index f714588..0000000
--- a/docs/gen/start.m4
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html>
-<link>
- <meta charset='utf-8'>
- <style>include(`style.css')</style>
- <script defer src="./gen/paged.polyfill.js"></script>
-</head>
-<body>
diff --git a/docs/gen/style.css b/docs/gen/style.css
index 601cbc6..7474846 100644
--- a/docs/gen/style.css
+++ b/docs/gen/style.css
@@ -7,6 +7,7 @@
content: counter(page);
}
}
+
html, body {
width: 100%;
margin: 0;
@@ -17,6 +18,12 @@
font-size: 11pt;
}
+ a {
+ text-decoration: none;
+ color: unset;
+ font-style: italic;
+ }
+
pre, code {
font-family: "JetBrainsMono Nerd Font";
font-size: 9pt;
@@ -29,6 +36,7 @@
figcaption, p {
text-align: justify;
text-justify: auto;
+ hyphens: auto;
}
table {
@@ -46,19 +54,40 @@
border-bottom: 1pt solid black;
}
- .docintro p {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin: 0;
- }
+ .docintro {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ margin: 0;
+ }
+
+ .docintro .left,
+ .docintro .right {
+ display: block;
+ }
- .docintro .left,
- .docintro .right {
- display: block;
- }
+ .docintro .right {
+ text-align: right;
+ }
- .docintro .right {
- text-align: right;
- }
+ .pagebr {
+ break-before: page;
+ }
+
+ nav ol {
+ counter-reset: item;
+ list-style-type: none;
+ }
+
+ nav li {
+ position: relative;
+ counter-increment: item;
+ }
+
+ nav li::before {
+ position: absolute;
+ transform: translateX(-100%) translateX(-5pt);
+ left: 0;
+ content: attr(heading-num-fix);
+ }
}