Document Bookmarks

A page for the new Bookmarks menu: where it appears, directories, the editor,
the three URL forms (path, port on this device, full URL), and the layout of
bookmarks.yaml for hand editing.  Added to the Modules TOC and the configs
table.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-09-26 13:10:22 -06:00
parent 662a4dd7b1
commit c4362d8079
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 75 additions and 0 deletions

View file

@ -41,6 +41,7 @@ Information about the parts of the WROLPi interface.
* [Docs](modules/docs/index.md)
* [Map](modules/map/index.md)
* [Zim](modules/zim/index.md)
* [Bookmarks](modules/bookmarks/index.md)
* [Inventory](modules/inventory/index.md)
* [Summary](modules/inventory/summary.md)
* [Ration](modules/inventory/ration.md)

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View file

@ -0,0 +1,73 @@
# Bookmarks
Bookmarks are your own links in the navigation bar. They can point at a page on your WROLPi, at another
service running on the same device, or at any website. Use them to reach the things you open often, or the
other services you have installed beside WROLPi, from any page.
> To see your bookmarks, hover over (or tap) **Bookmarks** in the navigation bar. On a phone, they are listed
> in the ☰ menu.
![The Bookmarks menu, with a directory open](bookmarks-menu.png)
Bookmarks can be sorted into directories. A directory opens beside the menu when you hover over it; on a
phone its bookmarks are listed under its name.
## Editing bookmarks
> To add, edit, or remove bookmarks, click **Bookmarks** → **Edit bookmarks**, or go to **More** →
> **Bookmarks** when the window is too narrow to show the Bookmarks menu.
![The bookmarks editor](bookmarks-editor.png)
Each bookmark has a **Name**, a **URL**, a **Location** (the top level, or a directory), and a **New tab**
switch. Bookmarks appear in the menu in the order shown here; use the arrows to move a bookmark up or down
within its directory, or edit it and change its **Location** to move it somewhere else.
**Warning!** Deleting a directory deletes every bookmark inside it.
## URL forms
A WROLPi is reached by several addresses: its LAN address, its name, and its hotspot address. A bookmark that
names one of them would only work from that one. Bookmarks therefore accept three forms of URL:
| Form | Example | Opens |
|---|---|---|
| A path | `/videos/channel/3` | That page of this WROLPi, in the app. |
| A port on this device | `:8096/` or `http://:8096/web` | That port on whatever address you reached this WROLPi by. |
| A full URL | `https://wrolpi.org` | That address, as written. |
The **port** form is for the other services you run on the same device: Jellyfin, Home Assistant, a second
Kiwix, and so on. Write only the port and the path; WROLPi fills in the address the browser is already using.
Without a scheme, the bookmark uses the same scheme as the WROLPi page (`https`). Most services beside WROLPi
are plain `http`, so write `http://:8096/` for those.
Only `http` and `https` URLs are accepted. A path must be a single path on this WROLPi (`//other.host` is
not a path), and a port bookmark may not name a host.
## Where bookmarks are stored
Bookmarks live in `bookmarks.yaml` in your [config directory](../../system/configs.md). They are not in the
database, so they survive a rebuild of the database and travel with your media drive.
The file is a tree: an entry with `children` is a directory, an entry with `url` is a bookmark. Every entry
has an `id` that WROLPi uses to tell them apart; give a new entry an id that no other entry has.
```yaml
version: 3
bookmarks:
- id: 1
name: Services
children:
- id: 2
name: Jellyfin
url: http://:8096/
new_tab: true
- id: 3
name: WROLPi.org
url: https://wrolpi.org
new_tab: true
```
You can edit the file by hand; WROLPi reads it when it starts. If the file cannot be read, or an entry has a
URL WROLPi would not accept, the menu is empty until the file is fixed and WROLPi is restarted. WROLPi never
overwrites a file it could not read.

View file

@ -24,6 +24,7 @@ All configs are stored in the `config` directory of your media directory: `/medi
| `archives_downloader.yaml` | Archive downloader settings. |
| `download_cache.yaml` | Cached video durations (safe to ignore). |
| `map_pins.yaml` | Your [Map](../modules/map/index.md) pins. |
| `bookmarks.yaml` | Your [Bookmarks](../modules/bookmarks/index.md), including their directories and order. |
| `inventory/*.yaml` | One file per [Inventory](../modules/inventory/index.md), plus the food catalog. |
| `cookies.txt.enc` | Your [encrypted cookies](../modules/videos/cookies.md). |
| `controller.yaml` | [Controller](../controller/index.md) settings: drives, Samba shares, hotspot. |