This is the documentation repository for APX (AUTOSAR Port eXchange), built using Sphinx.
This project is a work in progress.
Building the documentation (including PlantUML diagrams) requires:
- Python 3.10+
- Java Runtime Environment (JRE) (Java 17 or 21 recommended)
- Graphviz (used by PlantUML for diagram rendering)
- PlantUML JAR and the
PLANTUML_JARenvironment variable
# Install Java and Graphviz
sudo apt update
sudo apt install -y openjdk-21-jre-headless graphviz
# Download PlantUML jar (e.g. to ~/plantuml/plantuml.jar)
mkdir -p ~/plantuml
curl -L -o ~/plantuml/plantuml.jar https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar
# Set the environment variable in your shell profile
echo 'export PLANTUML_JAR="$HOME/plantuml/plantuml.jar"' >> ~/.bashrc
source ~/.bashrc- Install Java (e.g. from Adoptium Temurin).
- Install Graphviz (e.g. via
winget install Graphviz.Graphvizor installer) and ensuredot.exeis in yourPATH. - Download
plantuml.jarfrom PlantUML Releases. - Set the
PLANTUML_JARuser environment variable to the absolute path ofplantuml.jar.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txtpython -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements-dev.txtNote: For CI/deployment environments that only build the static site,
requirements.txtcontains the minimal production build dependencies without development tooling likesphinx-autobuild.
Build the HTML documentation once:
python -m sphinx -b html . _build/htmlTo rebuild automatically when documentation files change and preview the site with live reload, run:
sphinx-autobuild . _build/htmlThe preview server is available at http://127.0.0.1:8000 by default. Stop it with Ctrl+C.