Docx Import Library

This library provides a convenient way to import a DOCX file and convert it to HTML. The main functionality is encapsulated in the index method of the provided class.

Installation

Build both containers by running DOCKER_BUILDKIT=1 docker compose build. This produces demosdeutschland/docx-importer:latest and demosdeutschland/docx-importer-nginx:latest, which is what the dplan stack consumes.

Usage

To import a DOCX file and convert it to HTML, follow these steps:

  1. Make a POST request to the /docx/import route.
  2. Include the DOCX file in the request payload using the docxFile parameter.
  3. The method will handle the request and perform the conversion and returns a json Response.

Releasing a tagged version

Releases are cut manually (no CI workflow). To publish e.g. 0.7:

  1. Add the changes under a new ## [0.7] heading in CHANGELOG.md.
  2. Commit and tag (bare MAJOR.MINOR, no v prefix — matches the 0.6 tag): git commit CHANGELOG.md -m "chore: prepare release 0.7" git tag -a 0.7 -m "Release 0.7" git push origin main 0.7
  3. Build, tag, and push both images via ./build.sh 0.7 (prompts before pushing).