Files
lobehub/scripts/docsWorkflow/const.ts
Arvin Xu c131fa68f0 ♻️ refactor: refactor with chat docs site (#1309)
* 📝 docs: add package.json

* 🔧 chore: update config

* 🔧 chore: update config

* 📝 docs: update docs

* 📝 docs: add en-US docs

* 📝 docs: update docs

* 📝 docs: fix docs url

* 🔧 chore: add docs rewrites

* 🔧 chore: add docs rewrites

* 🔧 chore: fix docs rewrites

* 💄 style: update docs link

* 🚚 chore: move to contributing docs

* 🔧 chore: update contributing ci workflow

* 💄 style: update docs link
2024-02-18 21:39:04 +08:00

15 lines
611 B
TypeScript

import { globSync } from 'glob';
import { resolve } from 'node:path';
export const WIKI_URL = 'https://github.com/lobehub/lobe-chat/wiki/';
export const ROOT = resolve(__dirname, '../..');
export const DOCS_DIR = resolve(ROOT, 'contributing');
export const HOME_PATH = resolve(DOCS_DIR, 'Home.md');
export const SIDEBAR_PATH = resolve(DOCS_DIR, '_Sidebar.md');
export const docsFiles = globSync(resolve(DOCS_DIR, '**/*.md').replaceAll('\\', '/'), {
ignore: ['Home.md', '_Sidebar.md', '_Footer.md'],
nodir: true,
}).filter((file) => !file.includes('.zh-CN.md'));
export const SPLIT = '<!-- DOCS LIST -->';