Skip to content

Build Documentation in Travis  #10895

Closed
Closed

Description

@jzf2101

Based on #10891, we are not currently catching documenation build issues in our CI. As in Jupyter notebook jupyter/notebook#1749 , we should be both building the documentation and documenting jupyter/notebook#1749 how to build the docs.

@Carreau should we also get Appveyor to build?

Activity

  1. jzf2101 commented on Nov 12, 2017

    @jzf2101
    ContributorAuthor

    @lesley2958 @jiaqi216 are either of you interested in taking this on?

  2. Carreau commented on Nov 12, 2017

    @Carreau
    Member
  3. takluyver commented on Nov 13, 2017

    @takluyver
    Member

    We should check whether something like the markdown fenced code block syntax actually produces an error. I would guess Sphinx issues a warning and carries on.

    We can tell Sphinx to fail on warnings, so we check that the docs build with no warnings. But people might find that strictness irritating. I got four warnings building the docs just now, for instance.

  4. Carreau commented on Nov 13, 2017

    @Carreau
    Member

    Let's get it to build first, then we can make it more restrictive progressively (like check links do not 404...etc).

  5. takluyver commented on Nov 13, 2017

    @takluyver
    Member

    Sounds good.

  6. douglatornell commented on Nov 20, 2017

    @douglatornell
    Contributor

    Summarizing today's flurry of activity on this issue:

    This is work that was done at the PyCon Canada sprints under the guidance of @jzf2101.

    In #10911 @olesyabar and @syutbai added the Sphinx docs build to Travis-CI.

    In #10912 I added docs for contributors to tell them how to build the docs locally.

    The test of the Travis-CI docs build, and local docs builds produce 6 warnings at this time [1].
    #10913 fixes markup in docstrings to resolve 2 of those warnings.
    326f41b adds the docrepr package to the docs build dependencies to resolve another warning.
    Two more are caused by the way that a docstring in python/cpython/Lib/pdb.py [2] is written [3] and the possible resolution may lie in Sphinx [4].

    The remaining warning is::

    WARNING: dot command 'dot' cannot be run (needed for graphviz output), check the graphviz_dot setting
    

    and @olesyabar is working on that.

    [1] #10911 (comment)
    [2] https://github.com/python/cpython/blob/423fd362f8e4d6c867a5afc8ac7cbeeb66cac19c/Lib/pdb.py#L1107
    [3] #10911 (comment)
    [4] sphinx-doc/sphinx/issues/4251

  7. Carreau commented on Nov 21, 2017

    @Carreau
    Member

    Oh thanks @douglatornell for the summary and he crosslinks this is extremely useful and appreciated. I'm on european timezone so will try to review some of that in the next few hours before PyConCa wakes up !

  8. jzf2101 commented on Nov 21, 2017

    @jzf2101
    ContributorAuthor

    @Carreau Are we ready to close this for now?

  9. takluyver commented on Nov 21, 2017

    @takluyver
    Member

    I think so. Thanks to all the PyconCA sprinters who worked on this and related issues.

    The next steps for the docs in CI are to clear up the remaining warnings, and then use the Sphinx option which causes an error if any warning occurs.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions