Skip to content
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

fix: correct docs path for references #601

Merged

Conversation

augustoccesar
Copy link
Contributor

@augustoccesar augustoccesar commented Sep 1, 2024

Summary

The Stripe documentation now is hosted on https://docs.stripe.com/api. The old https://stripe.com/docs/api still works but gets redirected to the new one.
The issue is with how we use to generate documentation link on url_finder.rs. On that file, we look for the load the docs and find the window.__INITIAL_STATE__, which contains relative links to the resources.
We are using those relative links as if they were relative from https://stripe.com, but now they are relative from https://docs.stripe.com which causes the links to not be correctly built.
This is the issue that is causing the verify-codegen CI job to fail.
By updating it to the right path, it should stop generating incorrect path to the docs.

Checklist

@augustoccesar augustoccesar force-pushed the fix/generated-docs-with-openapi-install branch 2 times, most recently from 4b8c467 to 11aaa64 Compare September 1, 2024 18:18
@arlyon
Copy link
Owner

arlyon commented Sep 3, 2024

Thanks! Rerunning CI

The Stripe documentation now is hosted on https://docs.stripe.com/api. The old https://stripe.com/docs/api still works but gets redirected to the new one.
The issue is with how we use to generate documentation link on url_finder.rs. On that file, we look for the load the docs and find the window.__INITIAL_STATE__, which contains relative links to the resources.
We are using those relative links as if they were relative from https://stripe.com, but now they are relative from https://docs.stripe.com  which causes the links to not be correctly built.
This is the issue that is causing the verify-codegen CI job to fail.
By updating it to the right path, it should stop generating incorrect path to the docs.
@augustoccesar augustoccesar force-pushed the fix/generated-docs-with-openapi-install branch from 11aaa64 to 539836d Compare September 3, 2024 11:18
@arlyon
Copy link
Owner

arlyon commented Sep 3, 2024

I think failing ci is a memory issue. Hopefully will be a thing of the past with the next branch. Since all others pass I will merge.

@arlyon arlyon merged commit 4b9902e into arlyon:master Sep 3, 2024
14 of 17 checks passed
@arlyon
Copy link
Owner

arlyon commented Sep 3, 2024

🎉 This PR is included in version 0.39.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@arlyon arlyon added the released label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants