# snuthakki21/copilot-docs architecture

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

- Interactive diagram: https://gitdiagram.com/snuthakki21/copilot-docs
- Repository: https://github.com/snuthakki21/copilot-docs

## Overview

This repository provides document-authoring generators: a README-documented Word generator and a PowerPoint generator visible in the sampled source. The main workflow is to edit configuration and content, run the relevant script, and produce an office document. The Word generator’s documented output flow is clear; the PowerPoint excerpt shows its configuration and slide-building helpers but omits its final assembly and write logic, so that output link is documented only by the script’s usage comments.

Main entry points: [`docgen.js`](https://github.com/snuthakki21/copilot-docs/blob/main/docgen.js) (Word generator), [`ppt/deckgen.js`](https://github.com/snuthakki21/copilot-docs/blob/main/ppt/deckgen.js) (Slide generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_word["Word Generator"]
  node_word_script["Word generator<br/>[docgen.js]"]
  node_word_helpers["Document helpers<br/>[docgen.js]"]
  node_docx_lib["docx package"]
  node_word_file["Word output"]
end

subgraph group_slides["Slide Generator"]
  node_ppt_script["Slide generator<br/>[deckgen.js]"]
  node_slide_helpers["Slide builders<br/>[deckgen.js]"]
  node_pptx_lib["pptxgenjs package"]
  node_ppt_file["PowerPoint output"]
end

node_author(("Document author"))

node_author -->|"edits and runs"| node_word_script
node_word_script -->|"builds content with"| node_word_helpers
node_word_script -->|"uses"| node_docx_lib
node_word_script -->|"writes"| node_word_file
node_author -->|"edits and runs"| node_ppt_script
node_ppt_script -->|"builds slides with"| node_slide_helpers
node_ppt_script -->|"uses"| node_pptx_lib
node_ppt_script -.->|"generates"| node_ppt_file

click node_word_script "https://github.com/snuthakki21/copilot-docs/blob/main/docgen.js"
click node_word_helpers "https://github.com/snuthakki21/copilot-docs/blob/main/docgen.js"
click node_ppt_script "https://github.com/snuthakki21/copilot-docs/blob/main/ppt/deckgen.js"
click node_slide_helpers "https://github.com/snuthakki21/copilot-docs/blob/main/ppt/deckgen.js"

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_word_script,node_word_helpers,node_docx_lib,node_word_file toneBlue
class node_ppt_script,node_slide_helpers,node_pptx_lib,node_ppt_file toneAmber
class node_author toneIndigo
```

## Components

### Word Generator

- [Word generator](https://github.com/snuthakki21/copilot-docs/blob/main/docgen.js): `docgen.js`
- [Document helpers](https://github.com/snuthakki21/copilot-docs/blob/main/docgen.js): `docgen.js`
- **docx package**
- **Word output**

### Slide Generator

- [Slide generator](https://github.com/snuthakki21/copilot-docs/blob/main/ppt/deckgen.js): `ppt/deckgen.js`
- [Slide builders](https://github.com/snuthakki21/copilot-docs/blob/main/ppt/deckgen.js): `ppt/deckgen.js`
- **pptxgenjs package**
- **PowerPoint output**

### Other components

- **Document author**

## Connections

- Document author → Word generator: edits and runs (evidence: `README.md`)
- Word generator → Document helpers: builds content with (evidence: `docgen.js`)
- Word generator → docx package: uses (evidence: `docgen.js`)
- Word generator → Word output: writes (evidence: `README.md`)
- Document author → Slide generator: edits and runs (evidence: `ppt/deckgen.js`)
- Slide generator → Slide builders: builds slides with (evidence: `ppt/deckgen.js`)
- Slide generator → pptxgenjs package: uses (evidence: `ppt/deckgen.js`)
- Slide generator → PowerPoint output: generates
