Skip to content

Commit 04851be

Browse files
committed
chore: migrate dependencies to local node_modules and secure deployment
1 parent 81ccf5e commit 04851be

117 files changed

Lines changed: 37459 additions & 1185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

INDEX_MAINTENANCE.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,25 @@
22

33
This project includes tools to automatically generate and update the `index.html` file, which serves as a categorized table of contents for all HTML documentation in the repository.
44

5-
## Files
5+
## How It Works
66

7-
- `generate_index.py`: Python script that scans directories and generates `index.html`.
8-
- `update_index.sh`: Shell script wrapper for easy execution.
9-
- `public/index.html`: The generated index file (inside the publish directory).
7+
The index maintenance system consists of two main scripts:
8+
9+
1. **`generate_index.py`**: A Python script that:
10+
- Scans the directory structure.
11+
- Extracts titles from HTML files.
12+
- Copies HTML files to a clean `public/` directory.
13+
- **Vendors Dependencies**: Copies required libraries (React, Babel, PrismJS, etc.) from `node_modules` to `public/vendor`.
14+
- **Rewrites Links**: Updates HTML files to point to local `/vendor/...` assets instead of CDNs.
15+
- Generates a categorised `index.html` with a tabbed interface.
16+
17+
## Dependency Management
18+
19+
This project uses `bun` to manage dependencies.
20+
21+
- **Install Dependencies**: `bun install`
22+
- **Add New Library**: `bun add <library>`
23+
- **Vendor Logic**: If you add a new library, update `generate_index.py` to copy it to `public/vendor` and add a rewrite rule.
1024

1125
## Manual Update
1226

bun.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)