Comments (3)
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.
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.
Closed by #175
from xarray-tutorial.
Related Issues (20)
- Add more options to run interactively on the cloud HOT 20
- Add non-geoscience example datasets HOT 4
- Add CONTRIBUTING.md to website
- add rough logo
- Add general codespaces setup to README.md HOT 4
- Cartopy plot not rendering HOT 4
- Add sphinx-sitemap
- Review indexing material HOT 1
- A few points for improving the indexing notebooks HOT 3
- Tutorial on custom indexes
- Missing examples for the map and map_dataarray methods of FacetGrid objects
- Link needed for "Working with labeled data" tutorial HOT 2
- Remote access patterns using xarray. HOT 1
- Update to JupyterBook 1.0 HOT 1
- Update deprecated scipy.integrate.trapz to trapezoid
- Set navigation_with_keys=False explicitly
- Periodically check for broken links
- Generate website preview link even if build fails on PRs HOT 1
- Xarray tutorial with custom SSL cert? HOT 3
- Binder environment solve failing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xarray-tutorial.