diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ac9fb0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.venv +out +node_modules +__pycache__/ + +package-lock.json +package.json + +cheatsheet_inventory.json \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0e0dcd2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..ca8a0f3 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + "tasks": [ + { + "label": "Run build Script", + "type": "shell", + "command": "${workspaceFolder}/.venv/bin/python", + "args": ["src/build.py"], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Watch Styles", + "type": "shell", + "command": "sass", + "args": ["--watch", "styles:static/css"], + "isBackground": true, + "problemMatcher": { + "pattern": { + "regexp": "^.*$", + "file": 1, + "location": 2, + "message": 3 + }, + "background": { + "activeOnStart": true, + "beginsPattern": "^.*Watching.*$", + "endsPattern": "^.*Watching.*$" + } + } + }, + { + "label": "Run debug server", + "type": "shell", + "command": "${workspaceFolder}/.venv/bin/python", + "args": ["src/debug_server.py"], + "group": { + "kind": "build", + "isDefault": true + } + } + + ] +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..faf1d83 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.11 AS build + +WORKDIR /workdir +COPY . . + +RUN pip install --no-cache-dir -r ./requirements.txt +RUN python3 src/build.py + +FROM caddy:latest AS serve + +COPY --from=build /workdir/out/ /www/ +COPY --from=build /workdir/Caddyfile /etc/caddy/Caddyfile + diff --git a/FSSquared b/FSSquared new file mode 160000 index 0000000..09a4a01 --- /dev/null +++ b/FSSquared @@ -0,0 +1 @@ +Subproject commit 09a4a0172993a1639f7f36163b7bf4ec4260e000 diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..fe16af3 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,7 @@ + +Copyright 2026 Alexander +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..172cd75 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ + +services: + server_html: + build: . + ports: + - "8000:8000" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0b56b46 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,20 @@ +annotated-types==0.7.0 +blinker==1.9.0 +certifi==2026.1.4 +charset-normalizer==3.4.4 +click==8.3.1 +Flask==3.1.2 +idna==3.11 +itsdangerous==2.2.0 +Jinja2==3.1.6 +libsass==0.23.0 +livereload==2.7.1 +MarkupSafe==3.0.3 +pydantic==2.12.5 +pydantic_core==2.41.5 +requests==2.32.5 +tornado==6.5.4 +typing-inspection==0.4.2 +typing_extensions==4.15.0 +urllib3==2.6.3 +Werkzeug==3.1.5 diff --git a/src/build.py b/src/build.py new file mode 100644 index 0000000..f5d25ed --- /dev/null +++ b/src/build.py @@ -0,0 +1,45 @@ +from jinja2 import Environment, FileSystemLoader, select_autoescape + +import shutil +import datetime +import os + +from sources import CSItem +from inventory import load_cheatsheet_inventory, prepare_cheatsheets + +INVENTORY_FILE = "cheatsheet_inventory.json" +STATIC_DIR = "static" +TEMPLATES_DIR = "templates" +OUTPUT_DIR = "out" + +inv_raw = load_cheatsheet_inventory(INVENTORY_FILE) + +# Clear output directory +shutil.rmtree(OUTPUT_DIR, ignore_errors=True) +shutil.copytree(STATIC_DIR, OUTPUT_DIR) + +inv: list[CSItem] = prepare_cheatsheets(inv_raw, OUTPUT_DIR) + + +env = Environment( + loader=FileSystemLoader(TEMPLATES_DIR), + autoescape=select_autoescape() +) + +index = env.get_template("index.html.j2") + +print(f"{len(inv)} Cheatsheets") +for i in inv: + print("-", i) + +thisYear = datetime.datetime.now().year + +with open(f"{OUTPUT_DIR}/index.html", "w", encoding="utf-8") as f: + f.write(index.render(items=inv, thisYear=thisYear)) + +with open(f"{OUTPUT_DIR}/impressum.html", "w", encoding="utf-8") as f: + f.write(env.get_template("impressum.html.j2").render(thisYear=thisYear)) + +with open(f"{OUTPUT_DIR}/license.html", "w", encoding="utf-8") as f: + f.write(env.get_template("license.html.j2").render(thisYear=thisYear)) + diff --git a/src/inventory.py b/src/inventory.py new file mode 100644 index 0000000..6b69040 --- /dev/null +++ b/src/inventory.py @@ -0,0 +1,51 @@ +import os +import traceback + +from sources import CSInventoryConfig, CSItem, CheatsheetSourceType +from sources.plain import process_plain_url +from sources.gitea import process_gitea + + +def load_cheatsheet_inventory(file: str) -> CSInventoryConfig: + if not os.path.exists(file): + res = CSInventoryConfig(items=[]) + else: + res = CSInventoryConfig.model_validate_json( + open(file, "r", encoding="utf-8").read() + ) + + with open(file, "w", encoding="utf-8") as f: + f.write(res.model_dump_json(indent=4)) + + return res + + +def prepare_cheatsheets(config: CSInventoryConfig, outdir: str) -> list[CSItem]: + res: list[CSItem] = [] + + for item in config.items: + new_items = [] + + try: + match item.source.type: + case CheatsheetSourceType.GITEA_SOURCE: + new_items += process_gitea(item, outdir) + + case CheatsheetSourceType.PLAIN_URL: + new_items.append(process_plain_url(item, outdir)) + + case _: + print("Unknow Source Type:", item.source.type) + except: + traceback.print_exc() + new_item = None + + if new_items: + for new_item in new_items: + print("->", new_item) + res.append(new_item) + + + return res + + diff --git a/src/sources/__init__.py b/src/sources/__init__.py new file mode 100644 index 0000000..85506a7 --- /dev/null +++ b/src/sources/__init__.py @@ -0,0 +1,50 @@ +from enum import Enum +from typing import Literal + +from pydantic import BaseModel, Field +from uuid import uuid4 + +# Configuration +class CheatsheetSourceType(str, Enum): + GITEA_SOURCE = "gitea" + PLAIN_URL = "url" + +class CSSourceBase(BaseModel): + type: CheatsheetSourceType + +class CSSourceGitea(CSSourceBase): + type: Literal[CheatsheetSourceType.GITEA_SOURCE] + base_url: str + repo: str + owner: str + tag: str + hide_repo: bool = False + +class CSSourcePlainURL(CSSourceBase): + type: Literal[CheatsheetSourceType.PLAIN_URL] + url: str + repo_url: str + +CSSourceType = CSSourcePlainURL | CSSourceGitea + +class CSInventoryItem(BaseModel): + source: CSSourceType + cache: bool + id: str = Field(default_factory=lambda: uuid4().__str__()) + title: str + author: str | None + +class CSInventoryConfig(BaseModel): + items: list[CSInventoryItem] + +# Resulting Rendering icon +class CSItem(BaseModel): + url: str + date: str + commit: str = "N/A" + author: str + title: str + id: str + git_repo: str + git_repo_type: str + diff --git a/src/sources/gitea.py b/src/sources/gitea.py new file mode 100644 index 0000000..f6c010f --- /dev/null +++ b/src/sources/gitea.py @@ -0,0 +1,128 @@ + +from sources import CSSourceGitea, CSItem, CSInventoryItem +from sources.util import cache_cheatsheet, get_datestring +import requests +from pathlib import Path + + +def process_gitea(item: CSInventoryItem, outdir: str) -> list[CSItem] | None: + source: CSSourceGitea = item.source + commit_hash = get_release_commit_sha(source.base_url, source.owner, source.repo, source.tag) + asserts = list_release_assets(source.base_url, source.owner, source.repo, source.tag) + + asserts = filter(lambda a: a[1].endswith(".pdf"), asserts) + + res = [] + + for a in asserts: + res_url = a[0] + if item.cache: + cache_url = cache_cheatsheet(a[0], outdir) + if cache_url: + res_url = cache_url + else: + continue + + name = Path(a[1]).stem + + res.append(CSItem( + url = res_url, + date=get_datestring(), + commit=commit_hash[:10] if commit_hash else "", + author=item.author if item.author else source.owner, + title=f"{name}", + id=item.id, + git_repo=f"{source.base_url}/{source.owner}/{source.repo}" if not source.hide_repo else "", + git_repo_type="Gitea" + )) + + return res + +def get_release_commit_sha(base_url, owner, repo, tag_name, token=None): + """ + Resolve the commit SHA for a Gitea release tag. + + :param base_url: e.g. "https://gitea.example.com" + :param owner: repo owner + :param repo: repository name + :param tag_name: release tag (e.g. "v1.2.3") + :param token: optional API token + :return: commit SHA (str) + """ + + headers = {} + if token: + headers["Authorization"] = f"token {token}" + + session = requests.Session() + session.headers.update(headers) + + # 1) List tags and find the matching tag + tags_url = f"{base_url}/api/v1/repos/{owner}/{repo}/tags" + resp = session.get(tags_url) + resp.raise_for_status() + tags = resp.json() + + tag = next((t for t in tags if t["name"] == tag_name), None) + if not tag: + raise ValueError(f"Tag '{tag_name}' not found") + + # Lightweight tags usually already contain the commit SHA + commit_sha = tag.get("commit", {}).get("sha") + tag_obj_sha = tag.get("id") + + # If commit.sha looks valid, return it + if commit_sha: + return commit_sha + + # 2) Annotated tag: dereference via /git/tags/{sha} + if not tag_obj_sha: + raise RuntimeError("Tag object SHA missing; cannot dereference annotated tag") + + git_tag_url = f"{base_url}/api/v1/repos/{owner}/{repo}/git/tags/{tag_obj_sha}" + resp = session.get(git_tag_url) + resp.raise_for_status() + annotated = resp.json() + + # The object pointed to by the tag (usually a commit) + target = annotated.get("object", {}) + if target.get("type") != "commit": + raise RuntimeError(f"Tag points to a {target.get('type')} instead of a commit") + + return target.get("sha") + + +def list_release_assets(base_url, owner, repo, tag, token=None): + """ + Return a list of (download_url, filename) for all assets of a Gitea release. + + :param base_url: Gitea host URL, e.g. "https://gitea.example.com" + :param owner: repository owner + :param repo: repository name + :param tag: release tag name + :param token: optional API token + :returns: list of (download_url, filename) tuples + """ + headers = {} + if token: + headers["Authorization"] = f"token {token}" + + # 1) Get release by tag + rel_url = f"{base_url}/api/v1/repos/{owner}/{repo}/releases/tags/{tag}" + rel_resp = requests.get(rel_url, headers=headers) + rel_resp.raise_for_status() + release = rel_resp.json() + + assets = release.get("assets", []) + result = [] + + for asset in assets: + # Gitea asset info usually contains: + # - "browser_download_url" → direct URL + # - "name" → filename + download_url = asset.get("browser_download_url") + filename = asset.get("name") + if download_url and filename: + result.append((download_url, filename)) + + return result \ No newline at end of file diff --git a/src/sources/plain.py b/src/sources/plain.py new file mode 100644 index 0000000..f50d1ba --- /dev/null +++ b/src/sources/plain.py @@ -0,0 +1,24 @@ +from sources import CSInventoryItem, CSSourcePlainURL, CSItem +from sources.util import cache_cheatsheet, get_datestring + +def process_plain_url(item: CSInventoryItem, outdir: str) -> CSItem | None: + source: CSSourcePlainURL = item.source + res_url = source.url + + if item.cache: + cache_url = cache_cheatsheet(source.url, outdir) + if cache_url: + res_url = cache_url + else: + return None + + return CSItem( + url = res_url, + date=get_datestring(), + config=item, + author=item.author, + title=item.title, + id=item.id, + git_repo=source.repo_url, + git_repo_type="Git" + ) diff --git a/src/sources/util.py b/src/sources/util.py new file mode 100644 index 0000000..d78d233 --- /dev/null +++ b/src/sources/util.py @@ -0,0 +1,29 @@ +import hashlib +import requests +import datetime +import os + +def get_datestring() -> str: + return datetime.datetime.now().strftime("%d.%m.%y") + + +def cache_cheatsheet(url, outdir: str) -> str | None: + r = requests.get(url) + if not r.ok and r.headers.get("Content-Type") != "application/pdf": + return None + + data = r.content + + hashdata = hashlib.sha256(data) + + filesname = os.path.join("cache", f"{hashdata.hexdigest()}.pdf") + + if not os.path.exists(os.path.join(outdir, "cache")): + os.mkdir(os.path.join(outdir, "cache")) + + with open(os.path.join(outdir, filesname), "wb") as f: + f.write(data) + + print("Saved file to", filesname) + + return filesname diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..fb69368 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,99 @@ +/* + * Styles for the Formelsammlung project + * 90's inspired aesthetic + */ +body { + background-color: #e8e8e8; + font-family: "Trebuchet MS", Arial, sans-serif; + color: #333; + margin: 0; + padding: 0; + font-size: 14px; + padding-left: 20px; + padding-right: 20px; + width: calc(100vw - 40px); +} + +/* Navbar styles */ +nav.navbar { + background-color: #c0c0c0; + border-bottom: 2px solid #999; + padding: 15px 20px; + display: flex; + justify-content: space-between; + align-items: center; + box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080; +} + +nav.navbar h3 { + margin: 0; + font-size: 18px; + color: #0051ba; + font-weight: bold; +} + +nav.navbar a { + color: #0051ba; + text-decoration: none; + margin-left: 20px; + padding: 5px 10px; + border: 1px solid transparent; + transition: all 0.2s ease; +} + +nav.navbar a:hover { + border: 1px solid #0051ba; + background-color: #dfdfdf; +} + +/* Main content area padding */ +body > h1, +body > table { + margin-left: 20px; + margin-right: 20px; +} + +h1 { + color: #0051ba; + text-align: center; + font-weight: bold; + border-bottom: 2px solid #0051ba; + padding-bottom: 10px; +} + +table { + width: calc(100% - 40px); + border-collapse: collapse; + margin-top: 20px; + background-color: #ffffff; +} + +table, th, td { + border: 1px solid #999; +} + +th, td { + padding: 8px; + text-align: left; +} + +th { + background-color: #c0c0c0; + font-weight: bold; +} + +tbody tr:hover { + background-color: #e8e8ff; +} + +/* Preserve whitespace and line breaks */ +.license-text { + white-space: pre-wrap; + word-wrap: break-word; + font-family: "Courier New", monospace; + background-color: #f5f5f5; + padding: 10px; + border: 1px solid #999; +} + +/*# sourceMappingURL=main.css.map */ diff --git a/static/css/main.css.map b/static/css/main.css.map new file mode 100644 index 0000000..1ec0b49 --- /dev/null +++ b/static/css/main.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../../styles/main.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAKA;EACI;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;;;AAGJ;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;AACA;AAAA;EAEI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAGJ;AACA;EACI;EACA;EACA;EACA;EACA;EACA","file":"main.css"} \ No newline at end of file diff --git a/styles/main.scss b/styles/main.scss new file mode 100644 index 0000000..e222248 --- /dev/null +++ b/styles/main.scss @@ -0,0 +1,100 @@ +/* + * Styles for the Formelsammlung project + * 90's inspired aesthetic + */ + +body { + background-color: #e8e8e8; + font-family: 'Trebuchet MS', Arial, sans-serif; + color: #333; + margin: 0; + padding: 0; + font-size: 14px; + + padding-left: 20px; + padding-right: 20px; + + width: calc(100vw - 40px); +} + +/* Navbar styles */ +nav.navbar { + background-color: #c0c0c0; + border-bottom: 2px solid #999; + padding: 15px 20px; + display: flex; + justify-content: space-between; + align-items: center; + box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080; +} + +nav.navbar h3 { + margin: 0; + font-size: 18px; + color: #0051ba; + font-weight: bold; +} + +nav.navbar a { + color: #0051ba; + text-decoration: none; + margin-left: 20px; + padding: 5px 10px; + border: 1px solid transparent; + transition: all 0.2s ease; +} + +nav.navbar a:hover { + border: 1px solid #0051ba; + background-color: #dfdfdf; +} + +/* Main content area padding */ +body > h1, +body > table { + margin-left: 20px; + margin-right: 20px; +} + +h1 { + color: #0051ba; + text-align: center; + font-weight: bold; + border-bottom: 2px solid #0051ba; + padding-bottom: 10px; +} + +table { + width: calc(100% - 40px); + border-collapse: collapse; + margin-top: 20px; + background-color: #ffffff; +} + +table, th, td { + border: 1px solid #999; +} + +th, td { + padding: 8px; + text-align: left; +} + +th { + background-color: #c0c0c0; + font-weight: bold; +} + +tbody tr:hover { + background-color: #e8e8ff; +} + +/* Preserve whitespace and line breaks */ +.license-text { + white-space: pre-wrap; + word-wrap: break-word; + font-family: 'Courier New', monospace; + background-color: #f5f5f5; + padding: 10px; + border: 1px solid #999; +} diff --git a/templates/impressum.html.j2 b/templates/impressum.html.j2 new file mode 100644 index 0000000..277a1ab --- /dev/null +++ b/templates/impressum.html.j2 @@ -0,0 +1,58 @@ + + + + + + + FS² + + + {% include "navbar.j2" %} + +

Impressum

+

Angaben gemäß § 5 DDG

+

+ Max Muster - Musterberuf
+ c/o Beispielbüro
+ Musterweg
+ 12345 Musterstadt
+

+

+ Vertreten durch:
+ Max Muster
+

+ +

+ Kontakt:
+ Telefon: 01234-789456
+ Fax: 1234-56789
+ E-Mail: max@muster.de +

+ +

+ Aufsichtsbehörde:
+ Musteraufsicht Musterstadt
+

+ +

+ Verantwortlich für den Inhalt nach § 18 Abs. 2 MStV:
+ Max Muster
+ Musterweg
+ 12345 Musterstadt
+ +

+

+ Verbraucherstreitbeilegung / Universalschlichtungsstelle +
Wir nehmen nicht an Streitbeilegungsverfahren vor einer Verbraucherschlichtungsstelle teil und sind dazu auch nicht verpflichtet. +

+ +

+ Haftungsausschluss:

+ Haftung für Inhalte
+ Die Inhalte unserer Seiten wurden mit größter Sorgfalt erstellt. Für die Richtigkeit, Vollständigkeit und Aktualität der Inhalte können wir jedoch keine Gewähr übernehmen. Als Diensteanbieter sind wir gemäß § 7 Abs.1 DDG für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Nach §§ 8 bis 10 DDG sind wir als Diensteanbieter jedoch nicht verpflichtet, übermittelte oder gespeicherte fremde Informationen zu überwachen oder nach Umständen zu forschen, die auf eine rechtswidrige Tätigkeit hinweisen. Verpflichtungen zur Entfernung oder Sperrung der Nutzung von Informationen nach den allgemeinen Gesetzen bleiben hiervon unberührt. Eine diesbezügliche Haftung ist jedoch erst ab dem Zeitpunkt der Kenntnis einer konkreten Rechtsverletzung möglich. Bei Bekanntwerden von entsprechenden Rechtsverletzungen werden wir diese Inhalte umgehend entfernen.

+ + Haftung für Links
+ Unser Angebot enthält Links zu externen Webseiten Dritter, auf deren Inhalte wir keinen Einfluss haben. Deshalb können wir für diese fremden Inhalte auch keine Gewähr übernehmen. Für die Inhalte der verlinkten Seiten ist stets der jeweilige Anbieter oder Betreiber der Seiten verantwortlich. Die verlinkten Seiten wurden zum Zeitpunkt der Verlinkung auf mögliche Rechtsverstöße überprüft. Rechtswidrige Inhalte waren zum Zeitpunkt der Verlinkung nicht erkennbar. Eine permanente inhaltliche Kontrolle der verlinkten Seiten ist jedoch ohne konkrete Anhaltspunkte einer Rechtsverletzung nicht zumutbar. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Links umgehend entfernen. +

+ + \ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 new file mode 100644 index 0000000..10d4ba2 --- /dev/null +++ b/templates/index.html.j2 @@ -0,0 +1,53 @@ + + + + + + + FS² + + + {% include "navbar.j2" %} + +

Formel(sammlung)²

+ + + + + + + + + + + {% for item in items %} + + + + + + + {% endfor %} + +
TitleRepoUpload DateGit commit
+ {{ item.title }} + + {% if item.author %} +
by {{ item.author }} + {% endif %} +
+ {% if item.git_repo %} + {{ item.git_repo_type }} + {% else %} + N/A + {% endif %} + + {{ item.date }} + + {% if item.git_repo %} + {{ item.commit }} + {% endif %} +
+ + + \ No newline at end of file diff --git a/templates/license.html.j2 b/templates/license.html.j2 new file mode 100644 index 0000000..f752cf3 --- /dev/null +++ b/templates/license.html.j2 @@ -0,0 +1,27 @@ + + + + + + + FS² + + + {% include "navbar.j2" %} + +

License

+ +

+Copyright {{thisYear}} Alexander +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +

+ +

+ Cheatsheets are licensed under their respective licenses as indicated in their Git repositories. +

+ + \ No newline at end of file diff --git a/templates/navbar.j2 b/templates/navbar.j2 new file mode 100644 index 0000000..d1af675 --- /dev/null +++ b/templates/navbar.j2 @@ -0,0 +1,9 @@ + +