Build custom URLs to point to our static files

This commit is contained in:
Frederik Möllers
2025-07-30 02:36:11 +02:00
parent 52b67afd92
commit e259e5e131
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -31,4 +31,10 @@ function compare_bib_entry_by_year_reverse($a, $b)
{ {
return 0 - compare_bib_entry_by_year($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';
}
?> ?>
+1 -1
View File
@@ -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\"" BIBTEXBROWSER="php -c \"php_cli.ini\" -f \"bibtexbrowser.php\""
# DELETEME # DELETEME
rm -r "artifacts" "temp" rm -rf "artifacts" "temp"
# create output directories and download bibtex file # create output directories and download bibtex file
mkdir -p "artifacts/keys" "temp" mkdir -p "artifacts/keys" "temp"
wget -O "temp/zrd.bib" "$BIBTEX_URL" wget -O "temp/zrd.bib" "$BIBTEX_URL"