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 (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Oct 5, 2023
1 parent 92bb6b3 commit 8b8daf1
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 22 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/_locale.py --compile
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 @@ -27,4 +30,3 @@ formats: all
python:
install:
- requirements: requirements-dev.txt
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 docs/source/about/build.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Build
=====
RetroArcher binaries are built using `pyinstaller <https://pypi.org/project/pyinstaller/>`_. Cross compilation is not
RetroArcher binaries are built using `pyinstaller <https://pypi.org/project/pyinstaller/>`__. Cross compilation is not
supported. That means the binaries must be built on the target operating system and architecture.

Use Python 3.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
git clone https://github.com/lizardbyte/retroarcher.git
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 @@ -2,4 +2,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>`__.
16 changes: 3 additions & 13 deletions docs/source/contributing/localization.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
Localization
============
RetroArcher is being localized into various languages. The default language is `en` (English) and is highlighted green.
RetroArcher is being localized into various languages. The default language is `en` (English).

.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=de&style=for-the-badge&query=%24.progress.0.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=green&label=en&style=for-the-badge&query=%24.progress.1.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=en-GB&style=for-the-badge&query=%24.progress.2.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=en-US&style=for-the-badge&query=%24.progress.3.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=es-ES&style=for-the-badge&query=%24.progress.4.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=fr&style=for-the-badge&query=%24.progress.5.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=it&style=for-the-badge&query=%24.progress.6.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json
.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=ru&style=for-the-badge&query=%24.progress.7.data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json

Graph
.. image:: https://badges.awesome-crowdin.com/translation-15178612-503340.png
.. image:: https://badges.awesome-crowdin.com/translation-15178612-606145.png

CrowdIn
-------
The translations occur on
`CrowdIn <https://crowdin.com/project/retroarcher>`_. Feel free to contribute to localization there.
`CrowdIn <https://crowdin.com/project/lizardbyte>`__. Feel free to contribute to localization there.
Only elements of the interface are planned to be translated.

Translations Basics
Expand Down
8 changes: 4 additions & 4 deletions docs/source/contributing/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Testing

Flake8
------
RetroArcher uses `Flake8 <https://pypi.org/project/flake8/>`_ for enforcing consistent code styling. Flake is included
RetroArcher 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 @@ -15,10 +15,10 @@ The config file for flake8 is `.flake8`. This is already included in the root of
Sphinx
------
RetroArcher uses `Sphinx <https://www.sphinx-doc.org/en/master/>`_ for documentation building. Sphinx is included
RetroArcher uses `Sphinx <https://www.sphinx-doc.org/en/master/>`__ for documentation building. Sphinx is included
in the standard `requirements.txt` as building the docs is required for RetroArcher to be fully functional.

RetroArcher follows `numpydoc <https://numpydoc.readthedocs.io/en/latest/format.html>`_ styling and formatting in
RetroArcher follows `numpydoc <https://numpydoc.readthedocs.io/en/latest/format.html>`__ styling and formatting in
docstrings. This will be tested when building the docs.

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 @@ -39,7 +39,7 @@ be modified.
pytest
------
RetroArcher uses `pytest <https://pypi.org/project/pytest/>`_ for unit testing. pytest is included in the
RetroArcher 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
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LizardByte has this documentation hosted on `Read the Docs <http://retroarcher.readthedocs.io/>`_.
LizardByte has this documentation hosted on `Read the Docs <http://retroarcher.readthedocs.io/>`__.

Table of Contents
=================
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
flake8==6.0.0
pyinstaller==5.11.0
pytest==7.3.1
rstcheck[sphinx]==6.2.0

0 comments on commit 8b8daf1

Please sign in to comment.