docs: update the changelog docs
This commit is contained in:
parent
9dc4ede692
commit
9d0cdf8de9
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Changelog
|
title: Changelog
|
||||||
slug: /guides/changelog/
|
sidebar_position: 1
|
||||||
sidebar_position: 5
|
slug: /changelog
|
||||||
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
|
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
|
||||||
keywords:
|
keywords:
|
||||||
[
|
[
|
||||||
@ -299,7 +299,7 @@ const config = {
|
|||||||
{
|
{
|
||||||
type: "docSidebar",
|
type: "docSidebar",
|
||||||
sidebarId: "guidesSidebar",
|
sidebarId: "guidesSidebar",
|
||||||
label: "User Guide",
|
label: "Guides",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "docSidebar",
|
type: "docSidebar",
|
||||||
@ -310,6 +310,11 @@ const config = {
|
|||||||
to: "/api-reference",
|
to: "/api-reference",
|
||||||
label: "API Reference",
|
label: "API Reference",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "docSidebar",
|
||||||
|
sidebarId: "releasesSidebar",
|
||||||
|
label: "Changelog",
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// type: "docSidebar",
|
// type: "docSidebar",
|
||||||
// sidebarId: "docsSidebar",
|
// sidebarId: "docsSidebar",
|
||||||
@ -343,10 +348,6 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
customFields: {
|
|
||||||
githubAccessToken: process.env.GITHUB_ACCESS_TOKEN || "XXXX",
|
|
||||||
},
|
|
||||||
|
|
||||||
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
|
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -162,6 +162,12 @@ const sidebars = {
|
|||||||
dirName: "developer",
|
dirName: "developer",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
releasesSidebar: [
|
||||||
|
{
|
||||||
|
type: "autogenerated",
|
||||||
|
dirName: "releases",
|
||||||
|
},
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = sidebars;
|
module.exports = sidebars;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import styles from "./styles.module.scss";
|
|||||||
import NavBarExtension from "../NavbarExtension";
|
import NavBarExtension from "../NavbarExtension";
|
||||||
import { useLocation } from "react-router-dom";
|
import { useLocation } from "react-router-dom";
|
||||||
|
|
||||||
const allowedPaths = ["/docs/", "/developer/", "/api-reference/", "/guides/", "/guides", "/docs", "/developer", "/api-reference", "/guides/changelog"];
|
const allowedPaths = ["/docs/", "/developer/", "/api-reference/", "/guides/", "/guides", "/docs", "/developer", "/api-reference", "/changelog"];
|
||||||
|
|
||||||
export default function Layout(props) {
|
export default function Layout(props) {
|
||||||
const {
|
const {
|
||||||
|
|||||||
@ -17,9 +17,9 @@ export default function NavBarExtension() {
|
|||||||
<NavLink
|
<NavLink
|
||||||
to="/guides"
|
to="/guides"
|
||||||
className="text-gray-700 font-medium hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-200"
|
className="text-gray-700 font-medium hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-200"
|
||||||
activeClassName={location.pathname !== "/guides/changelog" && location.pathname === "/guides" ? "text-gray-900 dark:text-gray-100 font-semibold border-b-2 border-gray-900 dark:border-gray-100" : ""}
|
activeClassName="text-gray-900 dark:text-gray-100 font-bold border-b-2 border-gray-900 dark:border-gray-100"
|
||||||
>
|
>
|
||||||
Guide
|
Guides
|
||||||
</NavLink>
|
</NavLink>
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/developer"
|
to="/developer"
|
||||||
@ -36,9 +36,9 @@ export default function NavBarExtension() {
|
|||||||
API Reference
|
API Reference
|
||||||
</NavLink>
|
</NavLink>
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/guides/changelog"
|
to="/changelog"
|
||||||
className="text-gray-700 font-medium hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-200"
|
className="text-gray-700 font-medium hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-200"
|
||||||
activeClassName={location.pathname === "/guides/changelog" ? "text-gray-900 dark:text-gray-100 font-semibold border-b-2 border-gray-900 dark:border-gray-100" : ""}
|
activeClassName="text-gray-900 dark:text-gray-100 font-bold border-b-2 border-gray-900 dark:border-gray-100"
|
||||||
>
|
>
|
||||||
Changelog
|
Changelog
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user