docs: fix config defaults

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-22 13:19:23 -07:00
parent e38da200db
commit d5fcf19814
4 changed files with 18 additions and 8 deletions

View File

@ -16,13 +16,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: cp CHANGELOG.md docs/changelog.md
- run: pip install mkdocs-material pillow cairosvg
- run: mkdocs gh-deploy --force
- name: Build documentation
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

3
docs/.gitignore vendored
View File

@ -1 +1,2 @@
changelog.md
changelog.md
system-config.php

View File

@ -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
```php
--8<-- "lib/SystemConfigDefault.php"
<?php
--8<-- "docs/system-config.php"
```

View File

@ -8,6 +8,8 @@ use OCA\Memories\AppInfo\Application;
class SystemConfig
{
// Do not change the next line, it's used by the docs
// to generate the default config page
public const DEFAULTS = [
// Path to exiftool binary
'memories.exiftool' => '',
@ -18,7 +20,7 @@ class SystemConfig
// Temporary directory for non-php binaries. The directory must be writable
// 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
'memories.exiftool.tmp' => '',
@ -36,7 +38,7 @@ class SystemConfig
'memories.gis_type' => -1,
// 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_',
// Default viewer high resolution image loading condition
@ -89,7 +91,6 @@ class SystemConfig
'memories.video_default_quality' => '0',
// 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' => [],
'preview_max_x' => 4096,
'preview_max_y' => 4096,