diff options
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 to your Fediverse experience. To be used wisely (see .Xr snac 8 for more information). +.It Pa announcement.txt +If this file is present, an announcement will be shown to logged in users +on every page with its contents. It is also available through the Mastodon API. +Users can dismiss the announcement, which works by storing the modification time +in the "last_announcement" field of the +.Pa user.json +file. When the file is modified, the announcement will then reappear. It can +contain only text and will be ignored if it has more than 2048 bytes. .El .Pp 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; } .snac-top-user { text-align: center; padding-bottom: 2em } .snac-top-user-name { font-size: 200% } .snac-top-user-id { font-size: 150% } +.snac-announcement { border: black 1px solid; padding: 0.5em } .snac-avatar { float: left; height: 2.5em; padding: 0.25em } .snac-author { font-size: 90%; text-decoration: none } .snac-author-tag { font-size: 80% } |