Skip to main content

jEAP Doc Service

Source on GitHub

The jEAP Doc Service receives the documentation of systems, components and libraries, stores it on S3, generates the documentation site and serves it to the browser.

It is the central piece of the hybrid documentation approach: teams write their documentation as Markdown next to their code, their build pipelines upload it, and the doc service combines it with the architecture model of the jEAP Arch Repo Service into one generated site.

Documentation​

TopicContents
Getting startedCreating a doc service instance and running it locally
ArchitectureThe ports-and-adapters layout, the modules and the rules they follow
ConfigurationThe configuration properties, with their defaults
APIThe REST API and its OpenAPI description
UploadsWhat happens to an uploaded bundle, the state of an upload, and what a retry does
The documentation a team writesWhere an uploaded page lands, what the service adds to it, and a subject the architecture model does not know
What an upload is validated againstThe structural rules an upload is checked against, per template, and the finding codes
SecurityThe semantic roles and the rule that a system may only change its own documentation
GenerationHow the documentation site is generated, what triggers a build and how it is published
Reaction graphsPublished snapshots, graph viewers, the Explorer, search and shared links
Architecture importWhat is replicated from the architecture repository, and what a partial run leaves
Importing the Governance ServiceThe webhook, the safety-net schedule, and what is stored
The governance siteIts configuration, its pages, the highlighting and the score history chart
SearchHow the documentation is indexed and searched, and what a missing search means
The scheduled jobsEvery job the service runs on its own, its schedule, its lock and which may overlap
Structure templatesThe template plugin point, the arc42 chapters and how to add a methodology
The site imageHow to build a doc service image that can run the site generator
ObservabilityThe meters of the uploads and the builds, and what to alarm on
Operating the bucketWhat the bucket has to expire, and what it must never expire

Building it​

./mvnw verify needs Docker for the integration tests, Node 24 for the documentation site the service generates, and Chrome for the browser tests that drive that site - all three are preconditions of the build rather than something it works around. See Getting started.

Structure templates​

Documentation is organised by a structure template. It says which chapters exist and where a page is served. The doc service ships arc42 as jeap-doc-template-arc42. It generates the system documentation from the architecture model into the arc42 sections, and the documentation a team writes is filed into the same ones. A further methodology is a further module, and nothing outside it names a template.