Skip to content

Commit a8370b2

Browse files
committed
docs: sync 0fb5e01b263d
1 parent ca8f24a commit a8370b2

59 files changed

Lines changed: 749 additions & 355 deletions

Some content is hidden

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

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ public/
22
resources/
33
bin/
44
.hugo_build.lock
5+
6+
.frontmatter/
7+
.vscode/
8+
frontmatter.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local image collection, and its two optional addons:
66
- **monloader** - a companion downloader and reverse-lookup service
77
- **monsender** - a browser extension that sends pages to monloader
88

9-
Start reading [here](https://leqwin.github.io/mondocs/index.html).
9+
Start reading [here](https://monbooru.github.io/mondocs/index.html).
1010

1111
## License
1212

REPOSITORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/leqwin/mondocs
1+
https://github.com/monbooru/mondocs

content/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ optional [addons](addons/_index.md).
4242
detection and a side-by-side review session.
4343
- [Multiple galleries](guides/galleries/index.md) in one instance, each with
4444
its own files and database, plus export, import and
45-
[migration](guides/migrating.md) from Hydrus or Blombooru.
45+
[migration](guides/migrating.md) from other similar applications.
4646
- Reverse [lookup](guides/lookup/index.md) of your images against boorus,
47-
IQDB/SauceNAO and the Hydrus PTR, through a paired monloader.
47+
IQDB/SauceNAO and the Hydrus PTR, through a paired monloader, and
48+
[contributing tags back](guides/ptr-contributions/index.md) to the PTR.
4849
- A REST API with scoped tokens, covered in
4950
[Development](development.md).
5051

5152
## Where to go
5253

53-
- [Install](getting-started/install.md) gets it running with Docker in
54-
a few minutes; [First steps](getting-started/first-steps/index.md) walks
54+
- [Install](getting-started/install.md) gets it running with Docker; [First steps](getting-started/first-steps/index.md) to walk
5555
the UI.
56-
- The [guides](guides/_index.md) cover each feature in day-to-day terms.
57-
- [Configuration](configuration.md) has the environment variables,
56+
- The [guides](guides/_index.md) cover the main features.
57+
- [Configuration](configuration.md) has shows the environment variables,
5858
theming and advanced tagger setup.
5959

6060
## Addons
@@ -66,7 +66,7 @@ being present. Two optional companions extend it:
6666
downloads posts from booru sites into your collection with their
6767
tags, and runs reverse lookups on images you already have to
6868
backfill tags and sources. monbooru stays offline; monloader connects to the internet.
69-
- **[monsender](addons/monsender/_index.md)** adds the browser shortcut: an
69+
- **[monsender](addons/monsender/_index.md)** adds a shortcut between monbooru and monloader in your browser: it's an
7070
extension that sends the page you are viewing, or images picked from
7171
it, straight to monloader's download queue. It needs monloader.
7272

content/addons/monloader/add.png

1.12 KB
Loading

content/addons/monloader/add.webp

1.34 KB
Loading

content/addons/monloader/configuration.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ api_token = "" # set by pairing, or by hand for a manu
2323
web_url = "" # browser-facing monbooru base for links; blank =
2424
# api_url for image links, monbooru link hidden
2525
default_gallery = "" # blank = monbooru's active gallery
26+
paused = false # set by the footer light; holds the link without unpairing
2627

2728
[downloader]
2829
concurrency = 1 # worker goroutines; applies on restart
@@ -53,7 +54,7 @@ data_path = "/ptr"
5354
address = "https://ptr.hydrus.network:45871"
5455
access_key = "" # empty = the PTR's public read-only key
5556
fetch_sleep = 1.0
56-
min_free_gb = 80
57+
min_free_gb = 70
5758

5859
[lookup] # the lookup chain's similarity stage
5960
min_similarity = 80 # percent; candidates below are ignored
@@ -124,7 +125,7 @@ key:
124125

125126
| Variable | Effect |
126127
|---|---|
127-
| `TZ` | Timezone name (e.g. `Europe/Paris`) for displayed timestamps. Defaults to `UTC`. Any IANA name works without extra packages. |
128+
| `TZ` | Timezone name (default `UTC`) for displayed timestamps. Any IANA name works. |
128129

129130
## Raw gallery-dl passthrough
130131

@@ -138,7 +139,7 @@ the escape hatch for gallery-dl options monloader does not manage itself.
138139
Set `custom_css` in `[server]` to a file path and monloader serves it at
139140
`/custom.css`, linked after the bundled stylesheet, so a `:root` block there
140141
wins the cascade. One custom stylesheet can theme monbooru and monloader
141-
together: the tag-category color tokens are identical.
142+
together.
142143

143144
## Logo and title
144145

content/addons/monloader/development.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,17 @@ monsender extension can branch on them:
6767
| `file_too_large` | monbooru rejected the upload for size |
6868
| `monbooru_unreachable` | the push got no HTTP response (connect / timeout) |
6969
| `monbooru_rejected` | monbooru returned a 4xx/5xx other than the duplicate 200 |
70-
| `hash_mismatch` | a metadata refetch found the source no longer serves the file monbooru stored, so nothing was merged |
70+
| `hash_mismatch` | a metadata refetch returned a file that does not match the one monbooru stored, so nothing was merged; on a replace job, the downloaded file did not match the md5 the site claims, so nothing was pushed |
7171
| `hash_not_found` | a hash lookup found no site (or the PTR index) holding the hash |
7272
| `ptr_unavailable` | a PTR lookup was requested while the PTR backend is off; normally refused as a 409 when the lookup is enqueued |
73+
| `ptr_syncing` | a PTR lookup was requested while the index is still building; normally refused as a 409 when the lookup is enqueued |
74+
| `already_exists` | a replace job's downloaded file already exists in the gallery as another image; monbooru refuses the swap and records the two as a potential-duplicate pair instead |
75+
| `wrong_type` | a replace job aimed at an image whose row is an archive or video, which cannot be swapped this way |
7376
| `canceled` | the job was canceled while the item was in flight |
7477

7578
The job's `summary` aggregates its items:
76-
`{ created, duplicate, enriched, skipped, failed, canceled, total }`. The
77-
outcomes themselves are described in
79+
`{ created, duplicate, enriched, replaced, skipped, failed, canceled, total }`.
80+
The outcomes themselves are described in
7881
[downloading](guides/downloading/index.md#per-item-outcomes).
7982

8083
## Building from source
@@ -136,5 +139,5 @@ A profile's fields:
136139
| `category_overrides` | per-suffix tag-category remaps baked into the profile |
137140
| `rating_overrides` | per-value rating remaps baked into the profile |
138141
| `default_rating` | rating used only when the source gives none |
139-
| `needs_tags` | a generic-family site that needs gallery-dl's `tags: true` to emit per-category tags (one extra request per post, e.g. sankaku) |
140-
| `has_notes` | a generic-family site whose extractor emits note boxes with gallery-dl's `notes: true` (e.g. sankaku); the note-carrying booru families get it by family |
142+
| `needs_tags` | a generic-family site that needs gallery-dl's `tags: true` to emit per-category tags (one extra request per post |
143+
| `has_notes` | a generic-family site whose extractor emits note boxes with gallery-dl's `notes: true`; the note-carrying booru families get it by family |

content/addons/monloader/getting-started/install.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@ override any TOML key, is in [configuration](../configuration.md).
4040
| Mount | Purpose |
4141
|---|---|
4242
| `/config` | Persistent: `monloader.toml`, the managed `gallery-dl.json`, the gallery-dl download archive, and cookies files. |
43-
| `/ptr` | Optional: the local Hydrus PTR tag index, only if you enable the PTR lookup. Expect more than 70 GB. See [Hydrus PTR](../guides/ptr/index.md). |
43+
| `/ptr` | Optional: the local Hydrus PTR tag index, only if you enable the PTR lookup. Expect tens of GB. See [Hydrus PTR](../guides/ptr/index.md). |
4444

4545
monloader also uses an internal `/work` directory as scratch space for
4646
downloads; files are deleted from it after each successful push (it doesn't need to be mounted). If you want
4747
it RAM-backed, give it a `tmpfs` mount instead.
48-
49-
## Podman
50-
51-
A Quadlet unit ships at `docker/monloader.container` in the monloader
52-
repository, with the same volumes and hardening as the compose service.

content/addons/monloader/getting-started/pairing/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ touches gallery files.
4444
Approving mints a scoped `monsender (paired)` token that the extension
4545
stores.
4646

47+
## Pausing the link
48+
49+
The dot in monloader's footer says whether monbooru answered; clicking it
50+
while it is green holds the link: monloader stops calling monbooru and no new
51+
download is accepted until you click the dot again. That covers
52+
both ways in: the add bar refuses a pasted URL, and so does the browser
53+
extension, which sends over the API. The pairing itself is untouched, so
54+
resuming needs no re-pair. monbooru's footer carries the same switch for the
55+
other direction. Requests coming the other way - monbooru asking for tags or a
56+
refetch - still work, and downloads already queued are not affected.
57+
4758
## Paired tokens
4859

4960
Paired tokens appear in **Settings -> Authentication** next to any tokens

0 commit comments

Comments
 (0)