Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit1fe3d39788cfb0a167ff562fa121c90ea3b445c7 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-07-04 16:41:27 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-07-04 16:41:27 +0300
Files548480d4dbd98da7e1d06f1d9c339a871600af21
syndamia.com-1fe3d39788cfb0a167ff562fa121c90ea3b445c7.tar
syndamia.com-1fe3d39788cfb0a167ff562fa121c90ea3b445c7.tar.gz
syndamia.com-1fe3d39788cfb0a167ff562fa121c90ea3b445c7.zip
Parent287748bcd9d17462219699d01bb0d043812a9a8e (diff)
Reworked how HTML-editing scripts are handled
7 files changed, 20 insertions, 8 deletions
-rwxr-xr-xgenerate-dev.sh7
-rw-r--r--generate-hooks/README.md14
-rwxr-xr-xgenerate-hooks/make-descriptions.sh (renamed from make-descriptions.sh)0
-rwxr-xr-xgenerate-hooks/make-file-lists.sh (renamed from make-file-lists.sh)0
-rwxr-xr-xgenerate-hooks/make-flags.sh (renamed from make-flags.sh)0
-rwxr-xr-xgenerate-hooks/make-titles.sh (renamed from make-titles.sh)0
-rwxr-xr-xgenerate.sh7
diff --git a/generate-dev.sh b/generate-dev.sh
index 4596873..4e37a37 100755
--- a/generate-dev.sh
+++ b/generate-dev.sh
@@ -12,10 +12,9 @@ sudo rm -f /var/www/synd/.files
# Generate files
sudo ssg6 src /var/www/synd/ "Syndamia" "https://www.syndamia.com"
-sudo ./make-titles.sh /var/www/synd
-sudo ./make-descriptions.sh /var/www/synd
-sudo ./make-file-lists.sh /var/www/synd
-sudo ./make-flags.sh /var/www/synd
+for file in $(find "./generate-hooks" -type f -name "*.sh"); do
+ sudo "$file" /var/www/synd
+done
#
# Tiny version
diff --git a/generate-hooks/README.md b/generate-hooks/README.md
new file mode 100644
index 0000000..d3c9210
--- /dev/null
+++ b/generate-hooks/README.md
@@ -0,0 +1,14 @@
+These scripts are ran by `generate.sh` and `generate-dev.sh` (which just run all .sh files in this folder). They're meant to modify the "compiled" HTML files.
+
+## ftags
+
+ftags are strings/words in the Markdown source files, that start with "&&" and continue with any (valid) sequence of characters. The name initially stood for "file tags", since the `make-file-lists.sh` script was the first to utilize them, but I've expanded their usage and their current name means "format tags".
+
+Their purpose is to shorten and abstract certain custom HTML code that I want to use in my pages (but will have to include as-is in the Markdown files). List of scripts that handle ftags:
+
+|Script|ftags|ftag can be anywhere in text|
+|---|---|---|
+|`make-file-lists.sh`|`&&fos`, `&&fs0`, `&&fs`, `&&fod`|No|
+|`make-flags.sh`|`&&gb`|Yes|
+
+For more information on how to use the different ftags, consult the specified script.
diff --git a/make-descriptions.sh b/generate-hooks/make-descriptions.sh
index 49417f5..49417f5 100755
--- a/make-descriptions.sh
+++ b/generate-hooks/make-descriptions.sh
diff --git a/make-file-lists.sh b/generate-hooks/make-file-lists.sh
index 3952728..3952728 100755
--- a/make-file-lists.sh
+++ b/generate-hooks/make-file-lists.sh
diff --git a/make-flags.sh b/generate-hooks/make-flags.sh
index 786671d..786671d 100755
--- a/make-flags.sh
+++ b/generate-hooks/make-flags.sh
diff --git a/make-titles.sh b/generate-hooks/make-titles.sh
index bf739ff..bf739ff 100755
--- a/make-titles.sh
+++ b/generate-hooks/make-titles.sh
diff --git a/generate.sh b/generate.sh
index 7e9b620..105cde3 100755
--- a/generate.sh
+++ b/generate.sh
@@ -11,10 +11,9 @@ sudo rm -f website/.files
# Generate files
sudo ssg6 src website "Syndamia" "https://www.syndamia.com"
-sudo ./make-titles.sh website
-sudo ./make-descriptions.sh website
-sudo ./make-file-lists.sh website
-sudo ./make-flags.sh website
+for file in $(find "./generate-hooks" -type f -name "*.sh"); do
+ sudo "$file" website
+done
#
# Tiny version