Skip to content
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

docs: show old document warning #18805

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Nov 27, 2024

Description

image
image
image

old design

image
image

If the design looks good, I'll make a PR to v2,3,4 as well.

fixes #18420

@sapphi-red sapphi-red added the documentation Improvements or additions to documentation label Nov 27, 2024
Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for vite-docs-v5 ready!

Name Link
🔨 Latest commit f152507
🔍 Latest deploy log https://app.netlify.com/sites/vite-docs-v5/deploys/6747d2b96c3b2c0008addc75
😎 Deploy Preview https://deploy-preview-18805--vite-docs-v5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sheremet-va
Copy link
Member

That's actually a really good idea! Gonna steal it for Vitest too 👀

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On mobile view, in the config page for example, seems like the navbar can overlap with the top text when scrolling. Not sure if it's easily fixable but I don't think it's a big deal.

Design-wise the bright red background looks kinda scary. Maybe it could use the purple tint color we have, but if others prefer the red too I don't think we have to change it. (Just thinking out loud)

docs/.vitepress/theme/components/OldDocument.vue Outdated Show resolved Hide resolved
@patak-dev
Copy link
Member

Maybe the color could be a bit toned down if the banner isn't dismissible? Maybe using Vite's accent color to make it more integrated. There are people that would like to see old docs.

@sapphi-red
Copy link
Member Author

I changed the background color to the purple brand color. Also fixed the z-index problem with the navbar on mobile. 👍

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@patak-dev patak-dev merged commit 5da6895 into vitejs:v5 Nov 28, 2024
9 checks passed
@sapphi-red sapphi-red deleted the docs/show-old-document-warning branch November 29, 2024 03:40
sapphi-red added a commit to sapphi-red/vite that referenced this pull request Nov 29, 2024
sapphi-red added a commit to sapphi-red/vite that referenced this pull request Nov 29, 2024
sapphi-red added a commit to sapphi-red/vite that referenced this pull request Nov 29, 2024
sapphi-red added a commit that referenced this pull request Nov 29, 2024
sapphi-red added a commit that referenced this pull request Nov 29, 2024
sapphi-red added a commit that referenced this pull request Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants