This is a proof-of-concept, experimental, WIP, draft (etc etc) docker image for running the TEI Stylesheets. There is little guarantee (or even expectation) that the below will work at the moment.
# First get the stuff from GitHub package registry (not yet in DockerHub)
docker pull ghcr.io/joeytakeda/docker-tei-stylesheets:main
# Now run this, mounting your current directory to the teic_home directory
docker run --rm -v `pwd`:/tei ghcr.io/joeytakeda/docker-tei-stylesheets:main $COMMAND $INPUT [$OUTPUT]
Example:
# Convert a docx to TEI
docker run --rm -v `pwd`:/tei ghcr.io/joeytakeda/docker-tei-stylesheets:main docxtotei myTestFile.docx
Note that this could be aliased (something like):
# ~/.bash_profile
alias transformtei="docker run --rm -v `pwd`:/tei ghcr.io/joeytakeda/docker-tei-stylesheets:main"
# Wherever your files are
transformtei docxtotei myTestFile.docx(See .github/workflows/test.yaml for an example).
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: TEI Stylesheet Action Example
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4
# Now convert your ODD to RelaxNG
- name: Convert ODD to RNG
uses: joeytakeda/docker-tei-stylesheets # Runs this action
with:
command: "teitorng --odd rel/path/to/ODD.odd" # yields rel/path/to/ODD.rng
- name: "Convert TEI to HTML"
uses: joeytakeda/docker-tei-stylesheets # Runs this action
with:
command: "teitohtml poem.xml my/website/poem.html"