Skip to content

[MRG + 1] Fix Sphinx errors #9420

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

Merged
merged 17 commits into from
Jul 30, 2017
Merged

Conversation

balakmran
Copy link
Contributor

Reference Issue

Fixes #9417

What does this implement/fix? Explain your changes.

Fix warnings seen in doc build logs.

@jnothman
Copy link
Member

Why WIP? What remains to be done before this should be reviewed for merge?

@balakmran
Copy link
Contributor Author

I have few questions that I posted on the issue

@amueller
Copy link
Member

LGTM. why WIP, should be done now, right?

@balakmran
Copy link
Contributor Author

balakmran commented Jul 23, 2017

/doc/modules/classes.rst:2: WARNING: Literal block expected; none found.
Should I add a new tag like api_ref at Line 1?

Citation [RH2007] is not referenced. (There were many)
Should I remove ref and replace with an asterisk (*)?

I posted these questions on the issue earlier.

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

/doc/modules/classes.rst:2: WARNING: Literal block expected; none found. Should I add a new tag like api_ref at Line 1?

I don't understand this warning. Do you?

Citation [RH2007] is not referenced. (There were many) Should I remove ref and replace with an asterisk (*)?

Yes, I guess so

----------

.. [Rouseeuw1999] `A Fast Algorithm for the Minimum Covariance
Determinant Estimator, 1999, American Statistical Association and
Copy link
Member

Choose a reason for hiding this comment

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

Is this properly indented?

----------

.. [Rouseeuw1999] `A Fast Algorithm for the Minimum Covariance
Determinant Estimator, 1999, American Statistical Association and
Copy link
Member

Choose a reason for hiding this comment

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

Is this properly indented?

@@ -85,7 +85,7 @@ class LocalOutlierFactor(NeighborsBase, KNeighborsMixin, UnsupervisedMixin):

p : integer, optional (default=2)
Parameter for the Minkowski metric from
:ref:`sklearn.metrics.pairwise.pairwise_distances`. When p = 1, this is
Copy link
Member

Choose a reason for hiding this comment

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

I think this should work if you change :ref: to :func:, and I would much prefer that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@balakmran
Copy link
Contributor Author

Thanks, @jnothman for the review comments. Made necessary changes.

@balakmran
Copy link
Contributor Author

/doc/modules/classes.rst:2: WARNING: Literal block expected; none found. Should I add a new tag like api_ref at Line 1?
I don't understand this warning. Do you?

I was unsure though. But I guess it was expecting a tag at the beginning of the file. ( .. _: )

@balakmran balakmran changed the title [WIP] Fix Sphinx errors [MRG] Fix Sphinx errors Jul 23, 2017
@jnothman
Copy link
Member

jnothman commented Jul 23, 2017 via email

@jnothman
Copy link
Member

I've not confirmed the absence of warnings now, but the changes LGTM.

@balakmran
Copy link
Contributor Author

How do I get the travis generated html docs URL?

@jnothman
Copy link
Member

Tennis doesn't generate docs, circle does. The link under details is https://circleci.com/gh/scikit-learn/scikit-learn/12398?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link. This will show logs etc. You can go straight to the rendered docs with http://scikit-learn.org/circle?12398. http://scikit-learn.org/circle?12398/_changed.html tries to list what's changed.

@amueller
Copy link
Member

/doc/modules/classes.rst:2: WARNING: Literal block expected; none found.

I don't understand this error and it has been there forever. We should maybe investigate, but I don't think you should worry about it for this PR.

@amueller
Copy link
Member

LGTM

@amueller
Copy link
Member

there's still

/home/ubuntu/scikit-learn/doc/modules/calibration.rst:193: WARNING: Footnote [1] is not referenced.
/home/ubuntu/scikit-learn/doc/modules/calibration.rst:196: WARNING: Footnote [2] is not referenced.
/home/ubuntu/scikit-learn/doc/modules/calibration.rst:199: WARNING: Footnote [3] is not referenced.
/home/ubuntu/scikit-learn/doc/modules/calibration.rst:205: WARNING: Footnote [5] is not referenced.
/home/ubuntu/scikit-learn/doc/modules/covariance.rst:300: WARNING: Footnote [3] is not referenced.
/home/ubuntu/scikit-learn/doc/modules/covariance.rst:302: WARNING: Footnote [4] is not referenced.

@amueller amueller changed the title [MRG] Fix Sphinx errors [MRG + 1] Fix Sphinx errors Jul 24, 2017
@balakmran
Copy link
Contributor Author

balakmran commented Jul 24, 2017

Thank you @jnothman for the links.
Let me fix calibration and covariance @amueller

@balakmran
Copy link
Contributor Author

Fixing few issues found from CircleCI rendered doc.

References
----------

.. [Rouseeuw1999] `A Fast Algorithm for the Minimum Covariance
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@amueller @jnothman Why do I see a different number here? HTML Link

image

image

Copy link
Member

Choose a reason for hiding this comment

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

can you try removing the 1999 from the tag?

Copy link
Contributor Author

@balakmran balakmran Jul 25, 2017

Choose a reason for hiding this comment

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

I think it's auto generating the number as the same tag has been used several times in the file.

@balakmran
Copy link
Contributor Author

Verified all modified HTML links. Looks Good except Rouseeuw1999 link.

Estimator, 1999, American Statistical Association and the American
Society for Quality, TECHNOMETRICS`
.. [Butler1993] `R. W. Butler, P. L. Davies and M. Jhun,
.. [ButlerDavies1993] `R. W. Butler, P. L. Davies and M. Jhun,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I still get wrong tag names after having them unique. Any idea?

image

@jnothman
Copy link
Member

Hmm. The renumbering logic lives here: https://github.com/numpy/numpydoc/blob/master/numpydoc/numpydoc.py#L40. I've not looked at it, but if you find a bug, fixes to numpydoc are welcome. We've only recently adopted it and have some fixes to make before releasing scikit-learn using it in 0.20

@balakmran
Copy link
Contributor Author

Ok, I can give it a try.
For now, what should I do with this PR?

@jnothman
Copy link
Member

jnothman commented Jul 26, 2017 via email

@amueller
Copy link
Member

most of the PR is independent of this issue, right?
Anyhow, I think this issue might be resolved by not naming references with numbers at the end.

@balakmran
Copy link
Contributor Author

Hi @amueller Tried without numbers. No luck. Still seeing some random numbers appended at the end of the tag.

@amueller
Copy link
Member

That's really weird....

@amueller
Copy link
Member

I say open a new issue for that and let's merge this.

@balakmran
Copy link
Contributor Author

Created an issue @amueller

@jnothman
Copy link
Member

Thanks @bmanohar16

@jnothman jnothman merged commit 04be1a9 into scikit-learn:master Jul 30, 2017
@balakmran balakmran deleted the sphinx-errors branch July 31, 2017 00:32
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Aug 6, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR scikit-learn#6651

* Change tag name
Old refers to new tag added with PR scikit-learn#7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
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.

Fix remaining sphinx errors
3 participants