From 4f0e415df778d1e95ca2f817b008979eb5a54247 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 27 Nov 2020 17:05:58 +0000 Subject: [PATCH] update docs urls --- packages/tailwindcss-language-service/src/util/docsUrl.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/tailwindcss-language-service/src/util/docsUrl.ts b/packages/tailwindcss-language-service/src/util/docsUrl.ts index c8b25a1..c2c86d3 100644 --- a/packages/tailwindcss-language-service/src/util/docsUrl.ts +++ b/packages/tailwindcss-language-service/src/util/docsUrl.ts @@ -2,9 +2,13 @@ import semver from 'semver' export function docsUrl(version: string, paths: string | string[]): string { let major = 0 - let url = 'https://v0.tailwindcss.com/docs/' + let url = 'https://tailwindcss-v0.netlify.app/docs/' if (semver.gte(version, '0.99.0')) { major = 1 + url = 'https://v1.tailwindcss.com/docs/' + } + if (semver.gte(version, '1.99.0')) { + major = 2 url = 'https://tailwindcss.com/docs/' } const path = Array.isArray(paths)