Skip to content

add sphinx documentation build to CI #771

Closed

Description

@wholmgren

A handful of recent PRs have broken the documentation build. We should add the documentation build to the azure pipelines CI configuration and fail it if the documentation errors.

Activity

  1. added this to the 0.7.0 milestone on Aug 23, 2019
  2. Peque commented on Aug 28, 2019

    @Peque
    Contributor

    Maybe you want to have a look at Autobuild Documentation for Pull Requests, since you are already using Read the Docs and GitHub.

  3. wholmgren commented on Aug 28, 2019

    @wholmgren
    MemberAuthor

    Nice, thanks. My reading is that it's currently only available for readthedocs itself. Hoping I'm wrong or that it becomes more widely available soon. I imagine they might be faced with a large increase in compute needs.

  4. Peque commented on Aug 28, 2019

    @Peque
    Contributor

    Yeah, it is in beta. You can currently email them to enable the feature. Just wanted to link it here in case you want to try it early or in case it comes out of beta before anybody fixes this issue.

    They will probably be faced with a large increase in compute needs, yeah, but I hope they can compensate that with paying subscriptions, as this was a largely requested feature for private repositories as well. 😊

  5. wholmgren commented on Aug 28, 2019

    @wholmgren
    MemberAuthor

    Thanks, I emailed them.

  6. wholmgren commented on Aug 29, 2019

    @wholmgren
    MemberAuthor

    RTD added us the the beta program and I modified our RTD webhook to support PR doc builds. Docs for existing PRs will be built after a new commit is pushed. For example: https://external-builds.readthedocs.io/html/pvlib-python/773/index.html

    Thanks again for pointing out this feature!

  7. modified the milestones: 0.7.0, 0.7.1 on Nov 26, 2019
  8. modified the milestones: 0.7.1, 0.7.2 on Jan 10, 2020
  9. CameronTStark commented on Feb 22, 2020

    @CameronTStark
    Contributor

    I've been thinking about the gallery contributions and wondering how they can be tested within the CI. I'd like to make sure that these contributions are kept up to date with API changes so newbies don't have to worry about broken examples.

    I'm just starting to explore this and might open a separate issue to address but I at least wanted to begin to explore the idea here.

  10. kandersolar commented on Feb 22, 2020

    @kandersolar
    Member

    It's not a full test in that it doesn't check for expected output, but sphinx-gallery has some built-in handling for broken tests: https://sphinx-gallery.github.io/stable/configuration.html#dealing-with-failing-gallery-example-scripts

  11. CameronTStark commented on Feb 23, 2020

    @CameronTStark
    Contributor

    Thank you for that @kanderso-nrel. An error will be raised which should fit our needs with the CI.

  12. mikofski commented on Feb 23, 2020

    @mikofski
    Member

    Sphinx had built in doctests. Enable it like any other extension by adding sphinx.ext.doctest to the conf.py. SciPy uses this so that all examples are legit. It doesn't run on the CI, but the docs won't build on RTD if any examples fail.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions