feat: website release v2 (#616)
* feat: upgrade to svelte 5 & tailwind v4 + add navigation menu to ui package * feat: website navigation with nav menu from shadcn * chore: refactor navigation menu storybook * fix: responsiveness bug * chore: remove tailwind config file * chore: - remove carbon icons from repo - add Geist font family * refactor website --------- Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
parent
690cf147ff
commit
e6a3cf9332
@@ -1,14 +1,17 @@
|
||||
import sequence from 'svelte-sequential-preprocessor';
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import adapterNode from '@sveltejs/adapter-auto';
|
||||
import adapterVercel from '@sveltejs/adapter-vercel';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname } from 'node:path';
|
||||
import { mdsvex, escapeSvelte } from 'mdsvex';
|
||||
import path from 'path';
|
||||
import shiki from 'shiki';
|
||||
import remarkUnwrapImages from 'remark-unwrap-images';
|
||||
import remarkToc from 'remark-toc';
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
|
||||
const useNodeAdapter = process.env.PUBLIC_IS_SELFHOSTED === 'true';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config}*/
|
||||
|
||||
/** @type {import('mdsvex').MdsvexOptions} */
|
||||
@@ -30,9 +33,18 @@ const mdsvexOptions = {
|
||||
|
||||
const config = {
|
||||
kit: {
|
||||
adapter: adapter()
|
||||
adapter: useNodeAdapter ? adapterNode() : adapterVercel(),
|
||||
alias: {
|
||||
$lib: path.resolve('./src/lib'),
|
||||
'$src/tools': path.resolve('./node_modules/@cio/ui/src/tools/index.ts'),
|
||||
'$src/base/*': path.resolve('./node_modules/@cio/ui/src/base/*'),
|
||||
'@cio/ui': path.resolve('./node_modules/@cio/ui/src'),
|
||||
'@cio/ui/*': path.resolve('./node_modules/@cio/ui/src/*'),
|
||||
'@cio/utils': path.resolve('./node_modules/@cio/utils/dist'),
|
||||
'@cio/utils/*': path.resolve('./node_modules/@cio/utils/dist/*')
|
||||
}
|
||||
},
|
||||
extensions: ['.svelte', '.md'],
|
||||
preprocess: sequence([vitePreprocess(), mdsvex(mdsvexOptions)])
|
||||
preprocess: [vitePreprocess(), mdsvex(mdsvexOptions)]
|
||||
};
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user