Skip to content

Commit 4f0e415

Browse files
committed
update docs urls
1 parent a4fdd94 commit 4f0e415

File tree

1 file changed

+5
-1
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+5
-1
lines changed

packages/tailwindcss-language-service/src/util/docsUrl.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import semver from 'semver'
22

33
export function docsUrl(version: string, paths: string | string[]): string {
44
let major = 0
5-
let url = 'https://v0.tailwindcss.com/docs/'
5+
let url = 'https://tailwindcss-v0.netlify.app/docs/'
66
if (semver.gte(version, '0.99.0')) {
77
major = 1
8+
url = 'https://v1.tailwindcss.com/docs/'
9+
}
10+
if (semver.gte(version, '1.99.0')) {
11+
major = 2
812
url = 'https://tailwindcss.com/docs/'
913
}
1014
const path = Array.isArray(paths)

0 commit comments

Comments
 (0)