-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Migrate docs to VitePress #8194
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8194 +/- ##
=======================================
Coverage 99.11% 99.11%
=======================================
Files 141 141
Lines 4076 4076
=======================================
Hits 4040 4040
Misses 36 36 ☔ View full report in Codecov by Sentry. |
947411d to
a7f84c4
Compare
46a65b8 to
daec932
Compare
08446e3 to
f070b86
Compare
f259e34 to
22b2950
Compare
This will be replaced soon with #8194
|
@mgrunberg yes but only with a repository link to the docs folder on the 3-0-stable branch. Vitepress doesn't support documentation versioning. We could probably move the v3 docs into a subfolder and then use the multiple sidebars feature which is path based alongside a nav option to select the current or v3 docs. |
21914a0 to
04fa22f
Compare
|
@mgrunberg I extracted the general updates that were version independent #8424 and merged that in. Let me know if you are still interested in trying something out for docs versioning or to first share an approach to see if it's something we'll consider. Thanks! |
I'm still interested in this. I'm still figuring out how to do this but here is what I have in mind.
I want to achieve something like that. What I have in mind is:
Why fetching during build? I don't want to carry over old doc files in master. If old docs need an update (backport of a feature?), it make more sense to do the PR in that version branch. I haven't thought a lot on how to fetch. Could be a Following this idea, I'm wondering if the first step should be migrate current doc (v3) to vite-press. I don't know if there is a blocker for that. Anyway, that's on my head. What do you think. Oh, before I forget. I won't be able to work on this until Friday. |
|
I think that may be too much or too problematic since the v3 docs have to map to the expected pages which would change in the new setup. I don't mind duplicating the v3 docs on master branch since we need to build a single site and deploy it. I believe it would be easier to include the v3 docs in the new Vitepress setup. We'd have to do some formatting updates (e.g. fix headings) in some cases anyway. You are welcome to try either approach but figure just easiest to work with duplicate v3 docs in master. No rush on this. Thanks for expressing an interest in tackling it! |
01f0556 to
acafe54
Compare
|
@mgrunberg I've updated this PR so it just migrates the existing docs content to VitePress. The v4 docs changes I'll have in a new branch. We can figure out there how to incorporate both v3 and v4 docs in the VitePress site. At least this way we can migrate the docs to VitePress and hopefully others will want to make documentation updates. Let me know what you think. |
@javierjulio The new docs look amazing! I left a few comments but the PR looks really good |
Added a docs deployment workflow - https://vitepress.dev/guide/deploy#github-pages Updated the tests CI workflow to build docs for testing
This migrates the custom docs site to now be built using VitePress which works with existing Markdown files. It helpful features built in like dark mode, mobile support, etc. Some Markdown files will need formatting updates to render correctly (e.g. wrong heading level).