[Cryptech-Commits] [user/sra/pelican] 67/68: Tweak trac-to-pelican-home rule

git at cryptech.is git at cryptech.is
Mon Jul 19 22:25:46 UTC 2021


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch pelican
in repository user/sra/pelican.

commit 034033d5b859a01531a5671662616473559eebfd
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 12 04:12:56 2021 +0000

    Tweak trac-to-pelican-home rule
---
 .gitignore                              |  1 +
 GNUmakefile                             |  6 +++---
 pelican/content/trac-to-pelican-home.md | 26 --------------------------
 3 files changed, 4 insertions(+), 29 deletions(-)

diff --git a/.gitignore b/.gitignore
index 24aee26..e25a64c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ pelican/pelicanconf.py
 pelican/website
 repositories.json
 trac.db
+trac-to-pelican-home.md
diff --git a/GNUmakefile b/GNUmakefile
index 7fbdb88..c1948e5 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -8,13 +8,13 @@ REPO_HOST := bikeshed.cryptech.is
 REPO_PATH := /usr/local/git/repositories
 
 
-all: pelican/content/trac-to-pelican-home.md
+all: trac-to-pelican-home.md
 	tools/extract.py --source-url ${SOURCE_URL}
+	ln -f trac-to-pelican-home.md pelican/content/trac-to-pelican-home.md
 	./kludge-cgit-urls.py
 	cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
 
-pelican/content/trac-to-pelican-home.md: tools/trac-to-pelican-home.md
-	mkdir -p $(dir $@)
+trac-to-pelican-home.md: tools/trac-to-pelican-home.md
 	(date '+Date: %Y-%m-%d %H:%M'; cat $<) > $@
 
 fetch:
diff --git a/pelican/content/trac-to-pelican-home.md b/pelican/content/trac-to-pelican-home.md
deleted file mode 100644
index 3c10462..0000000
--- a/pelican/content/trac-to-pelican-home.md
+++ /dev/null
@@ -1,26 +0,0 @@
-Date: 2021-07-11 22:45
-Title: Trac Wiki converted to Pelican Markdown
-URL:
-save_as: index.html
-
-Trac Wiki converted to Pelican Markdown
-=======================================
-
-This is a dummy landing page for a Trac Wiki site converted to
-Markdown and fed through Pelican to create a static web site.
-
-See [the conversion scripts that produced
-this](https://git.hactrn.net/sra/trac-wiki-to-markdown) for details on
-the conversion process.  Be warned that it's a lot of nasty regular
-expressions, because nothing other than Trac really understand's
-Track's Wiki format.
-
-Trac's landing page is always called [WikiStart](wikistart.html).
-
-Pelican's [automatically-generated index](pelican-index.html) is the
-default Pelican landing page, but we had to move it aside to make room
-for this one.
-
-Feel free to clean all of this up, this page is just a placeholder to
-make it easy to navigate the converted wiki until a human takes over.
-



More information about the Commits mailing list