# Mladen's archive

[Browse the archive](https://archive.mladen.dev/). The root index searches filenames, paths, collections and bookmarks. Downloads retain their original URLs, including [Pingpane](https://archive.mladen.dev/pingpane.zip). The [original hub](hub.html) and [machine-readable catalog](catalog.json) are also available.

## Add a file or link

1. Place a file at its intended public path. New files appear under **Other files** until assigned to a collection. Files inside a listed directory inherit its collection.
2. To organize an entry, edit a Markdown file in [collections](collections/). Use a list link for a file, a folder ending in a slash, or an external URL. A descriptive title gives a file a place in the curated list.
3. Run `python3 _archive/build.py` and commit the resulting `index.html` and `catalog.json` with the content change. CI checks that the published index matches the source.

For example, [the projects collection](collections/projects.md) can contain these entries:

```md
# Projects

- [Pingpane](../pingpane.zip)
- [Upitnik source](../Upitnik-Za-Nove-Gimnazijalce/)
- [Project notes](https://example.org/notes)
```

Each collection is one Markdown file with a heading and a list of links. Wrap paths containing spaces in angle brackets. Collection membership and titles can change independently of a file's URL.

## Preview and publish

Run `python3 -m http.server 8000 --bind 127.0.0.1` from the repository root and open [localhost:8000](http://localhost:8000). The generator uses Python's standard library and Git. It reads tracked files and new, unignored files in the checkout. The catalog excludes its build tools, frontend and collection manifests.

GitHub Pages can serve the committed root directly. The custom domain is set in [CNAME](CNAME). Changes go live through the existing publishing branch.
