commit: 3ad748a14a7369cf93cea68ff020efb12da7b34c
parent: 8aeb9b7789231352fdcfa05f4e77b74950adfc50
author: Chris Noxz <chris@noxz.tech>
date: Thu, 25 Aug 2022 13:17:28 +0200
move edit notice to own file
3 files changed, 17 insertions(+), 23 deletions(-)
diff --git a/build b/build
@@ -307,12 +307,20 @@ prerender() {
[ -n "$date" ] && printf '.P article-date\n\\*[DATE]\n\n'
# print tags, if existing, at bottom of page
- [ -f "${base_path}"/.tags ] \
- && printf '\n.DIVS wrap-list\n.ULS\n' \
+ [ -f "${base_path}"/.tags ] \
+ && printf '\n.DIVS wrap-list\n.ULS\n' \
&& while read -r tag; do
printf '.LI\n.CLURL "../tags/%s" art-tag "%s"\n' "${tag}" "${tag}"
done < "${base_path}"/.tags && printf '.ULE\n.DIVE\n'
+ [ -f "${base_path}"/.edit ] \
+ && sed "${base_path}"/.edit \
+ -e 's/^START \([0-9-]*\)$/.LI \1\n.ULS/g' \
+ -e 's/^\t\(.*\)$/.LI\n\1/g' \
+ -e 's/^END$/.ULE/g' \
+ -e '1 i\.DIVS edit-note\n.HnS 2\nEdit notice\n.HnE\n.DLS' \
+ -e '$ a .DLE\n.DIVE\n'
+
cat - | while read -r line; do
if echo "${line}" | grep -E '\{:articles(#[^#]*)?:\}' 2>/dev/null 1>&2; then
render_articles "$1" \
diff --git a/noxz.tech/articles/sic_collection_of_papers_on_troff_and_its_companions/.edit b/noxz.tech/articles/sic_collection_of_papers_on_troff_and_its_companions/.edit
@@ -0,0 +1,7 @@
+START 2022-08-25
+ Added "Examples of pic Macros"
+ Added "IDEAL User’s Manual"
+ Added "MetaPost with groff"
+ Added "The MetaPost System"
+ Added "Drawing Graphs with MetaPost"
+END
diff --git a/noxz.tech/articles/sic_collection_of_papers_on_troff_and_its_companions/index.www b/noxz.tech/articles/sic_collection_of_papers_on_troff_and_its_companions/index.www
@@ -1,24 +1,3 @@
-.DIVS edit-note
-.HnS 2
-Edit notice
-.HnE
-.DLS
-.LI 2022-08-25
-.ULS
-.LI
-Added "Examples of pic Macros"
-.LI
-Added "IDEAL User's Manual"
-.LI
-Added "MetaPost with groff"
-.LI
-Added "The MetaPost System"
-.LI
-Added "Drawing Graphs with MetaPost"
-.ULE
-.DLE
-.DIVE
-
The following is a collection based on
.URL "https://www.troff.org/papers.html" "troff.org/papers" .
However, I found that many of the links referenced on that site are dead. I