浏览代码

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

codecalm 4 月之前
父节点
当前提交
9069dcba54
共有 4 个文件被更改,包括 4 次插入9 次删除
  1. 2 8
      docs/.build/rollup.config.mjs
  2. 2 1
      docs/content/index.md
  3. 二进制
      docs/public/img/tabler-dark.png
  4. 二进制
      docs/public/img/tabler.png

+ 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.
 

二进制
docs/public/img/tabler-dark.png


二进制
docs/public/img/tabler.png