Permalink
Browse files

Add registrar back to the xmpp.org website

This generates the registrar files from the registrar repo,
puts the output into content/registrar, and finally runs
Pelican. Pelican will simply copy the .xml files through
to the output and format the .html files using the page
theme.
  • Loading branch information...
1 parent 5742d20 commit 37ac50c04bd9a268211bec1efd679ceecf8e7030 @tfar tfar committed Jul 28, 2016
Showing with 16 additions and 1 deletion.
  1. +14 −0 buildCompleteWebsite.sh
  2. +2 −1 pelicanconf.py
@@ -48,12 +48,26 @@ if [ ! -d "texml-2.0.2" ]; then
python setup.py build
cd ..
fi
+if [ -d "registrar" ]; then
+ cd registrar
+ git pull
+ cd ..
+else
+ git clone https://github.com/xsf/registrar
+fi
cd ..
export PYTHONPATH="$PWD/build/texml-2.0.2/build/lib.linux-x86_64-2.7:$PYTHONPATH"
$PWD/build/xsf-tools/build.py -d -x $PWD/build/xeps -o $PWD/content/extensions --imagespath $PWD/build/xeps/resources
cp $PWD/build/xeps/prettify.css $PWD/content/extensions
cp $PWD/build/xeps/prettify.js $PWD/content/extensions
cp $PWD/build/xeps/xmpp.css $PWD/content/extensions
+
+# Build registry and put it into content/registrar so Pelican can process it
+cd $PWD/build/registrar
+mkdir -p $BASEDIR/content/registrar
+./all.sh $BASEDIR/content/registrar
+cd $BASEDIR
+
$PELICAN $INPUTDIR -o $OUTPUTDIR -s $PUBLISHCONF $PELICANOPTS
sed -e '/<!--REPLACE_XEPLIST_TABLE_HERE-->/ {' -e 'r content/extensions/xeplist.txt' -e 'd' -e '}' -i output/extensions/index.html
View
@@ -18,7 +18,8 @@
('is_blog', 'false')
]
-STATIC_PATHS = [ 'CNAME', 'images', 'scripts', 'extensions', 'icons', 'icons/favicon.ico', 'robots.txt' ]
+STATIC_PATHS = [ 'CNAME', 'images', 'scripts', 'extensions', 'icons', 'icons/favicon.ico', 'robots.txt', 'registrar']
+PAGE_PATHS = ['registrar']
EXTRA_PATH_METADATA = {
'icons/favicon.ico': { 'path': 'favicon.ico' }
}

0 comments on commit 37ac50c

Please sign in to comment.