-
-
Notifications
You must be signed in to change notification settings - Fork 779
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
feat(docs): introduce static docs built with vitepress #2386
Conversation
- Create Getting started and Guide sections - Use Docus components for info and warning alerts - Embed Stackblitz playgrounds when available - Keep shortcuts to Interactive docs and Playground - Add social info for Twitter and GitHub - Add favicon and generic cover image
❌ Deploy Preview for unocss failed.
|
Hey, thanks for working on it, and I am happy to have it, it can be a good start to introduce more explanation of the concepts. I have a few feedback before we move on:
Once you are done, I will merge it and handle the rest deploy setup. Thanks |
Thanks for your super fast feedback. Here is the Vitepress version! I slightly changed the routes to make them match the package names to have something like I kept the default theme, feel free to tell me if you have any special color palette in mind. |
@lucpotage add packages:
- bench
- docs
- playground
- interactive
- 'packages/*'
- 'test/fixtures/*'
- examples/vue-cli4
- examples/vue-cli5 |
|
@antfu I can include team cards, contributors, sponsors and so on... I can include previous stuff in this PR or wait an initial version merged. |
I actually tried this at the beginning but it does not work. So I looked at available examples in GitHub. StackBlitz Docs for instance have a |
I need to check latest changes in VitePress. You can test it removing the EDIT: there is no changes on VitesPress, and so you can proceed (VitePress docs folder also with the md src files). |
I'm fixing types in config.ts module, do you want I move all src one level up? |
Does it mean you prefer having the md files at the root level? |
No, we want the md files on docs root level not inside src folder. |
@lucpotage thanks for working on it! I just restructured the document a bit. It would be better to pull first before making changes in case of conflictions. |
Thanks @antfu. Sorry for the mess. I use the UI Sync feature of VSCode that says it does pull before push. 😳 |
I have merged this PR into |
Co-authored-by: Luc <luc.potage@gmail.com> Co-authored-by: userquin <userquin@gmail.com> Co-authored-by: Chris <1633711653@qq.com> Co-authored-by: Joaquín Sánchez <joaquin.sanchez@fi2net.es> Co-authored-by: Frozen FIsh <76603360+sudongyuer@users.noreply.github.com> Co-authored-by: Ben M <xbenmmusicx@gmail.com> Co-authored-by: Saya <379924+chu121su12@users.noreply.github.com>
Hi @antfu,
When moving from Windi CSS to UnoCSS, I found it difficult to understand the on-demand concept of UnoCSS and how to get an ISO experience from Windi CSS. While interactive docs are great to check that utilities work, it does not help finding the right information about presets, but also transformers that I wrongly thought were provided by default. There are articles with the guide prefix, but I found traditional static docs easier to browse: no need to know to find out.
Since the Nuxt team provided a great starter template for docs with Docus. I spent some time copying content from individual files to a new docs directory that is just waiting to be published (I suppose some CD setup would be required).
I obviously kept the original README files since they are useful as descriptions of individual packages in npm registry. I’m sure we could find a way to avoid duplicating content between the new docs and those README files, but I’m not sure how, especially since some files are not exactly the same (few Docus components).
I hope you’ll enjoy this new docs! 😃