ud3tn/doc
Maximilian Nitsch b40d946767 nix: Remove default app from flake
Not required, to execute ud3tn by add the application name to the
`nix run` command.

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2026-01-08 16:01:47 +01:00
..
css Move file to image-material directory, adjust CSS 2024-11-15 09:52:57 +01:00
development doc: Link Protobuf docs instead of .proto files 2024-12-05 16:58:01 +01:00
image-material doc: Add white background with some spacing to SVG figures 2024-11-16 12:01:22 +01:00
references docs: Add manpage to mkdocs 2025-06-13 17:55:24 +02:00
tools doc: Add page documenting Link+Contact config. and CLA addresses 2025-07-24 09:06:50 +02:00
usage nix: Remove default app from flake 2026-01-08 16:01:47 +01:00
aap20.md doc: Link Protobuf docs instead of .proto files 2024-12-05 16:58:01 +01:00
architecture-overview.md doc: Link Protobuf docs instead of .proto files 2024-12-05 16:58:01 +01:00
Bundle-in-Bundle Encapsulation_(BIBE).md Use BIBE AR type code 64443 by default 2025-09-05 10:57:59 +02:00
contacts_data_format.md doc: Add page documenting Link+Contact config. and CLA addresses 2025-07-24 09:06:50 +02:00
index.md doc: Fix links to CHANGELOG 2025-07-24 15:38:55 +02:00
perf_events.md Add existing documentation material to MkDocs 2024-11-12 11:33:24 +01:00
posix_quick_start_guide.md doc: Add page documenting Link+Contact config. and CLA addresses 2025-07-24 09:06:50 +02:00
python-venv.md Add existing documentation material to MkDocs 2024-11-12 11:33:24 +01:00
README.md docs: Add manpage to mkdocs 2025-06-13 17:55:24 +02:00
sqlite-storage.md doc: Link Protobuf docs instead of .proto files 2024-12-05 16:58:01 +01:00
testing.md doc/testing: Document that now we need -r in integration tests 2025-06-06 09:01:41 +02:00
ud3tn.1 doc: Update date in Manpage 2025-09-26 11:23:21 +02:00
ud3tn_aap.md Minor changes to URLs and visuals 2024-11-15 12:20:56 +01:00

Documentation

MkDocs

An HTML version of the μD3TN documentation is created via MkDocs. All files stored in the MkDocs directory are taken into account. The MkDocs configuration can be changed in the mkdocs.yaml file. To add further pages to the navigation, they must be added to the nav section.

Prepare

  • w/o nix

    • Install pandoc

    • Install protoc

    • Install protoc-gen-doc via your package manager, go install or another preferred method

      To install it as an unprivileged user in a subdirectory of the work tree:

      GOBIN=$(pwd)/.gobin/ go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest
      # Then, run all protoc commands as follows:
      PATH=$(pwd)/.gobin/:$PATH protoc ...
      
    • Install mkdocs and relevant Python dependencies (preferably use a virtual environment)

      pip install -U mkdocs
      pip install $(mkdocs get-deps)
      
  • w/ nix (see also the µD3TN documentation on it)

    nix develop '.?submodules=1'
    

Develop

# create markdown docs from manpage
pandoc \
  --from man \
  --to gfm+definition_lists \
  --shift-heading-level-by 1 \
  --output doc/references/manpage.md \
  doc/ud3tn.1
# Create markdown docs from protobuf
protoc \
  --doc_out=doc/references/protobuf \
  --doc_opt=markdown,index.md \
  components/aap2/aap2.proto \
  components/agents/storage/storage_agent.proto
# Run dev-server for live preview of HTML documents (without protobuf)
mkdocs serve

Build

# w/o nix
make doc

# w/ nix
nix build .#mkdocs-html

Deploy

When changes are made to the master branch, the latest version of the documentation is automatically built and published at https://d3tn.gitlab.io/ud3tn.

Man Page

There exists also a man page for μD3TN, which can be viewed with

man --local-file ud3tn.1