Skip to content

opensiddur/docker-tei-stylesheets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental TEI Stylesheets Docker Image

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.

Usage

Using Docker

# 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

GitHub Action

(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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 98.0%
  • Shell 2.0%