docs: update the changelog docs

This commit is contained in:
Arista Indrajaya 2024-03-06 13:56:39 +07:00
parent 9dc4ede692
commit 9d0cdf8de9
22 changed files with 1070 additions and 1063 deletions

View File

@ -1,7 +1,7 @@
---
title: Changelog
slug: /guides/changelog/
sidebar_position: 5
sidebar_position: 1
slug: /changelog
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords:
[

View File

@ -299,7 +299,7 @@ const config = {
{
type: "docSidebar",
sidebarId: "guidesSidebar",
label: "User Guide",
label: "Guides",
},
{
type: "docSidebar",
@ -310,6 +310,11 @@ const config = {
to: "/api-reference",
label: "API Reference",
},
{
type: "docSidebar",
sidebarId: "releasesSidebar",
label: "Changelog",
},
// {
// type: "docSidebar",
// sidebarId: "docsSidebar",
@ -343,10 +348,6 @@ const config = {
},
},
customFields: {
githubAccessToken: process.env.GITHUB_ACCESS_TOKEN || "XXXX",
},
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
};

View File

@ -162,6 +162,12 @@ const sidebars = {
dirName: "developer",
},
],
releasesSidebar: [
{
type: "autogenerated",
dirName: "releases",
},
]
};
module.exports = sidebars;

View File

@ -17,7 +17,7 @@ import styles from "./styles.module.scss";
import NavBarExtension from "../NavbarExtension";
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) {
const {

View File

@ -17,9 +17,9 @@ export default function NavBarExtension() {
<NavLink
to="/guides"
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
to="/developer"
@ -36,9 +36,9 @@ export default function NavBarExtension() {
API Reference
</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"
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
</NavLink>