service to retrieve acdh-ch imprint text as html or markdown.
request the imprint by providing a redmine service id to
https://imprint.acdh.oeaw.ac.at/:service-id
.
example:
curl "https://imprint.acdh.oeaw.ac.at/21966"
by default, the service returns the imprint text as html in english.
the following options can be set via url query string:
format: "html" | "markdown" | "xhtml"
: request the imprint text as either "html", "xhtml" or "markdown". default: "html". example:https://imprint.acdh.oeaw.ac.at/21966/?format=markdown
locale: "de" | "en"
: request the imprint text in either german ("de") or english ("en"). default: "en". example:https://imprint.acdh.oeaw.ac.at/21966/?locale=de
custom text for "copyright notice", "matomo notice", "project nature", "responsible persons", and
"website-aim" can be provided via the "ImprintParams" custom yaml field in the redmine service
issue. note: to use line-breaks in yaml, mark the text block with a "literal block style" indicator |-
.
prerequisites:
set required environment variables in .env
:
cp .env.example .env
run a development server at http://localhost:3000:
pnpm run dev