2 Komitmen 9830a562f9 ... 1be425fbb0

Pembuat SHA1 Pesan Tanggal
  Rob Austein 1be425fbb0 Add rule for trac-to-pelican-home.md 3 tahun lalu
  Rob Austein 8a435a7c4d Move pelican index aside to make room for landing page 3 tahun lalu
3 mengubah file dengan 34 tambahan dan 1 penghapusan
  1. 5 1
      GNUmakefile
  2. 4 0
      pelicanconf.py
  3. 25 0
      trac-to-pelican-home.md

+ 5 - 1
GNUmakefile

@@ -7,10 +7,14 @@ SOURCE_URL		:= https://git.cryptech.is/
 SOURCE_TRAC_DB		:= bikeshed.cryptech.is:/home/trac/db/trac.db
 SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments
 
-all:
+all: pelican/content/trac-to-pelican-home.md
 	tools/extract.py --source-url ${SOURCE_URL}
 	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 $@)
+	(date '+Date: %Y-%m-%d %H:%M'; cat $<) > $@
+
 fetch:
 	rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .
 

+ 4 - 0
pelicanconf.py

@@ -31,3 +31,7 @@ SOCIAL_WIDGET_NAME = "Subscribe"
 DEFAULT_PAGINATION = 10
 
 #THEME = "/home/blog/pelican-themes/sundown"
+
+# Per https://docs.getpelican.com/en/latest/faq.html#how-can-i-use-a-static-page-as-my-home-page
+
+INDEX_SAVE_AS = "pelican-index.html"

+ 25 - 0
trac-to-pelican-home.md

@@ -0,0 +1,25 @@
+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.
+