Skip to content

Commit d65df6a

Browse files
fix: resolve base url
1 parent 6d34abe commit d65df6a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docusaurus.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// There are various equivalent ways to declare your Docusaurus config.
55
// See: https://docusaurus.io/docs/api/docusaurus-config
66

7-
import {themes as prismThemes} from 'prism-react-renderer';
7+
import { themes as prismThemes } from 'prism-react-renderer';
88

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

@@ -22,7 +22,7 @@ const config = {
2222
url: 'https://nearai.github.io',
2323
// Set the /<baseUrl>/ pathname under which your site is served
2424
// For GitHub pages deployment, it is often '/<projectName>/'
25-
baseUrl: '/',
25+
baseUrl: '/docs/',
2626

2727
// GitHub pages deployment config.
2828
// If you aren't using GitHub pages, you don't need these.
@@ -48,8 +48,7 @@ const config = {
4848
docs: {
4949
routeBasePath: '/',
5050
sidebarPath: './sidebars.js',
51-
editUrl:
52-
'https://github.com/nearai/docs/tree/main/',
51+
editUrl: 'https://github.com/nearai/docs/tree/main/',
5352
},
5453
blog: false,
5554
theme: {

sidebars.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@ const sidebars = {
2020
type: 'doc',
2121
id: 'cloud/introduction',
2222
customProps: {
23-
icon: '/img/icons/introduction.svg',
23+
icon: '/docs/img/icons/introduction.svg',
2424
},
2525
},
2626
{
2727
type: 'doc',
2828
id: 'cloud/quickstart',
2929
customProps: {
30-
icon: '/img/icons/quickstart.svg',
30+
icon: '/docs/img/icons/quickstart.svg',
3131
},
3232
},
3333
{
3434
type: 'doc',
3535
id: 'cloud/models',
3636
customProps: {
37-
icon: '/img/icons/ai.svg',
37+
icon: '/docs/img/icons/ai.svg',
3838
},
3939
},
4040
{
4141
type: 'doc',
4242
id: 'cloud/private-inference',
4343
customProps: {
44-
icon: '/img/icons/private-inference.svg',
44+
icon: '/docs/img/icons/private-inference.svg',
4545
},
4646
},
4747
{
@@ -53,7 +53,7 @@ const sidebars = {
5353
},
5454
collapsed: true,
5555
customProps: {
56-
icon: '/img/icons/verification.svg',
56+
icon: '/docs/img/icons/verification.svg',
5757
},
5858
items: [
5959
'cloud/verification/model-verification',

0 commit comments

Comments
 (0)