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

Commit 5cfd567

Browse files
docs: fix readthedocs build (#150)
1 parent b8301e0 commit 5cfd567

11 files changed

+32
-18
lines changed

.readthedocs.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ build:
1414
jobs:
1515
pre_build:
1616
- python ./scripts/build_plist.py
17+
post_build:
18+
- rstcheck -r . # lint rst files
19+
# - rstfmt --check --diff -w 120 . # check rst formatting
1720

1821
# Build documentation in the docs/ directory with Sphinx
1922
sphinx:
@@ -28,4 +31,3 @@ python:
2831
install:
2932
- requirements: requirements.txt # plugin requirements
3033
- requirements: requirements-dev.txt # docs requirements
31-
system_packages: true

.rstcheck.cfg

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# configuration file for rstcheck, an rst linting tool
2+
# https://rstcheck.readthedocs.io/en/latest/usage/config
3+
4+
[rstcheck]
5+
ignore_directives =
6+
automodule,
7+
include,
8+
mdinclude,
9+
todo,
10+
ignore_roles =
11+
modname,

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

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

1818
Integrations
1919
------------

docs/source/about/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The bundle is cross platform, meaning Linux, macOS, and Windows are supported.
1212
#. Extract the contents to your Plex Media Server Plugins directory.
1313

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

1818
Docker

docs/source/about/troubleshooting.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Troubleshooting
66
Plugin Logs
77
-----------
88

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

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

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

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

2424
If you have a more severe problem, you may need to troubleshoot an issue beyond the plugin itself. See
25-
`Plex Media Server Logs <https://support.plex.tv/articles/200250417-plex-media-server-log-files/>`_
25+
`Plex Media Server Logs <https://support.plex.tv/articles/200250417-plex-media-server-log-files/>`__
2626
for more information.

docs/source/about/usage.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Web UI
2727

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

30-
/
31-
^
30+
/ (root)
31+
^^^^^^^^
3232

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

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

3939
/status

docs/source/contributing/build.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Python 2.7.
77

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

1212
.. code-block:: bash
1313
@@ -38,7 +38,7 @@ Build Plist
3838
3939
npm dependencies
4040
----------------
41-
Install nodejs and npm. Downloads available `here <https://nodejs.org/en/download/>`_.
41+
Install nodejs and npm. Downloads available `here <https://nodejs.org/en/download/>`__.
4242

4343
Install npm dependencies.
4444
.. code-block:: bash

docs/source/contributing/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Contributing
44
============
55

66
Read our contribution guide in our organization level
7-
`docs <https://lizardbyte.readthedocs.io/en/latest/developers/contributing.html>`_.
7+
`docs <https://lizardbyte.readthedocs.io/en/latest/developers/contributing.html>`__.

docs/source/contributing/database.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
Database
44
========
55

6-
The database of themes is held in our `ThemerrDB <https://github.com/LizardByte/ThemerrDB>`_ repository. To contribute
6+
The database of themes is held in our `ThemerrDB <https://github.com/LizardByte/ThemerrDB>`__ repository. To contribute
77
to the database, follow the documentation there.

docs/source/contributing/testing.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Testing
55

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

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

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

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

4747
No config is required for pytest.

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ m2r2==0.3.2;python_version<"3"
44
numpydoc==0.9.2;python_version<"3"
55
git+https://github.com/LizardByte/plexhints.git#egg=plexhints # type hinting library for plex development
66
pytest==4.6.11;python_version<"3"
7+
rstcheck==3.5.0;python_version<"3"
78
Sphinx==1.8.6;python_version<"3"
89
sphinx-rtd-theme==1.2.0;python_version<"3"

0 commit comments

Comments
 (0)