-
Notifications
You must be signed in to change notification settings - Fork 110
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
[Planned Feature] Updating Docusaurus 2 to Docusaurus 3 #80
Comments
Old code:
Now I did this:
In DevTools you can see that it used to work like this: <div>
<a href="https://themirrorgdp.itch.io/the-mirror" target="_blank" rel="noopener noreferrer" class="button mirror-success-button button--lg">
Download Directly on Itch
</a>
</div> And now like this: <div>
<a class="button mirror-success-button button--lg" href="https://themirrorgdp.itch.io/the-mirror">
<p>Download Directly on Itch</p>
</ a>
</div> In DevTools you can see that the
The work is not finished yet.
|
It was one of those sad stories that began with the phrase “Now I’ll quickly update and continue further” 😆 |
As far as I understand, in Docusaurus 2, the TabItem component was automatically available in MDX without the need for explicit import. However, in Docusaurus 3, this component requires explicit import. Therefore, in all files where TabItem is used, I imported. import TabItem from '@theme/TabItem'; The build was successful. I ran It remains to resolve the issue of opening links in a new window by default. |
I continue to figure out why, after upgrading from Docusaurus 2 to Docusaurus 3, our default functionality to open all links in a new window broke. That is, now the @Kluskey Please tell me, do you remember if you did this functionality yourself in Docusaurus 2 or was it the default behavior in Docusaurus 2 that changed in Docusaurus 3? I need to know this in order to understand what exactly I should investigate, where exactly I need to look for the source of this problem 😊 |
I’ll add an additional clarification that now in Docusaurus 3, in a new way (without using Here is a link in Docusaurus 3 that works as it used to work in Docusaurus 2 (the
But such a link in Docusaurus 3 is broken, it does not work as it used to work in Docusaurus 2 (the
|
You can endlessly look at three things: how the fire burns, how the water flows and how programmers improve the code and fight bugs 😊 Since it has now become clear that in Docusaurus 3, links that are created using the HTML
@Kluskey Please tell me, do you have any other suggestions or should I implement the plan I wrote above? |
I did as I wrote above and sent a Pull Request. |
Description
Before setting up Docusaurus to work with multilingual documentation (Issue #42), you must upgrade Docusaurus 2 to Docusaurus 3.
Acceptance Criteria
After updating Docusaurus 2 to Docusaurus 3, nothing will break and for the user the documentation will look the same as it looked before when it was implemented on Docusaurus 2.
The text was updated successfully, but these errors were encountered: