Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
docs: fix readthedocs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Sep 6, 2023
1 parent b8301e0 commit 02387ed
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ build:
jobs:
pre_build:
- python ./scripts/build_plist.py
post_build:
- rstcheck -r . # lint rst files
# - rstfmt --check --diff -w 120 . # check rst formatting

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand All @@ -28,4 +31,3 @@ python:
install:
- requirements: requirements.txt # plugin requirements
- requirements: requirements-dev.txt # docs requirements
system_packages: true
11 changes: 11 additions & 0 deletions .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# configuration file for rstcheck, an rst linting tool
# https://rstcheck.readthedocs.io/en/latest/usage/config

[rstcheck]
ignore_directives =
automodule,
include,
mdinclude,
todo,
ignore_roles =
modname,
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Overview
========
LizardByte has the full documentation hosted on `Read the Docs <http://themerr-plex.readthedocs.io/>`_.
LizardByte has the full documentation hosted on `Read the Docs <http://themerr-plex.readthedocs.io/>`__.

About
-----
Expand All @@ -13,7 +13,7 @@ This plugin contributes to the following metadata agents.
- Plex Movie - `tv.plex.agents.movie`
- Plex Movie (Legacy) - `com.plexapp.agents.imdb`
- The Movie Database - `com.plexapp.agents.themoviedb`
- `RetroArcher <https://github.com/LizardByte/RetroArcher-plex>`_ - `dev.lizardbyte.retroarcher-plex`
- `RetroArcher <https://github.com/LizardByte/RetroArcher-plex>`__ - `dev.lizardbyte.retroarcher-plex`

Integrations
------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/about/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The bundle is cross platform, meaning Linux, macOS, and Windows are supported.
#. Extract the contents to your Plex Media Server Plugins directory.

.. Tip:: See
`How do I find the Plug-Ins folder <https://support.plex.tv/articles/201106098-how-do-i-find-the-plug-ins-folder>`_
`How do I find the Plug-Ins folder <https://support.plex.tv/articles/201106098-how-do-i-find-the-plug-ins-folder>`__
for information specific to your Plex server install.

Docker
Expand Down
6 changes: 3 additions & 3 deletions docs/source/about/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Troubleshooting
Plugin Logs
-----------

See `Plugin Log Files <https://support.plex.tv/articles/201106148-channel-log-files/>`_ for the plugin
See `Plugin Log Files <https://support.plex.tv/articles/201106148-channel-log-files/>`__ for the plugin
log directory.

Plex uses rolling logs. There will be six log files available. The newest log file will be named
``dev.lizardbyte.themerr-plex.log``. There will be additional log files with the same name, appended with a `1-5`.

It is best to replicate the issue you are experiencing, then review the latest log file. The information in the log
file may seem cryptic. If so it would be best to reach out for `support <https://app.lizardbyte.dev/support>`_.
file may seem cryptic. If so it would be best to reach out for `support <https://app.lizardbyte.dev/support>`__.

.. Attention:: Before uploading logs, it would be wise to review the data in the log file. Plex does not filter
the masked settings (e.g. credentials) out of the log file.
Expand All @@ -22,5 +22,5 @@ Plex Media Server Logs
----------------------

If you have a more severe problem, you may need to troubleshoot an issue beyond the plugin itself. See
`Plex Media Server Logs <https://support.plex.tv/articles/200250417-plex-media-server-log-files/>`_
`Plex Media Server Logs <https://support.plex.tv/articles/200250417-plex-media-server-log-files/>`__
for more information.
6 changes: 3 additions & 3 deletions docs/source/about/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Web UI

A web interface is provided by the plugin. Currently the web ui only provides a couple of end points.

/
^
/ (root)
^^^^^^^^

This endpoint will display a report showing the theme song status for each item in a library supported by Themerr-plex.
A supported library is any that has the default agent as one supported by Themerr-plex.

The report provides an easy means to contribute to `ThemerrDB <https://github.com/LizardByte/ThemerrDB>`_ by providing
The report provides an easy means to contribute to `ThemerrDB <https://github.com/LizardByte/ThemerrDB>`__ by providing
`Add/Edit` buttons for items that can be added to ThemerrDB.

/status
Expand Down
4 changes: 2 additions & 2 deletions docs/source/contributing/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Python 2.7.

Clone
-----
Ensure `git <https://git-scm.com/>`_ is installed and run the following:
Ensure `git <https://git-scm.com/>`__ is installed and run the following:

.. code-block:: bash
Expand Down Expand Up @@ -38,7 +38,7 @@ Build Plist
npm dependencies
----------------
Install nodejs and npm. Downloads available `here <https://nodejs.org/en/download/>`_.
Install nodejs and npm. Downloads available `here <https://nodejs.org/en/download/>`__.

Install npm dependencies.
.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contributing/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Contributing
============

Read our contribution guide in our organization level
`docs <https://lizardbyte.readthedocs.io/en/latest/developers/contributing.html>`_.
`docs <https://lizardbyte.readthedocs.io/en/latest/developers/contributing.html>`__.
2 changes: 1 addition & 1 deletion docs/source/contributing/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Database
========

The database of themes is held in our `ThemerrDB <https://github.com/LizardByte/ThemerrDB>`_ repository. To contribute
The database of themes is held in our `ThemerrDB <https://github.com/LizardByte/ThemerrDB>`__ repository. To contribute
to the database, follow the documentation there.
8 changes: 4 additions & 4 deletions docs/source/contributing/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Testing

Flake8
------
Themerr-plex uses `Flake8 <https://pypi.org/project/flake8/>`_ for enforcing consistent code styling. Flake8 is included
Themerr-plex uses `Flake8 <https://pypi.org/project/flake8/>`__ for enforcing consistent code styling. Flake8 is included
in the ``requirements-dev.txt``.

The config file for flake8 is ``.flake8``. This is already included in the root of the repo and should not be modified.
Expand All @@ -17,10 +17,10 @@ Test with Flake8
Sphinx
------
Themerr-plex uses `Sphinx <https://www.sphinx-doc.org/en/master/>`_ for documentation building. Sphinx is included
Themerr-plex uses `Sphinx <https://www.sphinx-doc.org/en/master/>`__ for documentation building. Sphinx is included
in the ``requirements-dev.txt``.

Themerr-plex follows `numpydoc <https://numpydoc.readthedocs.io/en/latest/format.html>`_ styling and formatting in
Themerr-plex follows `numpydoc <https://numpydoc.readthedocs.io/en/latest/format.html>`__ styling and formatting in
docstrings. This will be tested when building the docs. `numpydoc` is included in the ``requirements-dev.txt``.

The config file for Sphinx is ``docs/source/conf.py``. This is already included in the root of the repo and should not
Expand All @@ -41,7 +41,7 @@ Test with Sphinx
pytest
------
Themerr-plex uses `pytest <https://pypi.org/project/pytest/>`_ for unit testing. pytest is included in the
Themerr-plex uses `pytest <https://pypi.org/project/pytest/>`__ for unit testing. pytest is included in the
``requirements-dev.txt``.

No config is required for pytest.
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ m2r2==0.3.2;python_version<"3"
numpydoc==0.9.2;python_version<"3"
git+https://github.com/LizardByte/plexhints.git#egg=plexhints # type hinting library for plex development
pytest==4.6.11;python_version<"3"
rstcheck==3.5.0;python_version<"3"
Sphinx==1.8.6;python_version<"3"
sphinx-rtd-theme==1.2.0;python_version<"3"

0 comments on commit 02387ed

Please sign in to comment.