Skip to content

Conversation

@javierjulio
Copy link
Member

@javierjulio javierjulio commented Dec 30, 2023

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).

@javierjulio javierjulio self-assigned this Dec 30, 2023
@codecov
Copy link

codecov bot commented Dec 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.11%. Comparing base (5d55838) to head (27b7b9f).
Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@javierjulio javierjulio force-pushed the docs-v4 branch 6 times, most recently from 947411d to a7f84c4 Compare January 6, 2024 20:36
@javierjulio javierjulio force-pushed the docs-v4 branch 8 times, most recently from 46a65b8 to daec932 Compare January 13, 2024 23:17
@javierjulio javierjulio changed the title Documentation updates for v4 with VitePress Build docs with VitePress for v4 Jan 13, 2024
@javierjulio javierjulio force-pushed the docs-v4 branch 7 times, most recently from 08446e3 to f070b86 Compare January 16, 2024 17:44
@javierjulio javierjulio force-pushed the docs-v4 branch 2 times, most recently from f259e34 to 22b2950 Compare February 17, 2024 01:02
javierjulio added a commit that referenced this pull request Mar 1, 2024
This will be replaced soon with #8194
@javierjulio
Copy link
Member Author

@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.

@javierjulio
Copy link
Member Author

@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!

@mgrunberg
Copy link
Contributor

@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.

use the multiple sidebars feature which is path based alongside a nav option to select the current or v3 docs.

I want to achieve something like that.

What I have in mind is:

  1. Keep v3 doc in 3-0-stable branch
  2. Fetch docs during doc-build process

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 understand that we still gonna need to trigger a workflow in master to deploy the docs. It's a downside but nothing too bad in my opinion.

I haven't thought a lot on how to fetch. Could be a node fetch, a git export, a git submodule. There are ways for sure.

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.

@javierjulio
Copy link
Member Author

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!

@javierjulio javierjulio changed the title Build docs with VitePress for v4 Migrate docs to VitePress Oct 10, 2024
@javierjulio
Copy link
Member Author

@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.

@mgrunberg
Copy link
Contributor

@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

@javierjulio javierjulio merged commit 6db02fb into master Oct 12, 2024
@javierjulio javierjulio deleted the docs-v4 branch October 12, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants