# avaneesh12012/janko-docs architecture

> Architecture diagram of the GitHub repository avaneesh12012/janko-docs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/avaneesh12012/janko-docs
- Repository: https://github.com/avaneesh12012/janko-docs

## Overview

#### Purpose and Scope
This repository is the documentation and error-reference content for the Janko compiler ecosystem. Its durable product is a set of CLI-parsable error guides; the README also describes a documentation website, but its referenced `sites/` source files are not present in the supplied tree.

#### Primary Entry Points
- `README.md` defines repository intent, expected documentation-site behavior, and the error-guide convention.
- `docs/` is the effective content entry point for consumers that resolve compiler error codes to text guides.
- `assets/asset.md` and the `assets/` directory support documentation assets; the README references a banner image not visible in the supplied tree.

#### Error Reference Corpus
Each compiler diagnostic is represented as a standalone text document named by error code:
- `docs/E0001.txt`
- `docs/E0002.txt`
- `docs/E0010.txt`

This naming scheme is the main contract between Janko compiler/CLI diagnostics and this repository. A consumer can map an emitted code such as `E0001` directly to `docs/E0001.txt` without requiring an index, database, or application runtime.

#### Error-Code Organization
The corpus currently uses two storage patterns:
- Early codes live directly under `docs/`, such as `docs/E0003.txt`.
- Later codes are grouped in a range directory, such as `docs/E0011-E0020/E0011.txt` and `docs/E0011-E0020/E0012.txt`.

Any CLI or website content resolver must account for both layouts, either through explicit lookup rules, a generated index, or a recursive file search. This directory boundary is architecturally significant because it prevents assuming a flat error-code namespace on disk.

#### Consumer and Content Flow
The intended flow is:
1. The native Janko developer tool emits or receives an error code.
2. A documentation resolver locates the corresponding file under `docs/`.
3. Raw text is presented directly by the CLI and, per `README.md`, may also feed a web terminal/documentation interface.

The repository itself contains content rather than compiler implementation code. There is no visible build pipeline, server, package manifest, native source, or deployed runtime in the supplied tree.

#### Website Boundary
`README.md` describes a static interactive site with landing-page HTML, CSS, and JavaScript for tabs, search, and terminal simulation. Those expected paths are not present in this checkout. Therefore, web UI behavior should be treated as an external or omitted layer, while `docs/` remains the shared source-of-truth boundary between CLI and any future site implementation.

#### Documentation Governance
`LICENSE` provides the repository license boundary. Adding or revising diagnostics should preserve the code-to-filename contract and existing range-directory conventions. The numbered files under `docs/` are the architecture-defining artifacts; changes to their identifiers or locations can break external compiler/CLI resolution.

Main entry points: [`docs`](https://github.com/avaneesh12012/janko-docs/tree/main/docs) (Error guide corpus), [`docs/E0001.txt`](https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0001.txt) (Early flat guides), [`docs/E0011-E0020`](https://github.com/avaneesh12012/janko-docs/tree/main/docs/E0011-E0020) (E0011–E0020 range), [`README.md`](https://github.com/avaneesh12012/janko-docs/blob/main/README.md) (Repository guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Reference Content"]
  node_docs["Error guide corpus<br/>documentation directory"]
  node_flat_guides["Early flat guides<br/>error-guide files<br/>[E0001.txt]"]
  node_e0002["E0002 guide<br/>error guide<br/>[E0002.txt]"]
  node_e0003["E0003 guide<br/>error guide<br/>[E0003.txt]"]
  node_range_directory["E0011–E0020 range<br/>error-guide directory"]
  node_e0011["E0011 guide<br/>error guide<br/>[E0011.txt]"]
  node_e0012["E0012 guide<br/>error guide<br/>[E0012.txt]"]
  node_assets["Documentation assets<br/>asset directory"]
  node_asset_note["Asset guide<br/>asset documentation<br/>[asset.md]"]
end

subgraph group_consumers["External Consumers"]
  node_native_tool{{"Janko developer tool<br/>external CLI"}}
  node_resolver{{"Error guide resolver<br/>external lookup"}}
  node_cli_output["CLI error guide output<br/>terminal output"]
  node_website["Documentation website<br/>external web UI"]
end

node_readme["Repository guide<br/>documentation<br/>[README.md]"]
node_license["License"]

node_readme -->|"defines convention"| node_docs
node_readme -.->|"describes"| node_website
node_native_tool -->|"error code"| node_resolver
node_resolver -->|"locates guide"| node_docs
node_resolver -->|"direct lookup"| node_flat_guides
node_resolver -->|"range lookup"| node_range_directory
node_flat_guides -.->|"same flat layout"| node_e0002
node_flat_guides -.->|"same flat layout"| node_e0003
node_range_directory -->|"contains"| node_e0011
node_range_directory -->|"contains"| node_e0012
node_resolver -->|"raw guide text"| node_cli_output
node_docs -.->|"shared content source"| node_website
node_assets -->|"contains"| node_asset_note
node_license -.->|"governs"| node_docs

click node_readme "https://github.com/avaneesh12012/janko-docs/blob/main/README.md"
click node_license "https://github.com/avaneesh12012/janko-docs/tree/main/LICENSE"
click node_docs "https://github.com/avaneesh12012/janko-docs/tree/main/docs"
click node_flat_guides "https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0001.txt"
click node_e0002 "https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0002.txt"
click node_e0003 "https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0003.txt"
click node_range_directory "https://github.com/avaneesh12012/janko-docs/tree/main/docs/E0011-E0020"
click node_e0011 "https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0011-E0020/E0011.txt"
click node_e0012 "https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0011-E0020/E0012.txt"
click node_assets "https://github.com/avaneesh12012/janko-docs/tree/main/assets"
click node_asset_note "https://github.com/avaneesh12012/janko-docs/blob/main/assets/asset.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_docs,node_flat_guides,node_e0002,node_e0003,node_range_directory,node_e0011,node_e0012,node_assets,node_asset_note toneBlue
class node_native_tool,node_resolver,node_cli_output,node_website toneAmber
class node_readme,node_license toneNeutral
```

## Components

### Reference Content

Versioned error-guide corpus and supporting assets.

- [Error guide corpus](https://github.com/avaneesh12012/janko-docs/tree/main/docs): documentation directory · Source of truth for code-to-guide resolution. · `docs`
- [Early flat guides](https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0001.txt): error-guide files · Directly stored error-code documents. · `docs/E0001.txt`
- [E0002 guide](https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0002.txt): error guide · `docs/E0002.txt`
- [E0003 guide](https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0003.txt): error guide · `docs/E0003.txt`
- [E0011–E0020 range](https://github.com/avaneesh12012/janko-docs/tree/main/docs/E0011-E0020): error-guide directory · Later codes are grouped by range. · `docs/E0011-E0020`
- [E0011 guide](https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0011-E0020/E0011.txt): error guide · `docs/E0011-E0020/E0011.txt`
- [E0012 guide](https://github.com/avaneesh12012/janko-docs/blob/main/docs/E0011-E0020/E0012.txt): error guide · `docs/E0011-E0020/E0012.txt`
- [Documentation assets](https://github.com/avaneesh12012/janko-docs/tree/main/assets): asset directory · Supports documentation presentation. · `assets`
- [Asset guide](https://github.com/avaneesh12012/janko-docs/blob/main/assets/asset.md): asset documentation · `assets/asset.md`

### External Consumers

Compiler and web layers are not present in this checkout.

- **Janko developer tool**: external CLI · Emits or receives compiler diagnostic codes.
- **Error guide resolver**: external lookup · Must support flat and range-directory layouts.
- **CLI error guide output**: terminal output · Presents resolved raw guide text.
- **Documentation website**: external web UI · Referenced by the README but absent from this checkout.

### Other components

- [Repository guide](https://github.com/avaneesh12012/janko-docs/blob/main/README.md): documentation · Defines intent, site expectations, and error-guide conventions. · `README.md`
- [License](https://github.com/avaneesh12012/janko-docs/tree/main/LICENSE): license · Governs repository content. · `LICENSE`

## Connections

- Repository guide → Error guide corpus: defines convention
- Repository guide → Documentation website: describes
- Janko developer tool → Error guide resolver: error code
- Error guide resolver → Error guide corpus: locates guide
- Error guide resolver → Early flat guides: direct lookup
- Error guide resolver → E0011–E0020 range: range lookup
- Early flat guides → E0002 guide: same flat layout
- Early flat guides → E0003 guide: same flat layout
- E0011–E0020 range → E0011 guide: contains
- E0011–E0020 range → E0012 guide: contains
- Error guide resolver → CLI error guide output: raw guide text
- Error guide corpus → Documentation website: shared content source
- Documentation assets → Asset guide: contains
- License → Error guide corpus: governs
