Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fbf4408
feat: migrate to SCSS, update styling and configuration
anonsyn Mar 8, 2025
40a8cc8
feat: add external link icon component
anonsyn Mar 8, 2025
8765120
feat: enhance sidebar and styling with new SCSS modules
anonsyn Mar 9, 2025
5af5dfc
feat: implement custom footer with responsive design and styling
anonsyn Mar 9, 2025
20a62a2
feat: refine sidebar and navbar styling with responsive adjustments
anonsyn Mar 9, 2025
a1a902f
feat: improve DocSearch button styling with hover and transition effects
anonsyn Mar 9, 2025
dd1e580
feat: add hover effect to footer links
anonsyn Mar 9, 2025
5cfb95c
feat: adjust navigation button width for extra-large screens
anonsyn Mar 9, 2025
ec4b701
feat: style DocSearch modal with custom SCSS
anonsyn Mar 9, 2025
4be3fd6
feat: add home icon component
anonsyn Mar 10, 2025
72d0a80
feat: implement custom DocBreadcrumbs component with styling
anonsyn Mar 10, 2025
82233dd
chore: add .vscode to gitignore
anonsyn Mar 10, 2025
96fc293
feat: add mobile table of contents components
anonsyn Mar 10, 2025
abe734d
feat: enhance table of contents styling and layout
anonsyn Mar 11, 2025
0a0709a
feat: refine breadcrumb styling with improved color and hover states
anonsyn Mar 11, 2025
9d257f6
feat: add content heading styles with responsive typography
anonsyn Mar 11, 2025
e2a41bd
feat: implement admonition components with custom styling and icons
anonsyn Mar 12, 2025
3f7bcfd
feat: add custom Details component with enhanced styling
anonsyn Mar 12, 2025
4e6708f
feat: implement custom Algolia search page with enhanced styling and …
anonsyn Mar 12, 2025
ae97946
feat: add custom table styling with dark theme and enhanced visual de…
anonsyn Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode
73 changes: 24 additions & 49 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import type * as Preset from '@docusaurus/preset-classic'
import type { Config } from '@docusaurus/types'
import rehypeKatex from 'rehype-katex'
import remarkMath from 'remark-math'

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

Expand Down Expand Up @@ -37,7 +36,7 @@ const config: Config = {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],

plugins: ['docusaurus-plugin-sass'],
presets: [
[
'classic',
Expand All @@ -49,48 +48,32 @@ const config: Config = {
rehypePlugins: [rehypeKatex],
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/optimainetwork/docs/tree/main/',
editUrl: 'https://github.com/optimainetwork/docs/tree/main/',
},
// blog: {
// showReadingTime: true,
// feedOptions: {
// type: ['rss', 'atom'],
// xslt: true,
// },
// // Please change this to your repo.
// // Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/optimainetwork/docs/tree/main/',
// // Useful options to enforce blogging best practices
// onInlineTags: 'warn',
// onInlineAuthors: 'warn',
// onUntruncatedBlogPosts: 'warn',
// },
theme: {
customCss: './src/css/custom.css',
customCss: './src/styles/index.scss',
},
} satisfies Preset.Options,
],
],

themeConfig: {
themeConfig: {
image: 'img/social-card.jpeg',
algolia: {
appId: '21H8NIK27E',
algolia: {
appId: '21H8NIK27E',
apiKey: '2764b00b42701493a032fe50aab6c8f4',
indexName: 'optimai',

contextualSearch: true,
externalUrlRegex: 'external\\.com|domain\\.com',
contextualSearch: true,
externalUrlRegex: 'external\\.com|domain\\.com',
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },

// Optional: Algolia search parameters
searchParameters: {},
searchPagePath: 'search',
searchParameters: {},
searchPagePath: 'search',
insights: false,
},

Expand All @@ -99,29 +82,28 @@ const config: Config = {
disableSwitch: true,
respectPrefersColorScheme: false,
},

navbar: {
title: 'OptimAI Network',
logo: {
alt: 'OptimAI Network Logo',
src: 'img/optimai-logo.svg',
src: 'img/branding/optimai-documentation-logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Documentation',
},
// {to: '/blog', label: 'Whitepaper', position: 'left'},
{
href: 'https://github.com/optimainetwork/docs',
label: 'GitHub',
position: 'right',
className: 'navbar__item--github',
},
],
},
footer: {
style: 'dark',
logo: {
src: 'img/branding/optimai-documentation-logo.svg',
alt: 'OptimAI Network Logo',
href: 'https://optimai.network',
},
links: [
{
title: 'Docs',
Expand Down Expand Up @@ -161,14 +143,7 @@ const config: Config = {
],
copyright: `Copyright © ${new Date().getFullYear()} OptimAI Network.`,
},
// prism: {
// theme: prismThemes.github,
// darkTheme: prismThemes.dracula,
// },
// mermaid: {
// theme: {light: 'neutral', dark: 'forest'},
// },
} satisfies Preset.ThemeConfig,
};
}

export default config;
export default config
Loading