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

Fix sphinx docs #92

Merged
merged 8 commits into from
Apr 29, 2018
Merged

Fix sphinx docs #92

merged 8 commits into from
Apr 29, 2018

Conversation

leezu
Copy link
Contributor

@leezu leezu commented Apr 28, 2018

Description

This PR fixes all documentation that causes warnings when building the documentation. It also switches the CI to only pass if the documentation doesn't cause warnings.

The rationale is to make sure that we never create any errors in our documentation by accident (broken links, missing files, etc.).

leezu added 6 commits April 27, 2018 23:14
`log` (used in beam_search_generator.rst) is not a valid lexer. `bash` is for
shell scripts. We are presenting interactive sessions and should use `console`.
This is required: https://media.readthedocs.org/pdf/nbsphinx/latest/nbsphinx.pdf
Otherwise we will get a lot of warnings if the environment contains
ipynb_checkpoints..
This may not be exhaustive yet, but are the requirements needed on my machine to
build the documentation.
'docs' depends on .zip archives created in the 'release' step
Sphinx won't warn about orphan elements not being included in the TOC.
@leezu leezu requested a review from szha as a code owner April 28, 2018 01:28
@leezu leezu force-pushed the fixdocs branch 2 times, most recently from c90c024 to ed25e4b Compare April 28, 2018 07:24
@mli
Copy link
Member

mli commented Apr 28, 2018

Job PR-92/5 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-92/5/index.html

@szhengac szhengac merged commit d463407 into dmlc:master Apr 29, 2018
@leezu leezu deleted the fixdocs branch April 30, 2018 16:22
cgraywang pushed a commit to cgraywang/gluon-nlp-1 that referenced this pull request May 2, 2018
* Fix pygments lexers

`log` (used in beam_search_generator.rst) is not a valid lexer. `bash` is for
shell scripts. We are presenting interactive sessions and should use `console`.

* Add .ipynb_checkpoints to sphinx exclude_patterns

This is required: https://media.readthedocs.org/pdf/nbsphinx/latest/nbsphinx.pdf
Otherwise we will get a lot of warnings if the environment contains
ipynb_checkpoints..

* Declare development requirements

This may not be exhaustive yet, but are the requirements needed on my machine to
build the documentation.

* Make CI deploy stage fail if there are any Sphinx warnings

* Add 'release' dependency to 'docs' in Makefile

'docs' depends on .zip archives created in the 'release' step

* Declare word embedding evaluation extended_results.ipynb as orphan

Sphinx won't warn about orphan elements not being included in the TOC.

* Fix docstrings causing sphinx warnings

* Install ipython from conda-forge

Workaround ContinuumIO/anaconda-issues#1430
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants