Skip to content

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

Merged
michaelDCurran merged 5 commits into
nvaccess:masterfrom
josephsl:devDocsReadme
Jan 11, 2021
Merged

Sphinx: remove 2.2.2 restriction and update readme regarding building source code docs locally#11973
michaelDCurran merged 5 commits into
nvaccess:masterfrom
josephsl:devDocsReadme

Conversation

@josephsl

Copy link
Copy Markdown
Contributor

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.
Comment thread readme.md

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

@lukaszgo1 lukaszgo1 Dec 27, 2020

Copy link
Copy Markdown
Contributor

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

josephsl commented Dec 27, 2020 via email

Copy link
Copy Markdown
Contributor Author

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