Przeglądaj źródła

fix: update rollup config and improve image handling in documentation for better compatibility

codecalm 4 miesięcy temu
rodzic
commit
9069dcba54

+ 2 - 8
docs/.build/rollup.config.mjs

@@ -15,19 +15,13 @@ const plugins = [
 	babel({
 		exclude: 'node_modules/**',
 		babelHelpers: 'bundled'
-	})
-]
-
-plugins.push(
+	}),
 	replace({
 		'process.env.NODE_ENV': '"production"',
-		'process.env.DOCSEARCH_APP_ID': process.env.DOCSEARCH_APP_ID,
-		'process.env.DOCSEARCH_INDEX_NAME': process.env.DOCSEARCH_INDEX_NAME,
-		'process.env.DOCSEARCH_API_KEY': process.env.DOCSEARCH_API_KEY,
 		preventAssignment: true
 	}),
 	nodeResolve()
-)
+]
 
 const rollupConfig = {
 	input: [

+ 2 - 1
docs/content/index.md

@@ -3,7 +3,8 @@ title: Welcome to Tabler Documentation
 summary: Tabler Docs provides a comprehensive guide to help you get started with the Tabler ecosystem, including its UI components, plugins, and icons. Explore detailed documentation to understand and leverage the full potential of Tabler in your projects.
 ---
 
-<ResponsiveImage src="/docs/tabler.png" src-dark="/docs/tabler-dark.png" alt="Tabler" width="816" height="620" class="mb-4" />
+<img src="/img/tabler.png" alt="Tabler" class="mb-4 hide-theme-dark border-0" width="816" height="620" />
+<img src="/img/tabler-dark.png" alt="Tabler" class="mb-4 hide-theme-light border-0" width="816" height="620" />
 
 Find all the guides and resources you need to develop with Tabler and our other tools. Explore our UI components, icons, illustrations, and email templates to enhance your web development experience. Our tools are designed to be easy to use, customizable, and fully responsive, ensuring that your projects look great on any device.
 

BIN
docs/public/img/tabler-dark.png


BIN
docs/public/img/tabler.png