...
This commit is contained in:
99
buildchoice/biz_docusaurus.config.ts
Normal file
99
buildchoice/biz_docusaurus.config.ts
Normal file
@@ -0,0 +1,99 @@
|
||||
import {themes as prismThemes} from 'prism-react-renderer';
|
||||
import type {Config} from '@docusaurus/types';
|
||||
import type * as Preset from '@docusaurus/preset-classic';
|
||||
import { navbar } from './navigation/navbar';
|
||||
import { footer } from './navigation/footer';
|
||||
import type * as Redocusaurus from 'redocusaurus';
|
||||
|
||||
const config: Config = {
|
||||
title: 'Veda',
|
||||
tagline: 'Lets build Augmented Collective Intelligence.',
|
||||
favicon: 'img/favicon.svg',
|
||||
|
||||
url: 'https://info.ourworld.tf',
|
||||
baseUrl: '/veda/',
|
||||
|
||||
onBrokenLinks: 'warn',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: ['en'],
|
||||
},
|
||||
|
||||
presets: [
|
||||
[
|
||||
'classic',
|
||||
{
|
||||
docs: {
|
||||
sidebarPath: './navigation/sidebars.ts',
|
||||
path: 'docs/',
|
||||
routeBasePath: '/',
|
||||
remarkPlugins: [],
|
||||
rehypePlugins: [],
|
||||
beforeDefaultRemarkPlugins: [],
|
||||
beforeDefaultRehypePlugins: [],
|
||||
},
|
||||
blog: {
|
||||
showReadingTime: true,
|
||||
editUrl: 'https://www.veda-egypt.com/',
|
||||
postsPerPage: 8,
|
||||
blogSidebarCount: 20,
|
||||
},
|
||||
theme: {
|
||||
customCss: './src/css/custom.css',
|
||||
},
|
||||
} satisfies Preset.Options],
|
||||
],
|
||||
markdown: {
|
||||
mermaid: true,
|
||||
},
|
||||
themes: ['@docusaurus/theme-mermaid'],
|
||||
|
||||
plugins: [
|
||||
async function tailwindPlugin(context, options) {
|
||||
return {
|
||||
name: "docusaurus-tailwindcss",
|
||||
configurePostCss(postcssOptions) {
|
||||
const tailwindcss = require("tailwindcss");
|
||||
const tailwindConfig = require("./tailwind.config.js");
|
||||
postcssOptions.plugins.push(tailwindcss(tailwindConfig));
|
||||
postcssOptions.plugins.push(require("autoprefixer"));
|
||||
return postcssOptions;
|
||||
},
|
||||
configureWebpack(config, isServer, utils) {
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": require("path").resolve(__dirname, "src"),
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
},
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
docs: {
|
||||
sidebar: {
|
||||
hideable: true,
|
||||
autoCollapseCategories: true,
|
||||
}
|
||||
},
|
||||
colorMode: {
|
||||
defaultMode: 'dark',
|
||||
disableSwitch: true,
|
||||
respectPrefersColorScheme: true,
|
||||
},
|
||||
image: 'img/favicon.svg',
|
||||
navbar,
|
||||
footer,
|
||||
prism: {
|
||||
theme: prismThemes.dracula,
|
||||
darkTheme: prismThemes.dracula,
|
||||
},
|
||||
} satisfies Preset.ThemeConfig,
|
||||
};
|
||||
|
||||
export default config;
|
35
buildchoice/biz_navbar.ts
Normal file
35
buildchoice/biz_navbar.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { ThemeConfig } from '@docusaurus/preset-classic';
|
||||
|
||||
export const navbar: ThemeConfig['navbar'] = {
|
||||
title: '',
|
||||
logo: {
|
||||
alt: 'Logo',
|
||||
src: 'img/logo.svg',
|
||||
srcDark: 'img/logo.svg', // Use same logo for dark mode
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'autogenSidebar',
|
||||
position: 'left',
|
||||
label: 'Veda',
|
||||
},
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'bizSidebar',
|
||||
position: 'left',
|
||||
label: 'Business Info',
|
||||
},
|
||||
// {
|
||||
// to: '/blog',
|
||||
// label: 'Blog',
|
||||
// position: 'left',
|
||||
// },
|
||||
// {
|
||||
// type: 'docSidebar',
|
||||
// sidebarId: 'tutorialSidebar',
|
||||
// position: 'left',
|
||||
// label: 'Tutorial',
|
||||
// }
|
||||
],
|
||||
};
|
99
buildchoice/coown_docusaurus.config.ts
Normal file
99
buildchoice/coown_docusaurus.config.ts
Normal file
@@ -0,0 +1,99 @@
|
||||
import {themes as prismThemes} from 'prism-react-renderer';
|
||||
import type {Config} from '@docusaurus/types';
|
||||
import type * as Preset from '@docusaurus/preset-classic';
|
||||
import { navbar } from './navigation/navbar';
|
||||
import { footer } from './navigation/footer';
|
||||
import type * as Redocusaurus from 'redocusaurus';
|
||||
|
||||
const config: Config = {
|
||||
title: 'Veda',
|
||||
tagline: 'Lets build Augmented Collective Intelligence.',
|
||||
favicon: 'img/favicon.svg',
|
||||
|
||||
url: 'https://info.ourworld.tf',
|
||||
baseUrl: '/veda1234/',
|
||||
|
||||
onBrokenLinks: 'warn',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: ['en'],
|
||||
},
|
||||
|
||||
presets: [
|
||||
[
|
||||
'classic',
|
||||
{
|
||||
docs: {
|
||||
sidebarPath: './navigation/sidebars.ts',
|
||||
path: 'docs/',
|
||||
routeBasePath: '/',
|
||||
remarkPlugins: [],
|
||||
rehypePlugins: [],
|
||||
beforeDefaultRemarkPlugins: [],
|
||||
beforeDefaultRehypePlugins: [],
|
||||
},
|
||||
blog: {
|
||||
showReadingTime: true,
|
||||
editUrl: 'https://www.veda-egypt.com/',
|
||||
postsPerPage: 8,
|
||||
blogSidebarCount: 20,
|
||||
},
|
||||
theme: {
|
||||
customCss: './src/css/custom.css',
|
||||
},
|
||||
} satisfies Preset.Options],
|
||||
],
|
||||
markdown: {
|
||||
mermaid: true,
|
||||
},
|
||||
themes: ['@docusaurus/theme-mermaid'],
|
||||
|
||||
plugins: [
|
||||
async function tailwindPlugin(context, options) {
|
||||
return {
|
||||
name: "docusaurus-tailwindcss",
|
||||
configurePostCss(postcssOptions) {
|
||||
const tailwindcss = require("tailwindcss");
|
||||
const tailwindConfig = require("./tailwind.config.js");
|
||||
postcssOptions.plugins.push(tailwindcss(tailwindConfig));
|
||||
postcssOptions.plugins.push(require("autoprefixer"));
|
||||
return postcssOptions;
|
||||
},
|
||||
configureWebpack(config, isServer, utils) {
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": require("path").resolve(__dirname, "src"),
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
},
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
docs: {
|
||||
sidebar: {
|
||||
hideable: true,
|
||||
autoCollapseCategories: true,
|
||||
}
|
||||
},
|
||||
colorMode: {
|
||||
defaultMode: 'dark',
|
||||
disableSwitch: true,
|
||||
respectPrefersColorScheme: true,
|
||||
},
|
||||
image: 'img/favicon.svg',
|
||||
navbar,
|
||||
footer,
|
||||
prism: {
|
||||
theme: prismThemes.dracula,
|
||||
darkTheme: prismThemes.dracula,
|
||||
},
|
||||
} satisfies Preset.ThemeConfig,
|
||||
};
|
||||
|
||||
export default config;
|
41
buildchoice/coown_navbar.ts
Normal file
41
buildchoice/coown_navbar.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import type { ThemeConfig } from '@docusaurus/preset-classic';
|
||||
|
||||
export const navbar: ThemeConfig['navbar'] = {
|
||||
title: '',
|
||||
logo: {
|
||||
alt: 'Logo',
|
||||
src: 'img/logo.svg',
|
||||
srcDark: 'img/logo.svg', // Use same logo for dark mode
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'autogenSidebar',
|
||||
position: 'left',
|
||||
label: 'Veda',
|
||||
},
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'ownerSidebar',
|
||||
position: 'left',
|
||||
label: 'Shareholder',
|
||||
},
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'appendixSidebar',
|
||||
position: 'left',
|
||||
label: 'More Info',
|
||||
},
|
||||
// {
|
||||
// to: '/blog',
|
||||
// label: 'Blog',
|
||||
// position: 'left',
|
||||
// },
|
||||
// {
|
||||
// type: 'docSidebar',
|
||||
// sidebarId: 'tutorialSidebar',
|
||||
// position: 'left',
|
||||
// label: 'Tutorial',
|
||||
// }
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user