Skip to content

Commit

Permalink
update: docs framework is done, keep simple and clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Chivier committed Jul 1, 2024
1 parent dd5f59b commit 3b62b75
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 144 deletions.
12 changes: 0 additions & 12 deletions blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions blog/authors.yml

This file was deleted.

16 changes: 0 additions & 16 deletions blog/tags.yml

This file was deleted.

5 changes: 5 additions & 0 deletions docs/api/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 1
---

# API docs
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 18 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {themes as prismThemes} from 'prism-react-renderer';

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

// Set the production url of your site here
Expand Down Expand Up @@ -66,7 +66,7 @@ const config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: 'ServerlessLLM',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
Expand All @@ -76,9 +76,14 @@ const config = {
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
label: 'Documents',
},
{
type: 'docSidebar',
sidebarId: 'apiSidebar',
position: 'left',
label: 'API',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
Expand All @@ -93,9 +98,13 @@ const config = {
title: 'Docs',
items: [
{
label: 'Tutorial',
label: 'Documents',
to: '/docs/intro',
},
{
label: 'API',
to: '/api'
}
],
},
{
Expand All @@ -119,8 +128,8 @@ const config = {
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
label: 'API',
to: '/api',
},
{
label: 'GitHub',
Expand All @@ -129,7 +138,7 @@ const config = {
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} ServerlessLLM, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
Expand Down
8 changes: 7 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
tutorialSidebar: [
{
type: 'autogenerated',
dirName: 'stable',
},
],
apiSidebar: [{type: 'autogenerated', dirName: 'api'}],

// But you can create a sidebar manually
/*
Expand Down

0 comments on commit 3b62b75

Please sign in to comment.