Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx: remove 2.2.2 restriction and update readme regarding building source code docs locally #11973

Merged
merged 5 commits into from
Jan 11, 2021

Conversation

josephsl
Copy link
Collaborator

Hi,
Possible oversight when Sphinx was introduced:

Link to issue number:

None

Summary of the issue:

When Sphinx was introduced, readme wasn't updated to point out that source code documentation can be built in Python 3 version of NVDA. Also, used this opportunity to remove Sphinx version restriction (latest release is 3.4.1, which succeeds in building source code docs).

Description of how this pull request fixes the issue:

Updates:

  • Readme: add instructions on building source code documentation, and remove dev docs limitation statement.
  • Replace Epydoc with Sphinx.

Sphinx requirement: remove version restriction.

Testing performed:

Built NVDA dev docs with Sphinx 2.2.2 and 3.4.1 with both succeeding.

Known issues with pull request:

None

Change log entry:

None

Thanks.

NVDA docs can be built using more recent Sphinx releases such as 3.4.1. Therefore remove checking for Sphinx 2.2.2 in dev docs requirements.
…atement.

Replace Epydoc with Sphinx. As a result, remove the Python 3 source dev docs limitation statement, as Sphinx will now build NVDA dev docs.
@@ -122,6 +121,7 @@ Although this [must be run manually](#linting-your-changes), developers may wish

The following dependencies aren't needed by most people, and are not included in Git submodules:

* To generate developer documentation: [Sphinx](http://sphinx-doc.org/), version 3.4.1
Copy link
Contributor

@lukaszgo1 lukaszgo1 Dec 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inconsistent with the requirements file. I can imagine that someone reports an issue stating that readme asks to install specific version of Sphinx whereas requirements file installs whatever is the latest version at the time of installation. It'd be great to either remove specific version number from the readme, or enforce version 3.4.1 in the requirements file. I personally prefer the latter as we cannot guarantee that dev docs would always be buildable with the most recent version of Sphinx.

@josephsl
Copy link
Collaborator Author

josephsl commented Dec 27, 2020 via email

Comment from Lukasz Golonka: specify Sphinx==3.4.1 to align with readme.
@michaelDCurran michaelDCurran merged commit b58e6cc into nvaccess:master Jan 11, 2021
@nvaccessAuto nvaccessAuto added this to the 2021.1 milestone Jan 11, 2021
@josephsl josephsl deleted the devDocsReadme branch January 11, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants