# primer3-org/primer3docs architecture

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

- Interactive diagram: https://gitdiagram.com/primer3-org/primer3docs
- Repository: https://github.com/primer3-org/primer3docs

## Overview

Primer3Docs is a Perl-based documentation generator: maintainers provide XML content, run the generator, and receive HTML and text documentation. The README describes command-line flags, input/output tags, and text blocks as documentation inputs, including automatic inclusion of new flags and tags. The tree also contains Primer3Plus tag data and a tag-checking script; their detailed behavior and relationships are not documented in the available evidence.

Main entry points: [`create_tag_files_and_docs.pl`](https://github.com/primer3-org/primer3docs/blob/main/create_tag_files_and_docs.pl) (Documentation generator), [`primer3_command_line.xml`](https://github.com/primer3-org/primer3docs/blob/main/primer3_command_line.xml) (Command-line flags), [`primer3_input_tags.xml`](https://github.com/primer3-org/primer3docs/blob/main/primer3_input_tags.xml) (Input tags), [`primer3_output_tags.xml`](https://github.com/primer3-org/primer3docs/blob/main/primer3_output_tags.xml) (Output tags)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Documentation generation"]
  node_generator["Documentation generator"]
  node_tag_checker["Tag checker"]
  node_generated_docs["HTML and text docs"]
end

subgraph group_content["XML content"]
  node_command_flags["Command-line flags"]
  node_input_tags["Input tags"]
  node_output_tags["Output tags"]
  node_text_blocks["Text blocks"]
  node_primer3plus_tags["Primer3Plus tags"]
end

node_maintainer(("Maintainer"))

node_maintainer -->|"runs"| node_generator
node_generator -->|"reads"| node_command_flags
node_generator -->|"reads"| node_input_tags
node_generator -->|"reads"| node_output_tags
node_generator -->|"reads"| node_text_blocks
node_generator -->|"generates"| node_generated_docs

click node_generator "https://github.com/primer3-org/primer3docs/blob/main/create_tag_files_and_docs.pl"
click node_tag_checker "https://github.com/primer3-org/primer3docs/blob/main/check_tags_and_doc.pl"
click node_command_flags "https://github.com/primer3-org/primer3docs/blob/main/primer3_command_line.xml"
click node_input_tags "https://github.com/primer3-org/primer3docs/blob/main/primer3_input_tags.xml"
click node_output_tags "https://github.com/primer3-org/primer3docs/blob/main/primer3_output_tags.xml"
click node_text_blocks "https://github.com/primer3-org/primer3docs/blob/main/primer3_textblocks.xml"
click node_primer3plus_tags "https://github.com/primer3-org/primer3docs/blob/main/primer3plus_tags.xml"

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_generator,node_tag_checker,node_generated_docs toneBlue
class node_command_flags,node_input_tags,node_output_tags,node_text_blocks,node_primer3plus_tags toneAmber
class node_maintainer toneIndigo
```

## Components

### Documentation generation

- [Documentation generator](https://github.com/primer3-org/primer3docs/blob/main/create_tag_files_and_docs.pl): `create_tag_files_and_docs.pl`
- [Tag checker](https://github.com/primer3-org/primer3docs/blob/main/check_tags_and_doc.pl): `check_tags_and_doc.pl`
- **HTML and text docs**

### XML content

- [Command-line flags](https://github.com/primer3-org/primer3docs/blob/main/primer3_command_line.xml): `primer3_command_line.xml`
- [Input tags](https://github.com/primer3-org/primer3docs/blob/main/primer3_input_tags.xml): `primer3_input_tags.xml`
- [Output tags](https://github.com/primer3-org/primer3docs/blob/main/primer3_output_tags.xml): `primer3_output_tags.xml`
- [Text blocks](https://github.com/primer3-org/primer3docs/blob/main/primer3_textblocks.xml): `primer3_textblocks.xml`
- [Primer3Plus tags](https://github.com/primer3-org/primer3docs/blob/main/primer3plus_tags.xml): `primer3plus_tags.xml`

### Other components

- **Maintainer**

## Connections

- Maintainer → Documentation generator: runs (evidence: `README.md`)
- Documentation generator → Command-line flags: reads (evidence: `README.md`)
- Documentation generator → Input tags: reads (evidence: `README.md`)
- Documentation generator → Output tags: reads (evidence: `README.md`)
- Documentation generator → Text blocks: reads (evidence: `README.md`)
- Documentation generator → HTML and text docs: generates (evidence: `README.md`)
