Skip to content

Commit f3f4f27

Browse files
committed
Update documentation URLs
1 parent ac5c053 commit f3f4f27

File tree

1 file changed

+8
-0
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ export function docsUrl(version: string, paths: string | string[]): string {
99
}
1010
if (semver.gte(version, '1.99.0')) {
1111
major = 2
12+
url = 'https://v2.tailwindcss.com/docs/'
13+
}
14+
if (semver.gte(version, '2.99.0')) {
15+
major = 3
16+
url = 'https://v3.tailwindcss.com/docs/'
17+
}
18+
if (semver.gte(version, '3.99.0')) {
19+
major = 4
1220
url = 'https://tailwindcss.com/docs/'
1321
}
1422
const path = Array.isArray(paths) ? paths[major] || paths[paths.length - 1] : paths

0 commit comments

Comments
 (0)