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

Commit

Permalink
ci: fix readthedocs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Sep 9, 2023
1 parent e7448f8 commit 835de4d
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ build:
os: ubuntu-20.04
tools:
python: "2.7"
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 @@ -25,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,
2 changes: 1 addition & 1 deletion 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://plexyglass.readthedocs.io/>`_.
LizardByte has the full documentation hosted on `Read the Docs <http://plexyglass.readthedocs.io/>`__.

About
-----
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
2 changes: 1 addition & 1 deletion docs/source/about/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ minimal example.
metadata.extras.add(OtherObject(url=video_url))
.. Tip:: For help with metadata agent or general plug-in development, check out our
`plexhints <https://app.lizardbyte.dev/#Projects>`_ python library.
`plexhints <https://app.lizardbyte.dev/#Projects>`__ python library.
2 changes: 1 addition & 1 deletion 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
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>`__.
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
------
PlexyGlass uses `Flake8 <https://pypi.org/project/flake8/>`_ for enforcing consistent code styling. Flake is included
PlexyGlass uses `Flake8 <https://pypi.org/project/flake8/>`__ for enforcing consistent code styling. Flake 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
------
PlexyGlass uses `Sphinx <https://www.sphinx-doc.org/en/master/>`_ for documentation building. Sphinx is included
PlexyGlass uses `Sphinx <https://www.sphinx-doc.org/en/master/>`__ for documentation building. Sphinx is included
in the ``requirements-dev.txt``.

PlexyGlass follows `numpydoc <https://numpydoc.readthedocs.io/en/latest/format.html>`_ styling and formatting in
PlexyGlass 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 @@ -43,7 +43,7 @@ pytest
------
.. Todo:: PyTest is not yet implemented.

PlexyGlass uses `pytest <https://pypi.org/project/pytest/>`_ for unit testing. pytest is included in the
PlexyGlass 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 @@ -5,5 +5,6 @@ numpydoc==0.9.2;python_version<"3"
pathlib2==2.3.7.post1;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.1.1;python_version<"3"

0 comments on commit 835de4d

Please sign in to comment.