Skip to content

Commit 3b62b75

Browse files
committed
update: docs framework is done, keep simple and clean
1 parent dd5f59b commit 3b62b75

23 files changed

+30
-144
lines changed

blog/2019-05-28-first-blog-post.md

-12
This file was deleted.

blog/2019-05-29-long-blog-post.md

-44
This file was deleted.

blog/2021-08-01-mdx-blog-post.mdx

-20
This file was deleted.
Binary file not shown.

blog/2021-08-26-welcome/index.md

-25
This file was deleted.

blog/authors.yml

-17
This file was deleted.

blog/tags.yml

-16
This file was deleted.

docs/api/intro.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# API docs

docs/intro.md docs/stable/intro.md

File renamed without changes.

docusaurus.config.js

+18-9
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {themes as prismThemes} from 'prism-react-renderer';
88

99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
11-
title: 'My Site',
12-
tagline: 'Dinosaurs are cool',
11+
title: 'ServerlessLLM',
12+
tagline: 'Serverless + LLM = ❤️',
1313
favicon: 'img/favicon.ico',
1414

1515
// Set the production url of your site here
@@ -66,7 +66,7 @@ const config = {
6666
// Replace with your project's social card
6767
image: 'img/docusaurus-social-card.jpg',
6868
navbar: {
69-
title: 'My Site',
69+
title: 'ServerlessLLM',
7070
logo: {
7171
alt: 'My Site Logo',
7272
src: 'img/logo.svg',
@@ -76,9 +76,14 @@ const config = {
7676
type: 'docSidebar',
7777
sidebarId: 'tutorialSidebar',
7878
position: 'left',
79-
label: 'Tutorial',
79+
label: 'Documents',
80+
},
81+
{
82+
type: 'docSidebar',
83+
sidebarId: 'apiSidebar',
84+
position: 'left',
85+
label: 'API',
8086
},
81-
{to: '/blog', label: 'Blog', position: 'left'},
8287
{
8388
href: 'https://github.com/facebook/docusaurus',
8489
label: 'GitHub',
@@ -93,9 +98,13 @@ const config = {
9398
title: 'Docs',
9499
items: [
95100
{
96-
label: 'Tutorial',
101+
label: 'Documents',
97102
to: '/docs/intro',
98103
},
104+
{
105+
label: 'API',
106+
to: '/api'
107+
}
99108
],
100109
},
101110
{
@@ -119,8 +128,8 @@ const config = {
119128
title: 'More',
120129
items: [
121130
{
122-
label: 'Blog',
123-
to: '/blog',
131+
label: 'API',
132+
to: '/api',
124133
},
125134
{
126135
label: 'GitHub',
@@ -129,7 +138,7 @@ const config = {
129138
],
130139
},
131140
],
132-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
141+
copyright: `Copyright © ${new Date().getFullYear()} ServerlessLLM, Inc. Built with Docusaurus.`,
133142
},
134143
prism: {
135144
theme: prismThemes.github,

sidebars.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
1515
const sidebars = {
1616
// By default, Docusaurus generates a sidebar from the docs folder structure
17-
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
17+
tutorialSidebar: [
18+
{
19+
type: 'autogenerated',
20+
dirName: 'stable',
21+
},
22+
],
23+
apiSidebar: [{type: 'autogenerated', dirName: 'api'}],
1824

1925
// But you can create a sidebar manually
2026
/*

0 commit comments

Comments
 (0)