You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
formats = pdf slides.pdf html slides.html epub odt txt
1
12
all: build
2
13
3
-
qr:
4
-
docker run -v "$(PWD):/qr:z" -e QR_TEXT="$$(sed -n '4 p' docs/metadata.txt)" -e QR_FILE=docs/static/qr.png valien/docker-qr-generator
5
-
6
-
.PHONY: docs
7
-
docs: qr
8
-
mkdir -p out/docs
9
-
if [ -d"docs/static" ];then cp -r docs/static out/docs;fi
10
-
echo"<!DOCTYPE html><meta charset="utf-8"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><meta name=\"description\" content=\"$$(sed -n '2 p' docs/metadata.txt)\"><link rel=\"stylesheet\" href=\"https://unpkg.com/marx-css/css/marx.min.css\"><title>$$(sed -n '1 p' docs/metadata.txt)</title><main><h1>$$(sed -n '1 p' docs/metadata.txt)</h1><p>$$(sed -n '2 p' docs/metadata.txt)</p><hr><a href=\"$$(sed -n '4 p' docs/metadata.txt)\" target=\"_blank\">📃 View source (✍️ $$(sed -n '3 p' docs/metadata.txt))</a><br><a href=\"$$(sed -n '5 p' docs/metadata.txt)\" download=\"$$(sed -n '1 p' docs/metadata.txt).zip\">📥 Download all as ZIP</a><hr><div>You may do the following:</div><ul>">"out/docs/index.html"
echo"<li><a href=\"$${document#docs/}.html\" target=\"_blank\">🌐 View $${document#docs/} in your browser</a> (also available as <a href=\"$${document#docs/}.slides.html\" target=\"_blank\">slides</a>) or <a href=\"$${document#docs/}.pdf\" target=\"_blank\">📜 open $${document#docs/} as PDF</a> (also available as <a href=\"$${document#docs/}.slides.pdf\" target=\"_blank\">slides</a>)">>"out/docs/index.html";\
15
-
done
16
-
echo"</ul><div><strong><em>$$(sed -n '6 p' docs/metadata.txt)</em></strong></div></main>">>"out/docs/index.html"
In addition to the code example in this repo, you can also [view and download the notes from GitHub pages](https://pojntfx.github.io/uni-algodat-notes/). They can also be downloaded as a Zip archive from [GitHub releases](https://github.com/pojntfx/uni-algodat-notes/releases).
9
+
You can [view the notes on GitHub pages](https://pojntfx.github.io/uni-algodat-notes/), [download them from GitHub releases](https://github.com/pojntfx/uni-algodat-notes/releases/latest) or [check out the source on GitHub](https://github.com/pojntfx/uni-algodat-notes). There are also quite a few code examples in this repo.
10
+
11
+
## Contributing
12
+
13
+
To contribute, please use the [GitHub flow](https://guides.github.com/introduction/flow/) and follow our [Code of Conduct](./CODE_OF_CONDUCT.md).
14
+
15
+
To build and open a note locally, run the following:
0 commit comments