You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We used the Vercel app to preview the changes for PyGMT. Does anyone know if continuous documentation would similarly work for GMT? I can adjust the css settings for a different font, but it will not be convenient for everyone to build locally to evaluate the changes.
Does anyone know if continuous documentation would similarly work for GMT?
Vercel should work for GMT, but I guess it's more complicated because we need to download and build the GMT codes first. I could give it a try or you want to try it?
Does anyone know if continuous documentation would similarly work for GMT?
Vercel should work for GMT, but I guess it's more complicated because we need to download and build the GMT codes first. I could give it a try or you want to try it?
I have never used Vercel before, so it would likely go better for you to try if you do not mind.
it probably wasn't a good idea to use GMT as the team name on Vercel (i.e. vercel.com/gmt) for PyGMT
Can we change the team name to "GenericMappingTools"?
You mean without spaces? Sure. But for the Team URL, I would recommend keeping it as GMT, so that the vercel URL will be shorter. For those without any idea what we're talking about, this is a screenshot from the Vercel settings page:
@PaulWessel, do you think it's worth inquiring about the open source pricing for Vercel?
Sure, that cannot hurt. At $20/mo we would be at $240/year which is still something the budget could absorb though.
OK, I will reach out to Vercel. I think a discount will be necessary - my interpretation of the standard pricing is $20/mo/team member which could get exorbitant quickly.
@meghanrjones Although we're using Vercel in pygmt and website, and it works well in these two repositories, I still don't like it. The main reasons are:
As you can see in the pygmt repository, we need to add two files package.json and vercel.json to the repository.
For GMT, we need to write instructions in the pacakge.json file to build GMT and the documentation. It's not easy to do, because the package.json file is in JSON format (developer unfriendly)
I tried to switch the vercal-action in PR Use Vercel action for continuous documentation pygmt#964, so that we can build the documentation in the CI and then deploy to vercel. However, it doesn't work for PRs from forks, so making it useless to an open-source project.
@meghanrjones Although we're using Vercel in pygmt and website, and it works well in these two repositories, I still don't like it. The main reasons are:
1. As you can see in the pygmt repository, we need to add two files `package.json` and `vercel.json` to the repository.
2. For GMT, we need to write instructions in the `pacakge.json` file to build GMT and the documentation. It's not easy to do, because the `package.json` file is in JSON format (developer unfriendly)
3. I tried to switch the vercal-action in PR [GenericMappingTools/pygmt#964](https://github.com/GenericMappingTools/pygmt/pull/964), so that we can build the documentation in the CI and then deploy to vercel. However, it doesn't work for PRs from forks, so making it useless to an open-source project.
OK, I do not know of a better solution than Vercel. So, it seems like the best path forward is to keep Vercel for now but to not upgrade the account in hopes that a better option is developed in the future.
@meghanrjones Although we're using Vercel in pygmt and website, and it works well in these two repositories, I still don't like it. The main reasons are:
1. As you can see in the pygmt repository, we need to add two files `package.json` and `vercel.json` to the repository.
2. For GMT, we need to write instructions in the `pacakge.json` file to build GMT and the documentation. It's not easy to do, because the `package.json` file is in JSON format (developer unfriendly)
3. I tried to switch the vercal-action in PR [GenericMappingTools/pygmt#964](https://github.com/GenericMappingTools/pygmt/pull/964), so that we can build the documentation in the CI and then deploy to vercel. However, it doesn't work for PRs from forks, so making it useless to an open-source project.
OK, I do not know of a better solution than Vercel. So, it seems like the best path forward is to keep Vercel for now but to not upgrade the account in hopes that a better option is developed in the future.
Activity
maxrjones commentedon Feb 24, 2021
We used the Vercel app to preview the changes for PyGMT. Does anyone know if continuous documentation would similarly work for GMT? I can adjust the css settings for a different font, but it will not be convenient for everyone to build locally to evaluate the changes.
seisman commentedon Feb 24, 2021
Vercel should work for GMT, but I guess it's more complicated because we need to download and build the GMT codes first. I could give it a try or you want to try it?
maxrjones commentedon Feb 24, 2021
I have never used Vercel before, so it would likely go better for you to try if you do not mind.
seisman commentedon Feb 24, 2021
OK.
weiji14 commentedon Feb 26, 2021
Looking back, it probably wasn't a good idea to use GMT as the team name on Vercel (i.e. https://vercel.com/gmt) for PyGMT 😅. The current (old) free plan we're on has a limit of 3 owners (me, @seisman and @leouieda). I can probably kick Leo out and add you in @meghanrjones so you can actively work on things behind the scenes. Or we can upgrade and pay $20/month per team member according to https://vercel.com/pricing (or send them an email since we might be able to get an open source plan) 🙂
seisman commentedon Feb 26, 2021
Can we change the team name to "GenericMappingTools"?
weiji14 commentedon Mar 1, 2021
You mean without spaces? Sure. But for the Team URL, I would recommend keeping it as GMT, so that the vercel URL will be shorter. For those without any idea what we're talking about, this is a screenshot from the Vercel settings page:
maxrjones commentedon Mar 1, 2021
@PaulWessel, do you think it's worth inquiring about the open source pricing for Vercel?
PaulWessel commentedon Mar 1, 2021
Sure, that cannot hurt. At $20/mo we would be at $240/year which is still something the budget could absorb though.
maxrjones commentedon Mar 1, 2021
OK, I will reach out to Vercel. I think a discount will be necessary - my interpretation of the standard pricing is $20/mo/team member which could get exorbitant quickly.
PaulWessel commentedon Mar 1, 2021
Right, forgot the math on the times number of team members. That would get uglier.
seisman commentedon Mar 1, 2021
@meghanrjones Although we're using Vercel in pygmt and website, and it works well in these two repositories, I still don't like it. The main reasons are:
package.jsonandvercel.jsonto the repository.pacakge.jsonfile to build GMT and the documentation. It's not easy to do, because thepackage.jsonfile is in JSON format (developer unfriendly)maxrjones commentedon Mar 1, 2021
OK, I do not know of a better solution than Vercel. So, it seems like the best path forward is to keep Vercel for now but to not upgrade the account in hopes that a better option is developed in the future.
weiji14 commentedon Mar 2, 2021
Netlify is probably the closest competitor to Vercel. Another one is readthedocs, they have a documentation previewer for each Pull Request (see https://docs.readthedocs.io/en/stable/pull-requests.html) (xarray uses it). Either way there will be time spent on development to use any of these platforms.