Skip to content

Automated documentation previews in pull requests #342

Closed

Description

@weiji14

Description of the desired feature

Make it easier to preview changes to the documentation online in every pull request, rather than having to clone the branch and do a local build. I.e. Continuous Documentation.

Will be especially helpful for new contributors and even reviewers wanting a quick look at what's going up on the website. This was hinted at during #314.

Documentation preview

I'm gonna try to set up an automated Continuous Deployment site, just a heads up!

Are you willing to help implement and maintain this feature? Yes

Activity

  1. added
    feature request
    on Oct 10, 2019
  2. seisman commented on Oct 10, 2019

    @seisman
    Member

    @weiji14 I received your request to install a github app to the pygmt repository, but I can't find any description about the app. Is it related to this issue? Could you post the homepage of this app?

  3. weiji14 commented on Oct 10, 2019

    @weiji14
    MemberAuthor
  4. weiji14 commented on Oct 10, 2019

    @weiji14
    MemberAuthor

    I'll try to get it to work on my own fork first. Need to find a way to make it do cd doc && make all

  5. seisman commented on Oct 10, 2019

    @seisman
    Member

    I’ve approved and installed the app.

  6. weiji14 commented on Oct 10, 2019

    @weiji14
    MemberAuthor

    Cool, this might take a bit of time (and experimentation) to set up, but hope it'll be worth it!

  7. weiji14 commented on Oct 11, 2019

    @weiji14
    MemberAuthor

    Hmm, I might have messed up the github app integration. Sorry @seisman, could you uninstall it first, and I'll try to request it to be reinstalled again?

  8. seisman commented on Oct 11, 2019

    @seisman
    Member

    @weiji14 I've uninstalled it.

  9. seisman commented on Oct 11, 2019

    @seisman
    Member

    @weiji14 I've approved the app and send you an email with a Now link, which may be necessary for installation.

  10. weiji14 commented on Oct 11, 2019

    @weiji14
    MemberAuthor

    Ah cool, I think I've got it up now. I've also emailed you an invite link to join the 'gmt' organization on Now. There's shouldn't be much to configure though, getting the Github App Integration set up should be all we need.

    If you can review #343, I'll get that merged and close this issue in #344.

  11. leouieda commented on Oct 13, 2019

    @leouieda
    Member

    Thanks, Wei! I experimented with this in the past but it was hard to do with the CIs because forks don’t have access to encrypted variables needed for deploying. Does this app offer a way around that?

  12. weiji14 commented on Oct 13, 2019

    @weiji14
    MemberAuthor

    The Zeit Now for Github App integration does a deploy every time a git push is made to the repo (be it in a Pull Request or master), and I think it has certain permissions to allow it to do that. For example at #344, there's a url for every commit, and also one for the PR/fork that keeps itself updated every commit, and is referenced to the fork's name (e.g. https://pygmt-git-fork-weiji14-continuous-docs.gmt.now.sh).

    I did experiment with making deployments via Github Actions CI (which I've attempted in my personal fork at weiji14#45) but that required setting a 'secrets' token variable. We can use a token as well to deploy to Zeit Now, but it's not strictly required with the app.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions