aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-02-14 16:56:57 +0000
committerRob Austein <sra@hactrn.net>2021-02-14 16:56:57 +0000
commit68e18ad1f44e9a6fab66adc38e97d027a58de8a4 (patch)
tree22eb915c53760c6b6f0f5254d027de9dee58abd1
parent7bf10bb74babd8f16b7a3942607f3d1007aa2324 (diff)
Another reorg, and pelican samples
-rw-r--r--.gitignore6
-rw-r--r--GNUmakefile2
-rwxr-xr-xextract.py (renamed from tools/extract.py)0
-rwxr-xr-xreferences/convert-and-slurp-attachments.sh (renamed from tools/references/convert-and-slurp-attachments.sh)0
-rw-r--r--references/extract-wiki-content.xsl (renamed from tools/references/extract-wiki-content.xsl)0
-rwxr-xr-xreferences/generate-json.py (renamed from tools/references/generate-json.py)0
-rw-r--r--references/pelicanconf.py42
-rw-r--r--references/publishconf.py19
-rw-r--r--references/rpki-wiki-to-markdown.py (renamed from tools/references/rpki-wiki-to-markdown.py)0
-rw-r--r--references/schema.sql (renamed from tools/references/schema.sql)0
-rw-r--r--references/trac-wiki-to-markdown.rb (renamed from tools/references/trac-wiki-to-markdown.rb)0
-rw-r--r--references/trac2down.py (renamed from tools/references/trac2down.py)0
-rwxr-xr-xtrac2md.py (renamed from tools/trac2md.py)0
13 files changed, 65 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index fdd24ca..02eff3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
+#pelican
+#wiki
TAGS
+__pycache__
attachments
trac.db
-tools/__pycache__
-#pelican
-#wiki
diff --git a/GNUmakefile b/GNUmakefile
index ade39b2..2136f0b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,5 +1,5 @@
all:
- tools/extract.py
+ ./extract.py
fetch:
rsync -aP --delete bikeshed.cryptech.is:/home/trac/db/trac.db bikeshed.cryptech.is:/home/trac/files/attachments .
diff --git a/tools/extract.py b/extract.py
index 7f76fe9..7f76fe9 100755
--- a/tools/extract.py
+++ b/extract.py
diff --git a/tools/references/convert-and-slurp-attachments.sh b/references/convert-and-slurp-attachments.sh
index ce7f34d..ce7f34d 100755
--- a/tools/references/convert-and-slurp-attachments.sh
+++ b/references/convert-and-slurp-attachments.sh
diff --git a/tools/references/extract-wiki-content.xsl b/references/extract-wiki-content.xsl
index e4376e8..e4376e8 100644
--- a/tools/references/extract-wiki-content.xsl
+++ b/references/extract-wiki-content.xsl
diff --git a/tools/references/generate-json.py b/references/generate-json.py
index b8b1f38..b8b1f38 100755
--- a/tools/references/generate-json.py
+++ b/references/generate-json.py
diff --git a/references/pelicanconf.py b/references/pelicanconf.py
new file mode 100644
index 0000000..a28721d
--- /dev/null
+++ b/references/pelicanconf.py
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*- #
+from __future__ import unicode_literals
+
+AUTHOR = u'Rob Austein'
+SITENAME = u'Your Bug Report Will Be Graded'
+
+# Apparently this is much longer than theme designer expected. Skip it for now.
+SITESUBTITLE = u'"I\'m not proud of being a congenital pain in the ass. But I will take money for it."'
+
+PATH = 'content'
+TIMEZONE = 'UTC'
+DEFAULT_LANG = u'English'
+
+# Hack article URLs to match what Blogofile did, to avoid breaking links.
+
+ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
+ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
+
+# Feed generation is usually not desired when developing
+SITEURL = ''
+RELATIVE_URLS = True
+FEED_ALL_ATOM = None
+CATEGORY_FEED_ATOM = None
+TRANSLATION_FEED_ATOM = None
+AUTHOR_FEED_ATOM = None
+AUTHOR_FEED_RSS = None
+
+# Blogroll
+LINKS = (('Pelican', 'http://getpelican.com/'),
+ ('Python.org', 'http://python.org/'),
+ ('Jinja2', 'http://jinja.pocoo.org/'))
+LINKS_WIDGET_NAME = "Links"
+
+# Social widget. Can't get rid of this with default theme, only change its name.
+# Fiddle with themes later
+SOCIAL = ()
+SOCIAL_WIDGET_NAME = "Subscribe"
+
+DEFAULT_PAGINATION = 10
+
+THEME = "/home/blog/pelican-themes/sundown"
diff --git a/references/publishconf.py b/references/publishconf.py
new file mode 100644
index 0000000..f0fb21d
--- /dev/null
+++ b/references/publishconf.py
@@ -0,0 +1,19 @@
+#!/usr/local/bin/python2.7
+# -*- coding: utf-8 -*- #
+from __future__ import unicode_literals
+
+# This file is only used if you use `make publish` or
+# explicitly specify it as your config file.
+
+import os
+import sys
+sys.path.append(os.curdir)
+from pelicanconf import *
+
+SITEURL = 'https://www.hactrn.net/blog'
+RELATIVE_URLS = False
+
+FEED_ALL_ATOM = 'feeds/all.atom.xml'
+CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
+
+DELETE_OUTPUT_DIRECTORY = True
diff --git a/tools/references/rpki-wiki-to-markdown.py b/references/rpki-wiki-to-markdown.py
index dff87e6..dff87e6 100644
--- a/tools/references/rpki-wiki-to-markdown.py
+++ b/references/rpki-wiki-to-markdown.py
diff --git a/tools/references/schema.sql b/references/schema.sql
index 1515dbb..1515dbb 100644
--- a/tools/references/schema.sql
+++ b/references/schema.sql
diff --git a/tools/references/trac-wiki-to-markdown.rb b/references/trac-wiki-to-markdown.rb
index f7d41ae..f7d41ae 100644
--- a/tools/references/trac-wiki-to-markdown.rb
+++ b/references/trac-wiki-to-markdown.rb
diff --git a/tools/references/trac2down.py b/references/trac2down.py
index c66a201..c66a201 100644
--- a/tools/references/trac2down.py
+++ b/references/trac2down.py
diff --git a/tools/trac2md.py b/trac2md.py
index c022899..c022899 100755
--- a/tools/trac2md.py
+++ b/trac2md.py