-
Notifications
You must be signed in to change notification settings - Fork 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
Let theme authors decide the version of the data supported #61
Comments
If there is not This way, we force the user of our structure to clearly communicate the version they support. |
humitos
added a commit
that referenced
this issue
Apr 27, 2023
Let users to define `<meta name="readthedocs-api-version" content="1.0">` to tell Read the Docs client what is the API scheme version supported by them. When our client request the API data, if the `api_version` returned does not match with the one expected by the user, another request is done to force a particular API scheme version. Then, we dispatch a `readthedocsdataready` custom event and expose `window.readthedocs`, to let our users know this data is ready to be consumed by their own integrations. Closes #60 Closes #61
humitos
added a commit
that referenced
this issue
Apr 27, 2023
Let users to define `<meta name="readthedocs-api-version" content="1.0">` to tell Read the Docs client what is the API scheme version supported by them. When our client request the API data, if the `api_version` returned does not match with the one expected by the user, another request is done to force a particular API scheme version. Then, we dispatch a `readthedocsdataready` custom event and expose `window.readthedocs`, to let our users know this data is ready to be consumed by their own integrations. Closes #60 Closes #61
humitos
added a commit
that referenced
this issue
Apr 27, 2023
Let users to define `<meta name="readthedocs-api-version" content="1.0">` to tell Read the Docs client what is the API scheme version supported by them. When our client request the API data, if the `api_version` returned does not match with the one expected by the user, another request is done to force a particular API scheme version. Then, we dispatch a `readthedocsdataready` custom event, to let our users know this data is ready to be consumed by their own integrations. Closes #60 Closes #61
humitos
added a commit
that referenced
this issue
Apr 15, 2024
…Event` (#64) Let users to define `<meta name="readthedocs-api-version" content="1.0">` to tell Read the Docs client what is the API scheme version supported by them. When our client request the API data, if the `api_version` returned does not match with the one expected by the user, another request is done to force a particular API scheme version. Then, we dispatch a `readthedocsdataready` custom event ~~and expose `window.readthedocs`~~, to let our users know this data is ready to be consumed by their own integrations. Closes #60 Closes #61 Closes #17 Closes readthedocs/readthedocs.org#9957 Closes #250
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a
<meta name="readthedocs" content="version: 1.0" />
This will let the client how to expose the
window.readthedocs
object. The client may need to do an extra call to the API to get the data in the structure the theme is expecting.See #60 which is the one that will use this to keep compatibility.
The text was updated successfully, but these errors were encountered: