[4] Merge remote-tracking branch 'YozoraXCII/defaults-useall' into nightly

This commit is contained in:
meisnate12 2024-04-25 10:37:12 -04:00
commit f82452eb2e
6 changed files with 9 additions and 0 deletions

View file

@ -13,6 +13,7 @@ Add Page Topics Options to `imdb_search`
Add `lxml` Docker Version using an old lxml version that supports more cpus Add `lxml` Docker Version using an old lxml version that supports more cpus
# Updates # Updates
Add `use_all` template variable to default collections, which allows all collections to be disabled with one variable.
Let conditional `.not` and `.exists` work with default variables Let conditional `.not` and `.exists` work with default variables
# Defaults # Defaults

View file

@ -64,6 +64,12 @@ templates:
- file_poster_<<key>>.exists: false - file_poster_<<key>>.exists: false
file_poster.exists: false file_poster.exists: false
value: <<url_poster>> value: <<url_poster>>
final_use:
conditions:
- use_<<key>>.exists: true
value: <<use_<<key>>>>
- use_all: false
value: false
default: default:
collection_section: "00" collection_section: "00"
key: <<mapping_name>> key: <<mapping_name>>
@ -110,6 +116,7 @@ templates:
- delete_collections_named - delete_collections_named
- schedule - schedule
run_definition: run_definition:
- <<final_use>>
- <<use_<<key>>>> - <<use_<<key>>>>
- <<allowed_libraries>> - <<allowed_libraries>>
name_mapping: <<name_mapping>> name_mapping: <<name_mapping>>

BIN
docs/_static/logomark-color.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

BIN
docs/_static/logomark.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

View file

@ -2,6 +2,7 @@
| Variable | Description & Values | | Variable | Description & Values |
|:----------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |:----------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `language` | **Description:** Set the language of Collection Names and Summaries<br>**Default:** `default`<br>**Values:** `default` (English), `fr` (French), or `de` (German) | | `language` | **Description:** Set the language of Collection Names and Summaries<br>**Default:** `default`<br>**Values:** `default` (English), `fr` (French), or `de` (German) |
| `use_all` | **Description:** Turns off all Collections in a Defaults file.<br>**Values:** `false` to turn off the collection |
| `use_<<key>>`<sup>1</sup> | **Description:** Turns off individual Collections in a Defaults file.<br>**Values:** `false` to turn off the collection | | `use_<<key>>`<sup>1</sup> | **Description:** Turns off individual Collections in a Defaults file.<br>**Values:** `false` to turn off the collection |
| `name_<<key>>`<sup>1</sup> | **Description:** Changes the name of the specified key's collection.<br>**Values:** New Collection Name | | `name_<<key>>`<sup>1</sup> | **Description:** Changes the name of the specified key's collection.<br>**Values:** New Collection Name |
| `summary_<<key>>`<sup>1</sup> | **Description:** Changes the summary of the specified key's collection.<br>**Values:** New Collection Summary | | `summary_<<key>>`<sup>1</sup> | **Description:** Changes the summary of the specified key's collection.<br>**Values:** New Collection Summary |