diff options
| author | 2024-05-31 09:09:54 +0000 | |
|---|---|---|
| committer | 2024-05-31 09:09:54 +0000 | |
| commit | fe52b7612e4a96d491f925dfcbbbaa6251654ca4 (patch) | |
| tree | 40fb16a0f78b0988dd8167c101554d8425d2a875 /doc | |
| parent | mastoapi: more list tweaks. (diff) | |
| parent | Merge branch 'master' into announcements (diff) | |
| download | snac2-fe52b7612e4a96d491f925dfcbbbaa6251654ca4.tar.gz snac2-fe52b7612e4a96d491f925dfcbbbaa6251654ca4.tar.xz snac2-fe52b7612e4a96d491f925dfcbbbaa6251654ca4.zip | |
Merge pull request 'Implement instance announcements' (#173) from louis77/snac2:announcements into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/173
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/snac.5 | 8 | ||||
| -rw-r--r-- | doc/style.css | 1 |
2 files changed, 9 insertions, 0 deletions
| @@ -121,6 +121,14 @@ rejected. This brings the flexibility and destruction power of regular expressio | |||
| 121 | to your Fediverse experience. To be used wisely (see | 121 | to your Fediverse experience. To be used wisely (see |
| 122 | .Xr snac 8 | 122 | .Xr snac 8 |
| 123 | for more information). | 123 | for more information). |
| 124 | .It Pa announcement.txt | ||
| 125 | If this file is present, an announcement will be shown to logged in users | ||
| 126 | on every page with its contents. It is also available through the Mastodon API. | ||
| 127 | Users can dismiss the announcement, which works by storing the modification time | ||
| 128 | in the "last_announcement" field of the | ||
| 129 | .Pa user.json | ||
| 130 | file. When the file is modified, the announcement will then reappear. It can | ||
| 131 | contain only text and will be ignored if it has more than 2048 bytes. | ||
| 124 | .El | 132 | .El |
| 125 | .Pp | 133 | .Pp |
| 126 | Each user directory is a subdirectory of | 134 | Each user directory is a subdirectory of |
diff --git a/doc/style.css b/doc/style.css index a133db6..2273e03 100644 --- a/doc/style.css +++ b/doc/style.css | |||
| @@ -6,6 +6,7 @@ pre { overflow-x: scroll; } | |||
| 6 | .snac-top-user { text-align: center; padding-bottom: 2em } | 6 | .snac-top-user { text-align: center; padding-bottom: 2em } |
| 7 | .snac-top-user-name { font-size: 200% } | 7 | .snac-top-user-name { font-size: 200% } |
| 8 | .snac-top-user-id { font-size: 150% } | 8 | .snac-top-user-id { font-size: 150% } |
| 9 | .snac-announcement { border: black 1px solid; padding: 0.5em } | ||
| 9 | .snac-avatar { float: left; height: 2.5em; padding: 0.25em } | 10 | .snac-avatar { float: left; height: 2.5em; padding: 0.25em } |
| 10 | .snac-author { font-size: 90%; text-decoration: none } | 11 | .snac-author { font-size: 90%; text-decoration: none } |
| 11 | .snac-author-tag { font-size: 80% } | 12 | .snac-author-tag { font-size: 80% } |