Skip to content

Migrate Continuous Documentation from Vercel to Readthedocs #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Esteban82 opened this issue Apr 9, 2024 · 11 comments
Closed

Migrate Continuous Documentation from Vercel to Readthedocs #13

Esteban82 opened this issue Apr 9, 2024 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@Esteban82
Copy link
Member

As indicated by @seisman, we need to migrate from Vercel to Readthedocs.

I do not understand much how to do it so I will follow the steps here (GenericMappingTools/pygmt#1859) to do it and the files

As far as I understand I need to:

  • Delete package.json and vercel.json.
  • Add .readthedocs.yaml and ci/requirements/docs.yml
  • Edit conf.py?

Please let me know if this is ok.

@Esteban82 Esteban82 added the enhancement New feature or request label Apr 9, 2024
@Esteban82 Esteban82 self-assigned this Apr 9, 2024
@seisman
Copy link
Member

seisman commented Apr 9, 2024

  • Delete package.json and vercel.json.

Yes

  • Add .readthedocs.yaml and ci/requirements/docs.yml

ci/requirements/docs.yml is not needed here, because we have https://github.com/GenericMappingTools/gmt-examples/blob/main/environment.yml.

Yes.

You also need to sign up ReadTheDocs (https://readthedocs.org/accounts/login/?next=/dashboard/), import the gmt-examples repository, and check the "Build pull requests for this project:" box in the settings.

@Esteban82
Copy link
Member Author

Yes.

What should I update in conf.py? The file here is quite different from the pygmt file.

@seisman
Copy link
Member

seisman commented Apr 9, 2024

Yes.

What should I update in conf.py? The file here is quite different from the pygmt file.

Just add html_baseurl="https://www.generic-mapping-tools.org/gmt-examples/"

@Esteban82
Copy link
Member Author

You also need to sign up ReadTheDocs (https://readthedocs.org/accounts/login/?next=/dashboard/), import the gmt-examples repository, and check the "Build pull requests for this project:" box in the settings.

Could I do it? Or only the maintainers (in this list) can?

@seisman
Copy link
Member

seisman commented Apr 9, 2024

You also need to sign up ReadTheDocs (https://readthedocs.org/accounts/login/?next=/dashboard/), import the gmt-examples repository, and check the "Build pull requests for this project:" box in the settings.

Could I do it? Or only the maintainers (in this list) can?

I think you can. Then you can add others as maintainers. Or I can do it.

@Esteban82
Copy link
Member Author

Or I can do it.

Yes, please do it. Thanks

@seisman
Copy link
Member

seisman commented Apr 9, 2024

Or I can do it.

Yes, please do it. Thanks

Done.

@Esteban82
Copy link
Member Author

ci/requirements/docs.yml is not needed here, because we have https://github.com/GenericMappingTools/gmt-examples/blob/main/environment.yml.

Ok. So, I guess that I have to use this environment: environment.yml in the line 26 of .readthedocs.yaml. Right?

@Esteban82
Copy link
Member Author

Or I can do it.

Yes, please do it. Thanks

Done.

Great. There is nothing else to do in ReadTheDocs, is there?

@seisman
Copy link
Member

seisman commented Apr 9, 2024

ci/requirements/docs.yml is not needed here, because we have https://github.com/GenericMappingTools/gmt-examples/blob/main/environment.yml.

Ok. So, I guess that I have to use this environment: environment.yml in the line 26 of .readthedocs.yaml. Right?

yes

@seisman
Copy link
Member

seisman commented Apr 9, 2024

Or I can do it.

Yes, please do it. Thanks

Done.

Great. There is nothing else to do in ReadTheDocs, is there?

i'm not sure. please try and we will know if there are errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants