Skip to content

Commit f4a41f0

Browse files
Add data tags to installation pages for docsearch crawler
1 parent 7b8da0b commit f4a41f0

File tree

7 files changed

+37
-15
lines changed

7 files changed

+37
-15
lines changed

src/app/(docs)/docs/installation/(tabs)/framework-guides/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ export default async function FrameworkGuides() {
2121

2222
return (
2323
<>
24-
<div id="content-wrapper" className="prose mb-10 max-w-3xl">
25-
<h3 className="sr-only">Framework Guides</h3>
24+
<div id="content-wrapper" className="prose mb-10 max-w-3xl" data-content="true">
25+
<h3 className="sr-only" data-title="true">
26+
Framework Guides
27+
</h3>
2628
<p>
2729
Framework-specific guides that cover our recommended approach to installing Tailwind CSS in a number of
2830
popular environments.

src/app/(docs)/docs/installation/(tabs)/layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,16 @@ export default function Page({ children }: { children: React.ReactNode }) {
9797

9898
<div className="isolate mx-auto grid w-full max-w-2xl grid-cols-1 gap-10 pt-10 md:pb-24 xl:max-w-5xl">
9999
<div className="px-4 sm:px-6">
100-
<p className="font-mono text-xs/6 font-medium tracking-widest text-gray-600 uppercase dark:text-gray-400">
100+
<p
101+
data-section="true"
102+
className="font-mono text-xs/6 font-medium tracking-widest text-gray-600 uppercase dark:text-gray-400"
103+
>
101104
Installation
102105
</p>
103106
<h1 className="mt-2 text-3xl font-medium tracking-tight text-gray-950 dark:text-white">
104107
Get started with Tailwind CSS
105108
</h1>
106-
<p className="mt-6 text-base/7 text-gray-700 dark:text-gray-300">
109+
<p data-description="true" className="mt-6 text-base/7 text-gray-700 dark:text-gray-300">
107110
Tailwind CSS works by scanning all of your HTML files, JavaScript components, and any other templates for
108111
class names, generating the corresponding styles and then writing them to a static CSS file.
109112
</p>

src/app/(docs)/docs/installation/(tabs)/play-cdn/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ const steps: Step[] = [
8585
export default function Page() {
8686
return (
8787
<>
88-
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl">
89-
<h3 className="sr-only">Play CDN</h3>
88+
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl" data-content="true">
89+
<h3 className="sr-only" data-title="true">
90+
Using Play CDN
91+
</h3>
9092
<p>
9193
Use the Play CDN to try Tailwind right in the browser without any build step. The Play CDN is designed for
9294
development purposes only, and is not intended for production.

src/app/(docs)/docs/installation/(tabs)/tailwind-cli/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ const steps: Step[] = [
8787
export default function Page() {
8888
return (
8989
<>
90-
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl">
91-
<h3 className="sr-only">Installing Tailwind CLI</h3>
90+
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl" data-content="true">
91+
<h3 className="sr-only" data-title="true">
92+
Installing Tailwind CLI
93+
</h3>
9294
<p>
9395
The simplest and fastest way to get up and running with Tailwind CSS from scratch is with the Tailwind CLI
9496
tool. The CLI is also available as a <Link href="/blog/standalone-cli">standalone executable</Link> if you

src/app/(docs)/docs/installation/(tabs)/using-postcss/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ const steps: Step[] = [
120120
export default function Page() {
121121
return (
122122
<>
123-
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl">
124-
<h3 className="sr-only">Installing Tailwind CSS as a PostCSS plugin</h3>
123+
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl" data-content="true">
124+
<h3 data-title="true" className="sr-only">
125+
Installing Tailwind CSS as a PostCSS plugin
126+
</h3>
125127
<p>
126128
Installing Tailwind CSS as a PostCSS plugin is the most seamless way to integrate it with frameworks like
127129
Next.js and Angular.

src/app/(docs)/docs/installation/(tabs)/using-vite/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ const steps: Step[] = [
123123
export default function Page() {
124124
return (
125125
<>
126-
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl">
127-
<h3 className="sr-only">Installing Tailwind CSS as a Vite plugin</h3>
126+
<div id="content-wrapper" className="prose relative z-10 mb-10 max-w-3xl" data-content="true">
127+
<h3 data-title="true" className="sr-only">
128+
Installing Tailwind CSS as a Vite plugin
129+
</h3>
128130
<p>
129131
Installing Tailwind CSS as a Vite plugin is the most seamless way to integrate it with frameworks like
130132
Laravel, SvelteKit, React Router, Nuxt, and SolidJS.

src/app/(docs)/docs/installation/framework-guides/[...slug]/page.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,18 @@ export default async function Page({ params }: Props) {
7575
<>
7676
<div className="mx-auto grid w-full max-w-2xl grid-cols-1 gap-10 pt-10 pb-24 xl:max-w-5xl">
7777
<div className="px-4 sm:px-6 xl:pr-0">
78-
<p className="font-mono text-xs/6 tracking-widest text-gray-600 uppercase dark:text-gray-400">Installation</p>
79-
<h1 className="mt-2 text-3xl font-medium tracking-tight text-gray-950 dark:text-white">{page.title}</h1>
80-
<p className="mt-6 text-base/7 text-gray-700 dark:text-gray-400">{page.description}</p>
78+
<p
79+
className="font-mono text-xs/6 tracking-widest text-gray-600 uppercase dark:text-gray-400"
80+
data-section="true"
81+
>
82+
Installation
83+
</p>
84+
<h1 className="mt-2 text-3xl font-medium tracking-tight text-gray-950 dark:text-white" data-title="true">
85+
{page.title}
86+
</h1>
87+
<p className="mt-6 text-base/7 text-gray-700 dark:text-gray-400" data-description="true">
88+
{page.description}
89+
</p>
8190

8291
{page.notice ? (
8392
<div className="relative my-4 overflow-hidden rounded-lg bg-gray-200 p-1">

0 commit comments

Comments
 (0)