[DOCS] Update config docs (#764)

This commit is contained in:
Jesse Bannon 2023-10-18 23:20:59 -07:00 committed by GitHub
parent 4105c2ed40
commit a7651b202b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 11 deletions

View file

@ -194,7 +194,11 @@ jobs:
packages: write
contents: read
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{
github.ref == 'refs/heads/master'
&& !contains(github.event.head_commit.message, '[DEV]')
&& !contains(github.event.head_commit.message, '[DOCS]')
}}
steps:
- uses: actions/checkout@v3

View file

@ -192,7 +192,11 @@ jobs:
packages: write
contents: read
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
if: ${{
github.ref == 'refs/heads/master'
&& !contains(github.event.head_commit.message, '[DEV]')
&& !contains(github.event.head_commit.message, '[DOCS]')
}}
steps:
- uses: actions/checkout@v3

View file

@ -207,7 +207,11 @@ jobs:
python3 -m build
- name: Publish distribution 📦 to PyPI
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }}
if: ${{
github.ref == 'refs/heads/master'
&& !contains(github.event.head_commit.message, '[DEV]')
&& !contains(github.event.head_commit.message, '[DOCS]')
}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

View file

@ -149,14 +149,14 @@ class ConfigOptions(StrictDictValidator):
def working_directory(self) -> str:
"""
The directory to temporarily store downloaded files before moving them into their final
directory.
directory. Defaults to .ytdl-sub-working-directory
"""
return self._working_directory.value
@property
def umask(self) -> Optional[str]:
"""
Optional. Umask (octal format) to apply to every created file. Defaults to "022".
Umask (octal format) to apply to every created file. Defaults to "022".
"""
return self._umask.value
@ -165,7 +165,7 @@ class ConfigOptions(StrictDictValidator):
"""
.. _dl_aliases:
Optional. Alias definitions to shorten ``ytdl-sub dl`` arguments. For example,
Alias definitions to shorten ``ytdl-sub dl`` arguments. For example,
.. code-block:: yaml
@ -200,7 +200,7 @@ class ConfigOptions(StrictDictValidator):
@property
def file_name_max_bytes(self) -> int:
"""
Optional. Max file name size in bytes. Most OS's typically default to 255 bytes.
Max file name size in bytes. Most OS's typically default to 255 bytes.
"""
return self._file_name_max_bytes.value
@ -214,7 +214,7 @@ class ConfigOptions(StrictDictValidator):
@property
def lock_directory(self) -> str:
"""
Optional. The directory to temporarily store file locks, which prevents multiple instances
The directory to temporarily store file locks, which prevents multiple instances
of ``ytdl-sub`` from running. Note that file locks do not work on network-mounted
directories. Ensure that this directory resides on the host machine. Defaults to ``/tmp``.
"""
@ -223,7 +223,7 @@ class ConfigOptions(StrictDictValidator):
@property
def ffmpeg_path(self) -> str:
"""
Optional. Path to ffmpeg executable. Defaults to ``/usr/bin/ffmpeg`` for Linux, and
Path to ffmpeg executable. Defaults to ``/usr/bin/ffmpeg`` for Linux, and
``ffmpeg.exe`` for Windows (in the same directory as ytdl-sub).
"""
return self._ffmpeg_path.value
@ -231,7 +231,7 @@ class ConfigOptions(StrictDictValidator):
@property
def ffprobe_path(self) -> str:
"""
Optional. Path to ffprobe executable. Defaults to ``/usr/bin/ffprobe`` for Linux, and
Path to ffprobe executable. Defaults to ``/usr/bin/ffprobe`` for Linux, and
``ffprobe.exe`` for Windows (in the same directory as ytdl-sub).
"""
return self._ffprobe_path.value
@ -239,7 +239,7 @@ class ConfigOptions(StrictDictValidator):
@property
def subscription_value(self) -> Optional[str]:
"""
Optional. Sets the :ref:`subscription value` for subscription
Sets the :ref:`subscription value` for subscription
files that use this config.
"""
return self._subscription_value.value if self._subscription_value else None