docs: fix config defaults
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/888/head
parent
e38da200db
commit
d5fcf19814
|
@ -16,13 +16,19 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ github.ref }}
|
key: ${{ github.ref }}
|
||||||
path: .cache
|
path: .cache
|
||||||
- run: cp CHANGELOG.md docs/changelog.md
|
|
||||||
- run: pip install mkdocs-material pillow cairosvg
|
- name: Build documentation
|
||||||
- run: mkdocs gh-deploy --force
|
run: |
|
||||||
|
cp CHANGELOG.md docs/changelog.md
|
||||||
|
sed -n '/DEFAULTS = \[/,/];/p' lib/Settings/SystemConfig.php | sed 's/^ //' > docs/system-config.php
|
||||||
|
pip install mkdocs-material pillow cairosvg
|
||||||
|
mkdocs gh-deploy --force
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
changelog.md
|
changelog.md
|
||||||
|
system-config.php
|
|
@ -7,5 +7,7 @@ description: Documentation for config.php options that Memories uses
|
||||||
This is a list of all options in `config.php` that memories uses
|
This is a list of all options in `config.php` that memories uses
|
||||||
|
|
||||||
```php
|
```php
|
||||||
--8<-- "lib/SystemConfigDefault.php"
|
<?php
|
||||||
|
|
||||||
|
--8<-- "docs/system-config.php"
|
||||||
```
|
```
|
||||||
|
|
|
@ -8,6 +8,8 @@ use OCA\Memories\AppInfo\Application;
|
||||||
|
|
||||||
class SystemConfig
|
class SystemConfig
|
||||||
{
|
{
|
||||||
|
// Do not change the next line, it's used by the docs
|
||||||
|
// to generate the default config page
|
||||||
public const DEFAULTS = [
|
public const DEFAULTS = [
|
||||||
// Path to exiftool binary
|
// Path to exiftool binary
|
||||||
'memories.exiftool' => '',
|
'memories.exiftool' => '',
|
||||||
|
@ -18,7 +20,7 @@ class SystemConfig
|
||||||
|
|
||||||
// Temporary directory for non-php binaries. The directory must be writable
|
// Temporary directory for non-php binaries. The directory must be writable
|
||||||
// and the webserver user should be able to create executable binaries in it.
|
// and the webserver user should be able to create executable binaries in it.
|
||||||
// Note that go-vod temp files are separately configured (see memories.vod.tempdir)
|
// go-vod temp files are separately configured (memories.vod.tempdir)
|
||||||
// Defaults to system temp directory if blank
|
// Defaults to system temp directory if blank
|
||||||
'memories.exiftool.tmp' => '',
|
'memories.exiftool.tmp' => '',
|
||||||
|
|
||||||
|
@ -36,7 +38,7 @@ class SystemConfig
|
||||||
'memories.gis_type' => -1,
|
'memories.gis_type' => -1,
|
||||||
|
|
||||||
// Default timeline path for all users
|
// Default timeline path for all users
|
||||||
// If set to '_empty_', the user is prompted to select a path on first open (default)
|
// If set to '_empty_', the user is prompted to select a path
|
||||||
'memories.timeline.default_path' => '_empty_',
|
'memories.timeline.default_path' => '_empty_',
|
||||||
|
|
||||||
// Default viewer high resolution image loading condition
|
// Default viewer high resolution image loading condition
|
||||||
|
@ -89,7 +91,6 @@ class SystemConfig
|
||||||
'memories.video_default_quality' => '0',
|
'memories.video_default_quality' => '0',
|
||||||
|
|
||||||
// Memories only provides an admin interface for these
|
// Memories only provides an admin interface for these
|
||||||
// https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#previews
|
|
||||||
'enabledPreviewProviders' => [],
|
'enabledPreviewProviders' => [],
|
||||||
'preview_max_x' => 4096,
|
'preview_max_x' => 4096,
|
||||||
'preview_max_y' => 4096,
|
'preview_max_y' => 4096,
|
||||||
|
|
Loading…
Reference in New Issue