Coder Social home page Coder Social logo

Comments (3)

scottyhq avatar scottyhq commented on June 30, 2024

We've been using Netlify for this on other projects https://jupyterbook.org/publish/netlify.html, and it is very nice to have

It's free, but requires an email account to setup and charges a subscription for multiple team members. So we have an "uwhackweeskaccount"@gmail.com account that several people have access to. I could add the site under that same account for now or does xarray already have an email account like that for other services?

Netlify requires a bit of manual setup to connect the github app (probably similar to reviewNB), but then the action for PRs is pretty straightforward
https://github.com/uwhackweek/jupyterbook-template/blob/main/.github/workflows/netlifypreview.yaml

    - name: Deploy Website Preview
      uses: nwtgck/[email protected]
      with:
        publish-dir: './book/_build/html'
        production-deploy: false
        github-token: ${{ secrets.GITHUB_TOKEN }}
        deploy-message: "Deploy from GitHub Actions"
        enable-commit-comment: false
        enable-pull-request-comment: true
        overwrites-pull-request-comment: true
        alias: deploy-preview-${{ github.event.number }}
      env:
        NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
        NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
      timeout-minutes: 1

here is a simple example where each PR gets a URL to review snowex-hackweek/website-2022#23, after a certain amount of space is used up those URLs start to get overwritten i think

from xarray-tutorial.

scottyhq avatar scottyhq commented on June 30, 2024

I should clarify, the above approach is for when JupyterBook is built via github actions as is currently done. Other hosting options have integrated PR previews via GitHub Apps. But the drawback as far as I understand is that the build happens on external resources (Read-The-Docs, Netlify) rather than via the GitHub interface on the more configurable Actions runners.

from xarray-tutorial.

dcherian avatar dcherian commented on June 30, 2024

Closed by #175

from xarray-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.