Skip to content

Commit fcce547

Browse files
authored
Merge pull request #1 from OptimaiNetwork/ui
Improve UI/UX
2 parents 1d90abe + ae97946 commit fcce547

86 files changed

Lines changed: 3837 additions & 122 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
.vscode

docusaurus.config.ts

Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import {themes as prismThemes} from 'prism-react-renderer';
2-
import type {Config} from '@docusaurus/types';
3-
import type * as Preset from '@docusaurus/preset-classic';
4-
import remarkMath from 'remark-math';
5-
import rehypeKatex from 'rehype-katex';
1+
import type * as Preset from '@docusaurus/preset-classic'
2+
import type { Config } from '@docusaurus/types'
3+
import rehypeKatex from 'rehype-katex'
4+
import remarkMath from 'remark-math'
65

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

@@ -37,7 +36,7 @@ const config: Config = {
3736
mermaid: true,
3837
},
3938
themes: ['@docusaurus/theme-mermaid'],
40-
39+
plugins: ['docusaurus-plugin-sass'],
4140
presets: [
4241
[
4342
'classic',
@@ -49,48 +48,32 @@ const config: Config = {
4948
rehypePlugins: [rehypeKatex],
5049
// Please change this to your repo.
5150
// Remove this to remove the "edit this page" links.
52-
editUrl:
53-
'https://github.com/optimainetwork/docs/tree/main/',
51+
editUrl: 'https://github.com/optimainetwork/docs/tree/main/',
5452
},
55-
// blog: {
56-
// showReadingTime: true,
57-
// feedOptions: {
58-
// type: ['rss', 'atom'],
59-
// xslt: true,
60-
// },
61-
// // Please change this to your repo.
62-
// // Remove this to remove the "edit this page" links.
63-
// editUrl:
64-
// 'https://github.com/optimainetwork/docs/tree/main/',
65-
// // Useful options to enforce blogging best practices
66-
// onInlineTags: 'warn',
67-
// onInlineAuthors: 'warn',
68-
// onUntruncatedBlogPosts: 'warn',
69-
// },
7053
theme: {
71-
customCss: './src/css/custom.css',
54+
customCss: './src/styles/index.scss',
7255
},
7356
} satisfies Preset.Options,
7457
],
7558
],
7659

77-
themeConfig: {
60+
themeConfig: {
7861
image: 'img/social-card.jpeg',
79-
algolia: {
80-
appId: '21H8NIK27E',
62+
algolia: {
63+
appId: '21H8NIK27E',
8164
apiKey: '2764b00b42701493a032fe50aab6c8f4',
8265
indexName: 'optimai',
8366

84-
contextualSearch: true,
85-
externalUrlRegex: 'external\\.com|domain\\.com',
67+
contextualSearch: true,
68+
externalUrlRegex: 'external\\.com|domain\\.com',
8669
// replaceSearchResultPathname: {
8770
// from: '/docs/', // or as RegExp: /\/docs\//
8871
// to: '/',
8972
// },
9073

9174
// Optional: Algolia search parameters
92-
searchParameters: {},
93-
searchPagePath: 'search',
75+
searchParameters: {},
76+
searchPagePath: 'search',
9477
insights: false,
9578
},
9679

@@ -99,29 +82,28 @@ const config: Config = {
9982
disableSwitch: true,
10083
respectPrefersColorScheme: false,
10184
},
85+
10286
navbar: {
103-
title: 'OptimAI Network',
10487
logo: {
10588
alt: 'OptimAI Network Logo',
106-
src: 'img/optimai-logo.svg',
89+
src: 'img/branding/optimai-documentation-logo.svg',
10790
},
10891
items: [
109-
{
110-
type: 'docSidebar',
111-
sidebarId: 'tutorialSidebar',
112-
position: 'left',
113-
label: 'Documentation',
114-
},
115-
// {to: '/blog', label: 'Whitepaper', position: 'left'},
11692
{
11793
href: 'https://github.com/optimainetwork/docs',
11894
label: 'GitHub',
11995
position: 'right',
96+
className: 'navbar__item--github',
12097
},
12198
],
12299
},
123100
footer: {
124101
style: 'dark',
102+
logo: {
103+
src: 'img/branding/optimai-documentation-logo.svg',
104+
alt: 'OptimAI Network Logo',
105+
href: 'https://optimai.network',
106+
},
125107
links: [
126108
{
127109
title: 'Docs',
@@ -161,14 +143,7 @@ const config: Config = {
161143
],
162144
copyright: `Copyright © ${new Date().getFullYear()} OptimAI Network.`,
163145
},
164-
// prism: {
165-
// theme: prismThemes.github,
166-
// darkTheme: prismThemes.dracula,
167-
// },
168-
// mermaid: {
169-
// theme: {light: 'neutral', dark: 'forest'},
170-
// },
171146
} satisfies Preset.ThemeConfig,
172-
};
147+
}
173148

174-
export default config;
149+
export default config

0 commit comments

Comments
 (0)