Browse Source

Build custom URLs to point to our static files

master
Frederik Möllers 3 days ago
parent
commit
e259e5e131
  1. 6
      bibtexbrowser.local.php
  2. 2
      makehtml.sh

6
bibtexbrowser.local.php

@ -31,4 +31,10 @@ function compare_bib_entry_by_year_reverse($a, $b)
{
return 0 - compare_bib_entry_by_year($a, $b);
}
// A custom URL builder for the static files we create
define('BIBTEXBROWSER_URL_BUILDER', 'url_builder_static');
function url_builder_static($bibentry) {
return BIBTEXBROWSER_URL.'keys/'.$bibentry->getKey().'.html';
}
?>

2
makehtml.sh

@ -6,7 +6,7 @@ BIBTEX_URL="https://cloud.hiz-saarland.de/public.php/dav/files/Yj8FtZsTS9TkFWG"
BIBTEXBROWSER="php -c \"php_cli.ini\" -f \"bibtexbrowser.php\""
# DELETEME
rm -r "artifacts" "temp"
rm -rf "artifacts" "temp"
# create output directories and download bibtex file
mkdir -p "artifacts/keys" "temp"
wget -O "temp/zrd.bib" "$BIBTEX_URL"

Loading…
Cancel
Save