diff --git a/README.md b/README.md index ed3fae4..633a5dd 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ Required: | `admin_contact` | How users reach you | `"Text John"` | | `media_url` | Plex access URL, no `https://` | `"plex.example.com"` | +Optional contact settings: + +| Variable | Default | Description | +| --- | --- | --- | +| `contact_name` | `admin_name` | Name in the "Contact ..." heading and list, and in its anchor | +| `contact_note` | unset | Sentence added to the "won't load" bullet in that list | + Optional features (`true` shows the section, `false` hides it). Defaults are from `mkdocs.sample.yml`: | Variable | Default | Description | @@ -143,10 +150,10 @@ contact_methods: If the template is a git submodule, run these copies in your build pipeline and do not edit the local copies. 5. Copy `plex-guide/main.py` next to your `mkdocs.yml`. It provides the `contact_card()` macro that `index.md` calls. -6. If you use both pages, make `admin_contact` a cross-page link. The contact anchor is generated from the `## Contact Jeeves` heading, so it exists only on `index.md` (`#contact-jeeves`): +6. If you use both pages, make `admin_contact` a cross-page link. The contact anchor is generated from the `## Contact {{ contact_name }}` heading (`admin_name` when `contact_name` is unset), so it exists only on `index.md`. It is the slug of that name: `#contact-aj` for `AJ`, and it changes with `contact_name`: ```yaml - admin_contact: "[Contact Admin](index.md#contact-jeeves)" + admin_contact: "[Contact Admin](index.md#contact-aj)" ``` A same-page anchor fails the build in strict mode when the macro expands on `device-setup.md`. diff --git a/plex-guide/docs/index.md b/plex-guide/docs/index.md index ed5fc2b..12584e3 100644 --- a/plex-guide/docs/index.md +++ b/plex-guide/docs/index.md @@ -625,13 +625,14 @@ If you need to move to a new Plex account (new email, etc.), {{ admin_name }} ca --- -## Contact Jeeves +{% set contact = contact_name | default(admin_name, true) %} +## Contact {{ contact }} -**Only contact Jeeves for these things:** +**Only contact {{ contact }} for these things:** -- [{{ media_url }}](https://{{ media_url }}){% if has_request_system %} or [{{ request_url }}](https://{{ request_url }}){% endif %} won't load at all (the server or its services are down — not a plex.tv issue). Jeeves escalates server problems itself. +- [{{ media_url }}](https://{{ media_url }}){% if has_request_system %} or [{{ request_url }}](https://{{ request_url }}){% endif %} won't load at all (the server or its services are down — not a plex.tv issue).{% if contact_note %} {{ contact_note }}{% endif %} - You need to be added (send your email address) -{% if has_migration %}- You're switching to a new account (ask Jeeves to migrate your watch history) +{% if has_migration %}- You're switching to a new account (ask {{ contact }} to migrate your watch history) {% endif %}{% if not has_request_system %}- A movie/show has the wrong audio, bad quality, or missing subtitles {% endif %}- You're seeing payment prompts when you shouldn't be diff --git a/plex-guide/mkdocs.sample.yml b/plex-guide/mkdocs.sample.yml index 0dfabb3..9bb3571 100644 --- a/plex-guide/mkdocs.sample.yml +++ b/plex-guide/mkdocs.sample.yml @@ -60,6 +60,9 @@ extra: admin_contact: "Message Admin" # How users should reach you (e.g., "Text John", "DM @admin", "Email admin@example.com") media_url: "app.plex.tv" # URL where users access Plex (e.g., "plex.example.com") + # contact_name: "Admin" # Optional: name in the "Contact ..." section; defaults to admin_name + # contact_note: "" # Optional: one sentence added to the "won't load" bullet + # --- Optional features (set to false to hide sections) --- has_request_system: true # Set to true if you run Seerr request_url: "requests.example.com" # Seerr URL