Skip to content

Commit

Permalink
Merge pull request #363 from ZeitOnline/docs
Browse files Browse the repository at this point in the history
Docs: Migriere zu MkDocs
  • Loading branch information
Sr-Mueller authored Oct 14, 2024
2 parents ca0ce28 + cf492c5 commit 2617117
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 230 deletions.
21 changes: 21 additions & 0 deletions bin/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR/.."
zon_mkdocs_image="europe-west3-docker.pkg.dev/zeitonline-engineering/docker-zon/zon-mkdocs:latest"

docker pull $zon_mkdocs_image

COMMAND=${1:-html}
case $COMMAND in
serve)
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs $zon_mkdocs_image
;;
html)
docker run --rm -v ${PWD}:/docs $zon_mkdocs_image build --site-dir public
;;
*)
echo "Unrecognized command: $COMMAND"
exit 1
;;
esac
177 changes: 0 additions & 177 deletions docs/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docs/_build/.gitignore

This file was deleted.

5 changes: 2 additions & 3 deletions docs/application/i18n.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Internationalization

:::{note}
The i18n Feature is currently not actively supported anymore - the workaround is to translate the texts using the theming mechanism, where you can replace tagged markup with translated versions.
:::
!!! note
The i18n Feature is currently not actively supported anymore - the workaround is to translate the texts using the theming mechanism, where you can replace tagged markup with translated versions.

All user facing text of the `briefkasen` application are translated using a `gettext` messsage catalog. To customize and update these messages you must:

Expand Down
10 changes: 0 additions & 10 deletions docs/compose.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions docs/conf.py

This file was deleted.

26 changes: 9 additions & 17 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
```{include} overview.md
```
# ZEIT Online Briefkasten

Deployment
The `briefkasten` (German for letterbox) is a reasonably secure web application for submitting content anonymously.

: This section contains all the information on how to install, configure and run your own instance of the briefkasten stack.
It allows to upload attachments which are then sanitized of a number of meta-data which could compromise the submitters identity. Next, the sanitized files are encrypted via GPG and sent via email to a pre-configured list of recipients. The original (potentially 'dirty') files are then deleted from the file system of the server. Thus, neither should admins with access to the server be able to access any submissions, nor should any of the recipients have access to the unsanitized raw material.

```{toctree}
:maxdepth: 2
Upon successful upload the submitter receives a unique URL with a token that he or she can use to access any replies the recipients may post. That reply is the only data persisted on the server.

deployment/index
deployment/monitoring
```
The implementation doesn't just contain the application itself but includes a complete deployment setup following what we believe to be best practices so that anybody should be able to host their own secure `briefkasten` with minimal setup pain.

Application
[Deployment](deployment/index.md)

> This section contains information on the inner workings of the application and how to develop or extend it or how to create a custom theme for it.
> This section contains all the information on how to install, configure and run your own instance of the briefkasten stack.
```{toctree}
:maxdepth: 2
[Application](application/develop.md)

application/develop
application/workings
application/i18n
```
> This section contains information on the inner workings of the application and how to develop or extend it or how to create a custom theme for it.
9 changes: 0 additions & 9 deletions docs/overview.md

This file was deleted.

13 changes: 13 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
INHERIT: /zon/common_config.yaml
site_name: Briefkasten
repo_url: https://github.com/ZeitOnline/briefkasten

nav:
- index.md
- Deployment:
- deployment/index.md
- deployment/monitoring.md
- Application:
- application/develop.md
- application/workings.md
- application/i18n.md

0 comments on commit 2617117

Please sign in to comment.