Skip to content

About

Cookiecutter template for a Static-Site Digital Scholarly Edition

Topics

Resources

Stars

19 stars

Watchers

5 watching

Forks

Repository files navigation

DOI Test and Deploy

DSE-Static-Cookiecutter

Cookiecutter template for a Static site generator powered by TEI/XML files

TL;DR

uvx cookiecutter gh:acdh-oeaw/dse-static-cookiecutter

What is this for

The current repo should ease the process of publishing TEI/XML encoded files as a Static-Site Application using mainly XSLT to generate static HTML files.

Important

DSE-Static-Cookiecutter is developed for digital editions projects run at the ACDH. Therefore some parts of the code (especially the usage imprint service {{cookiecutter.directory_name}}/shellscripts/dl_imprint.sh) won't work properly outside of our institutional context.

Quickstart

Important

DSE-Static-Cookiecutter is tested to work on Linux/Mac. To make it work on Windows you'll need to change some parts of the initial setup.

  • Make sure you have uv as Python package and project manager installed
  • To generate a new dse-static-site project run uvx cookiecutter gh:acdh-oeaw/dse-static-cookiecutter and answer the appearing questions
  • Change into the created directory, have a look at the README.md in this directory and start developing/customizing your great digital editions project.

Features

  • Generate HTML files from your TEI/XML documents using XSLT
  • GitHub Actions workflows are configured to
    • build your application and serve them via GitHub Pages
    • bake your application into a Dockerfile publish it via GitHub's container registry.
  • XSLTs provided by DSE-Static-Cookiecutter are designed in a modular fashion, trying to avoid code duplications
  • Recent version of Bootstrap implemented
  • Opinionated way to organize data/code; but everything can be changed/overwritten/customized
  • Handling of indices for persons, places, organizations, or works is included
  • Search and filterable overview pages of your editions (table of contents) and indices
  • Example code on how to implement a faceted full-text search powered by Typesense
  • Geovisualization of places via leaflet.js powered maps; contributed by @cfhaak and @kisram
  • Ships with an Oxygen XML Editor project .xpr including some transformation scenarios for local development/testing of TEI to HTML transformations.

Full Text Search

As mentioned above, DSE-Static-Cookiecutter implements a faceted full text search with Typesense. This breaks of course the static site paradigme but as ACDH we are confident to keep our own typesense instance up and running for a long time. If you don't have your own typesense instance you could have a look at https://cloud.typesense.org/.

Alternatively you could rewrite the XSLT's to produce valid XHTML files and implement a powerful full text search using the awesome staticSearch.

Previouse versions of DSE-Static-Cookiecutter shipped with an option to implement staticSearch but this had to be dropped due to limited maintainance resources.

Plug-ins/Customization

Projects using DSE-Static-Cookiecutter (by start date)

2021

2022

2023

2024

2025

2026

LICENSE

dse-static-cookiecutter is licensed under the MIT License. See the LICENSE file for details. Be aware that this does not apply to third party libraries included in this project as Saxon or CSS/JS libraries included in vendor.

About

Cookiecutter template for a Static-Site Digital Scholarly Edition

Topics

Resources

Stars

19 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages