Compare commits
4 Commits
8fee8d879e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4aa73b1aa | ||
|
|
73e89ca513 | ||
|
|
a1900a77e4 | ||
|
|
258d062ff4 |
25
README.md
25
README.md
@@ -1,4 +1,15 @@
|
|||||||
# Installing
|
<a href="https://oql.avris.it/license/v1.2" target="_blank" rel="noopener"><img src="https://badgers.space/badge/License/OQL/pink" alt="License: OQL" style="vertical-align: middle;"/></a>
|
||||||
|
|
||||||
|
# STSG
|
||||||
|
|
||||||
|
## Planned features
|
||||||
|
|
||||||
|
- [ ] auto uploading to ftp and other online services using a plugin system
|
||||||
|
- [ ] build a git wiki in a specified languages instead of a static website
|
||||||
|
- [ ] hosting the documentation somehow
|
||||||
|
- [ ] multiple templates + a way to choose templates
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python3 -m venv .venv
|
python3 -m venv .venv
|
||||||
@@ -6,7 +17,7 @@ source .venv/bin/activate
|
|||||||
pip install -e .
|
pip install -e .
|
||||||
```
|
```
|
||||||
|
|
||||||
# Execute
|
## Execute
|
||||||
|
|
||||||
To start a local http server in the dist folder you can simply do:
|
To start a local http server in the dist folder you can simply do:
|
||||||
|
|
||||||
@@ -24,13 +35,3 @@ stsg
|
|||||||
stsg_dev
|
stsg_dev
|
||||||
```
|
```
|
||||||
|
|
||||||
# build favicon
|
|
||||||
|
|
||||||
```
|
|
||||||
cd src/static/assets
|
|
||||||
inkscape -w 16 -h 16 -o 16.png logo.svg
|
|
||||||
inkscape -w 32 -h 32 -o 32.png logo.svg
|
|
||||||
inkscape -w 48 -h 48 -o 48.png logo.svg
|
|
||||||
|
|
||||||
convert 16.png 32.png 48.png ../icon.ico
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ readme = "README.md"
|
|||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
classifiers = []
|
classifiers = []
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
license-files = [
|
||||||
|
"LICENSE"
|
||||||
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
stsg = "stsg.__main__:build"
|
stsg = "stsg.__main__:build"
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ Dies ist ein Static Site Generator mit fokus auf Nutzer:innenfreundlichkeit und
|
|||||||
|
|
||||||
Die Templates sind komplet anpassbar, trotzdem empfehle ich [Bulma](https://bulma.io/) als CSS-Framework zu verwenden.
|
Die Templates sind komplet anpassbar, trotzdem empfehle ich [Bulma](https://bulma.io/) als CSS-Framework zu verwenden.
|
||||||
|
|
||||||
Polizei und das Millitär jeglichen Staates dürfen dieses Tool nicht verwenden.
|
Polizei und das Millitär jeglichen Staates dürfen dieses Tool nicht verwenden. Für mehr Info zur Nutzung lest [die Lizenz]({{license.url}}).
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
<p><strong>{{name}}</strong> by {{author}}. © 2025</p>
|
<p><strong>{{name}}</strong> by {{author}}. © {{year}}</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
<p><strong>{{name}}</strong> by {{author}}. © 2025</p>
|
<p><strong>{{name}}</strong> by {{author}}. © {{year}}</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -238,6 +238,7 @@ class ArticleTranslation:
|
|||||||
self.context["url"] = self.url
|
self.context["url"] = self.url
|
||||||
add_html_link(self.context)
|
add_html_link(self.context)
|
||||||
self.context["date"] = self.article.modified_at.strftime(config.formatting.datetime_format)
|
self.context["date"] = self.article.modified_at.strftime(config.formatting.datetime_format)
|
||||||
|
self.context["year"] = str(self.article.modified_at.year)
|
||||||
self.context["iso_date"] = self.article.modified_at.isoformat()
|
self.context["iso_date"] = self.article.modified_at.isoformat()
|
||||||
self.context["author"] = self.article.author
|
self.context["author"] = self.article.author
|
||||||
|
|
||||||
@@ -383,6 +384,7 @@ class Article:
|
|||||||
self.context["url"] = self.url
|
self.context["url"] = self.url
|
||||||
add_html_link(self.context)
|
add_html_link(self.context)
|
||||||
self.context["date"] = self.modified_at.strftime(config.formatting.datetime_format)
|
self.context["date"] = self.modified_at.strftime(config.formatting.datetime_format)
|
||||||
|
self.context["year"] = str(self.modified_at.year)
|
||||||
self.context["iso_date"] = self.modified_at.isoformat()
|
self.context["iso_date"] = self.modified_at.isoformat()
|
||||||
self.context["author"] = self.author
|
self.context["author"] = self.author
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class ArticleContext(TypedDict):
|
|||||||
url: str
|
url: str
|
||||||
link: str
|
link: str
|
||||||
date: str
|
date: str
|
||||||
|
year: str
|
||||||
iso_date: str
|
iso_date: str
|
||||||
author: str
|
author: str
|
||||||
|
|
||||||
@@ -39,6 +40,7 @@ class ArticleTranslationContext(TypedDict):
|
|||||||
url: str
|
url: str
|
||||||
link: str
|
link: str
|
||||||
date: str
|
date: str
|
||||||
|
year: str
|
||||||
iso_date: str
|
iso_date: str
|
||||||
author: str
|
author: str
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user