Installation & Setup
Adaptadocx can run either inside a Docker container (recommended) or on a locally configured toolchain.
System Requirements
Docker Installation (recommended)
-
Clone the repository
git clone https://github.com/mikhail-marutyan/adaptadocx.git cd adaptadocx
-
Build the image
docker build -t adaptadocx .
-
Generate the full documentation set
# Local branch only (default) docker run --rm -v "$(pwd)":/work adaptadocx make build-all # All tags (multiversion) docker run --rm -v "$(pwd)":/work adaptadocx make build-all BUILD_SCOPE=tags
Local Installation
-
Install Node.js dependencies
npm ci --no-audit --no-fund
-
Install Ruby + Asciidoctor PDF
# Debian / Ubuntu sudo apt-get update sudo apt-get install -y ruby ruby-dev gem install asciidoctor-pdf
-
Install QA tools and Graphviz
# Vale wget -qO- https://github.com/errata-ai/vale/releases/download/v2.29.4/vale_2.29.4_Linux_64-bit.tar.gz \ | tar -xz && sudo mv vale /usr/local/bin/ # htmltest wget -qO- https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz \ | tar -xz && sudo mv htmltest /usr/local/bin/ # Shellcheck sudo apt-get install -y shellcheck # Graphviz sudo apt-get install -y graphviz # Linux brew install graphviz # macOS
-
Build all formats
# Local branch only (default) make build-all # All tags (multiversion) make build-all BUILD_SCOPE=tags
-
Run quality checks
make test
Output locations
-
HTML —
build/site/<locale>/<version>/
-
PDF —
build/pdf/<locale>/<version>/adaptadocx-<locale>.pdf
-
DOCX —
build/docx/<locale>/<version>/adaptadocx-<locale>.docx
-
Published downloads —
site/<locale>/<version>/_downloads/
Troubleshooting
Docker
-
Build permission error — confirm the Docker daemon is running and your user is in the docker group.
-
Volume write error — check file-system permissions on the mounted path.