66
77import { themes as prismThemes } from "prism-react-renderer" ;
88
9- const { themes } = require ( "prism-react-renderer" ) ;
109/** @type {import('@docusaurus/types').Config } */
1110const config = {
12- title : 'MetaCall Tutorial ' ,
11+ title : 'MetaCall Getting Started ' ,
1312 tagline : 'Documentation for MetaCall' ,
1413 favicon : 'img/metacall-logo.png' ,
15- organizationName : "MetaCall" ,
1614
1715 // Set the production url of your site here
18- url : 'https://github.com ' ,
16+ url : 'https://mox678. github.io ' ,
1917 // Set the /<baseUrl>/ pathname under which your site is served
20- // For GitHub pages deployment, it is often '/<projectName>/'
2118 baseUrl : '/docs2/' ,
2219
2320 // GitHub pages deployment config.
24- // If you aren't using GitHub pages, you don't need these.
25- organizationName : 'metacall' , // Usually your GitHub org/user name.
26- projectName : 'doc' , // Usually your repo name.
21+ organizationName : 'mox678' , // your GitHub user/org
22+ projectName : 'docs2' , // repo name
2723 deploymentBranch : 'gh-pages' ,
2824
2925 onBrokenLinks : 'warn' ,
3026 onBrokenMarkdownLinks : 'warn' ,
3127
32- // Even if you don't use internationalization, you can use this field to set
33- // useful metadata like html lang. For example, if your site is Chinese, you
34- // may want to replace "en" with "zh-Hans".
3528 i18n : {
3629 defaultLocale : 'en' ,
3730 locales : [ 'en' ] ,
@@ -44,26 +37,20 @@ const config = {
4437 ( {
4538 docs : {
4639 sidebarPath : './sidebars.js' ,
47-
48-
49- tagsBasePath : "tags" ,
50- breadcrumbs : true ,
51-
52-
40+ tagsBasePath : 'tags' ,
41+ breadcrumbs : true ,
5342 } ,
5443 theme : {
5544 customCss : './src/css/custom.css' ,
5645 } ,
5746 } ) ,
5847 ] ,
5948 ] ,
60-
61-
49+
6250 themeConfig :
6351 /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
6452 ( {
65- customCss : './src/css/custom.css' , // Correct placement for customCss
66- // Replace with your project's social card
53+ customCss : './src/css/custom.css' ,
6754 image : 'img/docusaurus-social-card.jpg' ,
6855 navbar : {
6956 title : 'Metacall Docs' ,
@@ -78,112 +65,77 @@ const config = {
7865 position : 'left' ,
7966 label : 'Documentation' ,
8067 } ,
68+ // Use "to" for internal Docusaurus routes
8169 {
82- label : " Install" ,
83- href : " /docs/category/installating-metacall-cli" ,
84- position : " left" ,
70+ label : ' Install' ,
71+ to : ' /docs/category/installating-metacall-cli' ,
72+ position : ' left' ,
8573 } ,
8674 {
87- label : " Tutorials" ,
88- href : " /docs/category/tutorials" ,
89- position : " left" ,
75+ label : ' Tutorials' ,
76+ to : ' /docs/category/tutorials' ,
77+ position : ' left' ,
9078 } ,
9179 {
92- label : " Google Summer of Code 2025" ,
93- href : " /docs/gsoc" ,
94- position : " left" ,
80+ label : ' Google Summer of Code 2025' ,
81+ to : ' /docs/gsoc' ,
82+ position : ' left' ,
9583 } ,
9684 {
9785 href : '/starred' ,
9886 label : '⭐ Stars' ,
9987 position : 'right' ,
10088 } ,
101-
10289 {
10390 href : 'https://github.com/metacall' ,
10491 label : 'GitHub' ,
10592 position : 'right' ,
10693 } ,
107-
10894 ] ,
10995 } ,
110-
96+
11197 footer : {
112- style : " dark" ,
98+ style : ' dark' ,
11399 links : [
114100 {
115- title : " Intro" ,
101+ title : ' Intro' ,
116102 items : [
117- {
118- label : "Getting Started" ,
119- to : "/docs/getting-started" ,
120- } ,
121- {
122- label : "Install" ,
123- to : "/docs/category/installating-metacall-cli" ,
124- } ,
125-
103+ { label : 'Getting Started' , to : '/docs/getting-started' } ,
104+ { label : 'Install' , to : '/docs/category/installating-metacall-cli' } ,
126105 ] ,
127106 } ,
128107 {
129- title : " Use MetaCall" ,
108+ title : ' Use MetaCall' ,
130109 items : [
131- {
132- label : "Tutorials" ,
133- to : "/docs/category/tutorials" ,
134- } ,
135- {
136- label : "Deployment" ,
137- to : "/docs/deployment" ,
138- } ,
110+ { label : 'Tutorials' , to : '/docs/category/tutorials' } ,
111+ { label : 'Deployment' , to : '/docs/deployment' } ,
139112 ] ,
140113 } ,
141114 {
142- title : " Community" ,
115+ title : ' Community' ,
143116 items : [
144- {
145- label : "Discord" ,
146- to : "https://discord.gg/upwP4mwJWa" ,
147- } ,
148- {
149- label : "Telegram" ,
150- to : "https://t.me/joinchat/BMSVbBatp0Vi4s5l4VgUgg" ,
151- } ,
152- {
153- label : "Matrix" ,
154- to : "https://matrix.to/#/#metacall:matrix.org" ,
155- } ,
156-
117+ { label : 'Discord' , href : 'https://discord.gg/upwP4mwJWa' } ,
118+ { label : 'Telegram' , href : 'https://t.me/joinchat/BMSVbBatp0Vi4s5l4VgUgg' } ,
119+ { label : 'Matrix' , href : 'https://matrix.to/#/#metacall:matrix.org' } ,
157120 ] ,
158121 } ,
159122 {
160- title : " More" ,
123+ title : ' More' ,
161124 items : [
162- {
163- label : "GitHub" ,
164- href : "https://github.com/metacall/" ,
165- } ,
166- {
167- label : "Gsoc" ,
168- href : "/docs/Gsoc" ,
169- } ,
170-
171- {
172- label : "Changelog" ,
173- href : "https://github.com/metacall/core/releases" ,
174- } ,
175-
125+ { label : 'GitHub' , href : 'https://github.com/metacall/' } ,
126+ { label : 'Gsoc' , href : '/docs/Gsoc' } ,
127+ { label : 'Changelog' , href : 'https://github.com/metacall/core/releases' } ,
176128 ] ,
177129 } ,
178130 ] ,
179131 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } MetaCall. All Rights Reserved.` ,
180132 } ,
133+
181134 prism : {
182135 theme : prismThemes . vsDark ,
183136 darkTheme : prismThemes . vsDark ,
184-
185137 } ,
186138 } ) ,
187139} ;
188140
189- export default config ;
141+ export default config ;
0 commit comments