klok-project-documentation-v1
Property Value Repository klok datamodel public klok project documentation v1 Tenant domain klok public Version 1 0 0 build 261027110002 Built from 8ed1d654 pipeline Schema schema definition xsd klok project documentation v1 xsd Namespace dev klok klok public Root element KlokProjectDocumentation_v1 type KlokProjectDocumentationV1 Types 16 complex 8 simple 8 enumerations Java class dev klok klok datamodel public_ klok_project_documentation_v1 KlokProjectDocumentationV1 Artifact dev klok klok datamodel klok project documentation v1 1 0 0 build 261027110002 Used by the projects that use it
This datamodel captures everything the documentation generation needs about one Klok project build packaged into a single self contained message Its purpose is to decouple documentation generation from the source code repository by including all necessary contextroutes solutions source references configurations and documentation fileswithin the payload itself the receiving services do not require direct access to the project s Git server This design allows a project hosted on any Git platform whether internal or foreign to be documented in the same manner The payload is primarily produced by the Klok Gradle plugin during a build The plugin scans the project s sources and dependencies gathers data from the framework and datamodel jars and collects files from the project s folder For projects without Gradle the klok command line interface fills a reduced payload based solely on the folder Once assembled these producers publish the message to a specific topic on the Klok broker within the documented repository s own tenant Two main consumers process this message to generate and update documentation artifacts KlokDocumentationEgress a route running in the integration layer consumes the message from the broker to build and publish the project s documentation pages to docs klok dev Separately the Klok Gradle plugin can post the same payload directly to klok dev where it is used to build nodes in the integration context graph These consumers reconstruct the documentation check solution registries and map integration contexts entirely from the information contained in the message Structurally the model is divided into an envelope and a payload The envelope follows the CloudEvents specification providing standard metadata such as and The field holds the actual documentation content which is organized into several key parts Metadata about the repository including tenant domain environment and commit hash and Definitions of the integration routes and the business solutions they belong to with routes referencing source code by qualified name rather than repeating it A centralized map of every source file including project classes and jar dependencies keyed by their qualified name The contents of the project s folder with hash values for each file to allow consumers to detect changes without a Git diff and Application properties with sensitive values masked alongside additional documents like OpenAPI specifications or READMEs A reference mechanism for large payloads if the message exceeds 3 MiB the bulk data is stored in object storage and the message contains only a reference URI klok docs klok docs persistent <tenant> _<env> common KlokProjectDocumentationV1_prepared id source type data project routes solutions sources klokDocs klok docs configKeys attachments claimCheck
Type Description KlokProjectDocumentationV1 KlokProjectDocumentationPayloadType Everything the documentation generation needs KlokProjectDocType KlokSolutionDocType The integration solution the routes of this project belong to KlokRouteDocType One Klok route one class extending a dev klok framework patterns base class KlokSourceFileType One source file stored once for the whole payload and referenced by qualifiedName KlokDatamodelDocType A datamodel the project defines or uses with its schema and generated class when available KlokDocsFileType One file from the project s klok docs folder KlokConfigKeyType A key from application properties KlokAttachmentType A file outside klok docs that the documentation needs openapi document README XSD or Avro schema KlokClaimCheckRefType KlokComponentDocType Added 2026 09 29 KlokDatamodelUseType Added 2026 09 30 KlokRelatedTypeDocType KlokMcpToolDocType Added 2026 10 27 KlokMcpToolArgumentDocType Added 2026 10 27
Where this documentation comes from
This site is written by KlokDocumentationEgress from the project s code its hand written folder and the tenant s documentation generation settings on every pipeline of Nobody edits it by hand To change Edit Hand written pages their order and where a generated section appears in them klok docs in klok datamodel public klok project documentation v1 What is generated and how chapters sections prompts languages model klok dev Tenant Administration Documentation generation klok docs main klok datamodel public klok project documentation v1