-
Notifications
You must be signed in to change notification settings - Fork 4.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
Migrate React Native website to Docusaurus V2 #2263
Migrate React Native website to Docusaurus V2 #2263
Conversation
This reverts commit 0a314ba.
…mp (#12) * fix local build, basic theme overrides, header reorder, docusaurus bump * add navbar override group, update navbar typography * tweak version switcher and hr design * update page links style, fix text color issues * use docsVersionDropdown in navbar * fix validation warning * footer design tweaks, jsx as default prism language * add native code banner, fix version label design, update notes style * static dark navbar, color fix, docusaurus bump * tweak dark theme, fix page shrinking issue * navbar UI and positioning tweaks, update blog page * sidebar spacing, minor color tweaks
* add additional languages for prism * set up custom theme for prism * customize according to solarized dark theme * add custom syntax highlighting from react-native * rename theme file, add Kotlin, fix one ObjC block Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
* add line highlighting with the correct syntax * use css to display line highlighting * move css for line highlighting into page overrides section
The In theory, having V1 archive up and running makes this PR ready to review and merge 🙂 |
What are the next steps for this PR? Can you make a checklist in the summary of this PR? Let me know when you need me for final review. |
@cpojer I have posted all the steps within the migration plan last week. Since V1 Archive is deployed this PR should be ready to merge. The commits that appears in this PR lately are just a small tweaks which should not affect the functionality and break the deployment in any way. Currently we are only not sure if V2 deploy will work from When the V2 deploy will be finished we need to ask Algolia to update the search index and recrawl the website. There are also several minor checks that need to be done after the deployment, for example: if the Google Analytics events are tracked correctly, but all major checks or task are done. |
Thanks for clarifying. I will review it tomorrow and merge it then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, what a huge amount of work. Thank you so much for making this happen.
@Simek I found some docs are reverted to an older version like this one e622c6a#diff-941914e9c6da4d386c78dcde541e7cc9be34624e543dfccbad380409d8e81813L152-L162 |
Hi @sunnylqm, it is not clear what changes are exactly missing, remember that the tabs code has changed so the diff might be misleading. Please check the page file in the In a meanwhile I will compare |
@Simek That doc in |
@sunnylqm Can you show me somehow where exactly is the issue which you are referring? Can you quote the missing paragraph or sentence on the new site? At the first glance content on https://reactnative.dev/docs/building-for-tv and https://archive.reactnative.dev/docs/building-for-tv pages looks the same. |
I think maybe it's because the master version did not build into versioned doc. For the content, it's obvious So if you take the doc from versioned folder, there might be more inconsistence (not all doc changes go into version folder right away) |
@sunnylqm Sorry, but I don't understand you. My last idea is that you are looking for additional known issues on Android TV which were only applied to the |
@Simek See this commit 6677d7a#diff-941914e9c6da4d386c78dcde541e7cc9be34624e543dfccbad380409d8e81813 |
If you take the doc from versioned folder and copied them back to master, some changes that haven't build will get lost. Do I make myself clear? |
@sunnylqm You should mention #2126 at the beginning. 😉 Now I can clearly see and can confirm that this change has been somehow lost during the migration. Would you like to prepare PR to fix this?
The versioned docs were not copied into |
And i noticed the edit link now changed to versioned doc(it was linked to master before), which may not be a good choice. |
This is how Docusuaurs V2 "Edit Page" links works and there is no option to change that at this moment. We can always create PR for that, but I'm personally looking at this as an improvement. When all links were leading to the
They way we handle PRs heavily depends on the kind and scope of the issue or improvement, the most common pattern is to edit only |
The question is that what's the cause for that lost?(I don't know what to check on that migration repo) If it's not copied from versioned docs, the only possibility I can come up with is it's copied from a snapshot on master? |
@sunnylqm I agree with you and it's also a problem for docusaurus website. This is also needed because some of our users are assembling md files from external repos, git submodules etc... Also we'll explore how to handle git-based CMS tools like Forestry/Tina/NetlifyCMS, in which case the edit link may rather target the edition UI instead of the git file. So, it's not ready today but it's something we'll definitively support soon |
This PR migrates the React Native website to Docusaurus V2.
This is an effect of collaboration with @slorber and MLH Docusaurus team (@darshkpatel & @teikjun).
It is the initial import, rebased against current
master
in the main repository.Refs: #2146, #2139
Fixes #2208, Fixes #2054
Preview
Noticeable changes for website user
next
page have a notice for users that they are reading old or upcoming version of the pageNoticeable changes for contributors/maintainers
<!--truncate-->
tag for blog posts to hide the details on the post list, blog posts tagsYou can read more about V2 features and changes in the official documentation: