-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
themeConfig metadatas
field possibly not working in beta.0
#4868
Comments
Oh, my bad, will be fixed in #4871 |
Thanks! I saw one other issue with the upgrade that showed up sometime between
Not sure if this is a bug or what. I temporarily worked around it by adding |
Apparently this is expected behavior because we are parsing our "custom" Markdown first-level heading, so if you set |
Yeah, actually, that's exactly the kind of thing we want to do. Not on every page, of course, but pages like https://react-redux.js.org/api/provider . Also, I think sometimes the headers we've shown don't necessarily match the page titles. Now, admittedly part of the problem here is we've copy-pasted the front matter across new pages as we create them, so the But, this definitely used to work fine as-is up until the upgrade from |
Seems tricky, since to resolve this case we should parse/render Markdown syntax in first-level heading (to at least avoid using such workaround with |
Note that we do frequently use Markdown syntax in other headers as well, but that doesn't cause issues the way this is. |
Do you mean other headings (not the first-level)? |
Yeah, example: https://redux-toolkit.js.org/api/createAsyncThunk#type |
🐛 Bug Report
We've got the Redux docs sites configured to show minimal-sized social media previews:
Today I've been merging in the PRs that upgraded us from versions around
alpha.72
or so tobeta.0
.In the process, I noted that the new sites are showing a different social media preview format, whereas the main RTK site (which has not yet been updated) is still showing the desired smaller preview:
This suggests to me that the beta or one of the last alphas may have somehow stopped including the
metadatas
field. If I look at the Redux core "Getting Started" page now, withbeta.0
, I see these headers:whereas the Redux Toolkit "Getting Started" page, which has not yet been redeployed and updated, shows these headers:
and both of them have the same
metadatas
configuration in their config file.Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Unconfirmed, but likely:
docusaurus.config.js
with:alpha.72
or similar alpha'twitter:card'
header is displayed in the pagebeta.0
and rebuildlarge_image_summary
header is included insteadExpected behavior
The Twitter image format specified
metadatas
would used, as it has beenActual Behavior
The specified Twitter format was not used and the header results in the wrong social media preview size
Your Environment
I see the bug in the currently deployed Redux core and React-Redux docs sites (https://redux.js.org, https://react-redux.js.org).
As a specific example, these were the React-Redux upgrade PRs:
Used Docusaurus version:
2.0.0-beta.0
Reproducible Demo
Skipping for the moment because it's late and I need to call it a night.
The text was updated successfully, but these errors were encountered: