aboutsummaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-07-04 22:27:41 +0200
committerMartin Fischer <martin@push-f.com>2021-07-04 22:27:41 +0200
commita803509255ce1f5edc6e77e9e483a721978e9b83 (patch)
tree90edaf0d149212db605b1ce1f4acc00b4bf6b252 /src/static
parent4c824bad097118f95fa738468e5dd368b6c14ca8 (diff)
move src/help/*.html files to src/static/
Diffstat (limited to 'src/static')
-rw-r--r--src/static/help_shares.txt.html9
-rw-r--r--src/static/help_users.toml.html8
-rwxr-xr-xsrc/static/update_hashes.sh2
3 files changed, 18 insertions, 1 deletions
diff --git a/src/static/help_shares.txt.html b/src/static/help_shares.txt.html
new file mode 100644
index 0000000..be5f4c5
--- /dev/null
+++ b/src/static/help_shares.txt.html
@@ -0,0 +1,9 @@
+This configuration file lets you share files with other users.
+Lines need to be in one of the following two formats:
+
+<pre>
+r &lt;path> &lt;username> # grants read-only access
+w &lt;path> &lt;username> # grants read/write access
+</pre>
+
+Ending a path in <code>/*</code> makes the rule apply to all subfiles. \ No newline at end of file
diff --git a/src/static/help_users.toml.html b/src/static/help_users.toml.html
new file mode 100644
index 0000000..fe195e2
--- /dev/null
+++ b/src/static/help_users.toml.html
@@ -0,0 +1,8 @@
+This configuration file lets you configure
+committer identities for users. For example:
+
+<pre>
+[johndoe]
+name = "John Doe"
+email = "john@example.com"
+</pre> \ No newline at end of file
diff --git a/src/static/update_hashes.sh b/src/static/update_hashes.sh
index ac6c6a1..3bcdb78 100755
--- a/src/static/update_hashes.sh
+++ b/src/static/update_hashes.sh
@@ -1,5 +1,5 @@
#/bin/sh
cd "$(dirname "$0")"
-for script in *.css *.js; do
+for script in style.css edit_script.js; do
printf "'sha256-%s'" $(shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0) > $script.sha
done