Skip to content

Commit

Permalink
Merge pull request #34 from noteable-io/doc-time
Browse files Browse the repository at this point in the history
enable the docs page
  • Loading branch information
rgbkrk authored Oct 12, 2023
2 parents dbcaee5 + d7a8503 commit 718ff46
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 36 deletions.
40 changes: 18 additions & 22 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ const config = {
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
// docs: {
// sidebarPath: require.resolve("./sidebars.js"),
// // Please change this to your repo.
// // Remove this to remove the "edit this page" links.
// editUrl:
// "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
// },
docs: {
sidebarPath: require.resolve("./sidebars.js"),
},
blog: {
showReadingTime: true,
// Please change this to your repo.
Expand Down Expand Up @@ -83,12 +79,12 @@ const config = {
src: "img/logo.svg",
},
items: [
// {
// type: "docSidebar",
// sidebarId: "tutorialSidebar",
// position: "left",
// label: "Tutorial",
// },
{
type: "docSidebar",
sidebarId: "docSidebar",
position: "left",
label: "Docs",
},
{ to: "/blog", label: "Blog", position: "left" },
{
href: "https://github.com/noteable-io",
Expand All @@ -100,15 +96,15 @@ const config = {
footer: {
style: "dark",
links: [
// {
// title: "Docs",
// items: [
// {
// label: "Tutorial",
// to: "/docs/intro",
// },
// ],
// },
{
title: "Docs",
items: [
{
label: "Introduction",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
Expand Down
15 changes: 1 addition & 14 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,7 @@

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
// tutorialSidebar: [{ type: "autogenerated", dirName: "." }],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
docSidebar: [{ type: "autogenerated", dirName: "." }],
};

module.exports = sidebars;

0 comments on commit 718ff46

Please sign in to comment.