Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Switch to makefile-based doc build.#9513

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 2 commits intomatplotlib:masterfromanntzer:make-docs
Dec 3, 2017

Conversation

anntzer
Copy link
Contributor

PR Summary

My own attempt at switching tomake html for docs build.

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

This seems to work on my machine. I checked the options that were documented, and they seemed to work. I also checked the built docs and they look fine, though of course I didn't go down each tree.

Matplotlib documentation
========================


Copy link
Member

Choose a reason for hiding this comment

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

This seems to duplicate documenting_mpl.rst Can all of this just be removed and replaced by reference?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

yup, fixed


.. note::

* You'll need a minimal working LaTeX distribution for many examples to run.
* `Graphviz <http://www.graphviz.org/Download.php>`_ is not a python package, and needs
* `Graphviz <http://www.graphviz.org/Download.php>`_ is not a python package, and needs
Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary change?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

fixed, dunno how the spare space got there

@@ -54,7 +54,7 @@ temporarily comment out the include and toctree glob; re-instate these after a
release. Finally, make sure that the docs build cleanly ::

pushd doc
pythonmake.py htmllatex -n 16
make htmllatexpdf -n$(nproc)
Copy link
Member

Choose a reason for hiding this comment

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

O=-n$(nproc)? Currently, this will buildhtml andlatexpdf in parallel, but I'm not sure Sphinx will like two runs occurring in parallel.

Copy link
Member

Choose a reason for hiding this comment

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

Ooops, I didn't check this one. Good eye: that doesn't run at all on my machine.

Glad someone more knowledgeable is reviewing!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good catch.

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 you only fixed the one below that didn't have this comment. 😛

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

try again...

doc/make.bat Outdated
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
Copy link
Member

Choose a reason for hiding this comment

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

Don't you need to check for sphinx build before running this too?

Copy link
ContributorAuthor

@anntzeranntzerNov 16, 2017
edited
Loading

Choose a reason for hiding this comment

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

this should be reported to upstream but I fixed it locally.
(can you do it?)

@anntzer
Copy link
ContributorAuthor

Comments addressed in force-pushed commit. Thanks for the review.

@anntzeranntzerforce-pushed themake-docs branch 2 times, most recently from7e8ccbc to3438f84CompareNovember 17, 2017 00:02
@anntzer
Copy link
ContributorAuthor

rebased after the merge of#9311

doc/Makefile Outdated
#

# You can set these variables from the command line.
SPHINXOPTS =
Copy link
Member

Choose a reason for hiding this comment

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

Can we default to-W?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I would much prefer not: when building locally I can easily check from the log whether the build failed, but I'd rather not have the build (which can be quite lengthy) fail halfway, fix one error, restart a build, wait another 5min, fix the next error, etc. (WellI know --allowsphinxwarnings, or, on the new system, how to override O=; but I think it's not the most new-contributor friendly way to do it...)
(xrefsphinx-doc/sphinx#3627)

Copy link
Member

Choose a reason for hiding this comment

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

The CI runs with it so new contributors are going to have to deal with the failures one way or the other and getting them locally by default seems nicer than having to go through CI

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Warnings are perfectly well printed without -W as well, the only effects of -W are that 1) the build stops after the first failure (not so nice for new contribs) and 2) the return status is nonzero in that case (relevant for CI, not so much for new contribs).

Copy link
Member

Choose a reason for hiding this comment

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

I can see both sides, but I guess I think it'd be more confusing to have it build locally and then fail on CI. OTOH it'd be great to have the warning switch very clearly documented so knowledgable users can run that way and then clean all their errors in one compile.

Besides, the current behaviour is to fail on warning by default.

@anntzer
Copy link
ContributorAuthor

Minor edit to usemake -Cdoc ... instead on pushd/popd in the release guide.

@QuLogic
Copy link
Member

Seems to need a rebase.

@anntzer
Copy link
ContributorAuthor

fixed

@tacaswell
Copy link
Member

I prefer to default to fail-on-warning, but will not block the PR over it.

@anntzer
Copy link
ContributorAuthor

changed to -W by default

@@ -1,228 +0,0 @@
#!/usr/bin/env python
Copy link
Member

Choose a reason for hiding this comment

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

OK, this all looks great to me, and it works, and the tests pass, so I think its good to go.But do we need to removemake.py? Someone may have a fancy script that uses it for something and want to keep it around, maybe with a big warning at the beginning that its going away soon?

The converse of that argument is that it might be confusing to have both.

I don't really care, but was just trying to think of what could go wrong.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I don't think we ever made any guarantees as to backcompatibility of tooling (and wouldn't want to do so either).

Copy link
Member

Choose a reason for hiding this comment

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

Even I think we don't need to worry about this too much. The downstream packagers (debian, fedora, etc) will need to adapt their build scripts, but it is clearly documented what to change it too.

@tacaswelltacaswell merged commit5392f2e intomatplotlib:masterDec 3, 2017
@tacaswell
Copy link
Member

Thanks@anntzer

@jklymak
Copy link
Member

Yay!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell left review comments

@QuLogicQuLogicQuLogic left review comments

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v2.2.0
Development

Successfully merging this pull request may close these issues.

5 participants
@anntzer@QuLogic@tacaswell@jklymak@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp