This will immediately deploy changes to the web mirrors.
Please note that using the technique, any changes made henceforth to the GitLab
project repository and deployed to production will overwrite these modifications.
## Disaster recovery
See [howto/static-component#disaster-recovery](https://gitlab.torproject.org/tpo/tpa/team/-/wikis/howto/static-component#disaster-recovery).
# Reference
## Sample contents.lr
## Installation
See [service/static-shim#adding-a-new-static-site-shim-in-puppet](https://gitlab.torproject.org/tpo/tpa/team/-/wikis/service/static-shim#adding-a-new-static-site-shim-in-puppet).
## SLA
See [howto/static-component#sla](https://gitlab.torproject.org/tpo/tpa/team/-/wikis/howto/static-component#sla).
## Design
### Sample contents.lr
```
title: New Tor Blog
@@ -141,7 +186,7 @@ The new Tor Blog is here!
The new Tor Blog now runs on top of the Lektor static site generator.
```
## List of categories
### List of categories
In the process of migrating the blog from Drupal to Lektor, the number of tags
has been reduced to 20 (from over 970 in Drupal). For details about this work,
@@ -165,7 +210,7 @@ The items below may now be used in the `categories` field:
When drafting a new blog post, a minimum of one category must be chosen, with a
suggested maximum of three.
## Compress PNG files
### Compress PNG files
When care is taken to minimize the size of web assets, accessibility and
performance is improved, especially for visitors accessing the site from
@@ -181,7 +226,7 @@ This command will process the input file and save it as `zopfli_lead.png`. The
output message will indicate if the image size was reduced and if so, by what
percentage.
## Comments embedding
### Comments embedding
When a new blog post is published, a javascript snippet included on the page will
trigger the Discourse forum to create a new topic in the `News` category with the
@@ -202,6 +247,33 @@ sub-elements themselves must be targetted explicitely.
This website is maintained collaboratively between the TPA web team and the
community team. Users of this service are the general public.
## Monitoring and testing
For monitoring, see [howto/static-component#monitoring-and-testing](https://gitlab.torproject.org/tpo/tpa/team/-/wikis/howto/static-component#monitoring-and-testing).
There are no automated tests such as spellchecks or dead link checking for this
service. In case of malformed Lektor content files, the build job will fail.
## Logs and metrics
See [howto/static-component#logs-and-metrics](https://gitlab.torproject.org/tpo/tpa/team/-/wikis/howto/static-component#logs-and-metrics).
## Backups
Backups of this website exist both in the Bacula backups of the GitLab server (as
artifacts) and backups of the `static-gitlab-shim.torproject.org` server.