johnny-decimal/README.md

38 lines
1.2 KiB
Markdown
Raw Normal View History

2023-12-21 12:54:35 -07:00
# johnny decimal
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
Scripts related to creating or maintaining a [Johnny Decimal](https://johnnydecimal.com/) system
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
## Ideas
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
- A *Very Fancy* script that determines the next available ID number based on supplied category and adds your new item to the Index at the same time
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
## Existing Tools
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
### build-index.sh
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
This script loops over your index directory system and builds a set of markdown files - one for each area.
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
The markdown files are formatted such that they can be directly dumped into a Hugo (or other SSG) instance
2023-12-17 12:21:38 -07:00
2023-12-21 12:54:35 -07:00
- so you can publish your index on a static Pages host
- so you can then determine the next ID number even when your filing system isn't accessible.
Setting your Pages site as "not public" is probably wise - don't give away OSINT for free!
2023-12-17 12:21:38 -07:00
This script will run in $PWD unless you optionally specify the root of your JD directory.
2023-12-17 12:21:38 -07:00
2024-01-16 15:27:17 -07:00
You may also optionally specify the outfile, but if you choose to do this, you must specify the root of your JD directory.
Usage:
2023-12-17 12:21:38 -07:00
```sh
build-index.sh [/path/to/JD/root] [/outfile/path/]
2024-01-16 15:26:00 -07:00
```
2023-12-21 12:54:35 -07:00
===
You may contribute if you wish. Merge requests are welcomed. Don't be a jerk, &c &c.
Contributors:
- [Emma Tebibyte](https://gitlab.com/emmatebibyte)