Files
lobehub/scripts/docsWorkflow/const.ts
CanisMinor 7253fd5122 📝 docs: Add text-to-image feat (#1089)
* 📝 docs: Add text-to-image feat

* 🔧 chore: Fix readmeWorkflow

* 📝 docs: Update readme

* 📝 docs: Update readme

* 🔧 chore: Replace ts-node, bun with tsx

* 📝 docs: Sync latest plugin list

* 📝 docs: Fix emoji

* 📝 docs: Update docs
2024-01-18 23:50:14 +08:00

15 lines
603 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, 'docs');
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 -->';