diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js
index 61c46c04f..1c32f901e 100644
--- a/docs/docusaurus.config.js
+++ b/docs/docusaurus.config.js
@@ -34,6 +34,7 @@ const config = {
// Plugins we added
plugins: [
+ "docusaurus-plugin-sass",
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
@@ -75,7 +76,7 @@ const config = {
blog: false,
// Will be passed to @docusaurus/theme-classic.
theme: {
- customCss: require.resolve("./src/css/custom.css"),
+ customCss: require.resolve("./src/styles/main.scss"),
},
// Will be passed to @docusaurus/plugin-content-pages (false to disable)
// pages: {},
@@ -153,87 +154,13 @@ const config = {
// label: "API",
// to: "/api",
// },
- {
- href: "https://github.com/janhq/jan",
- label: "GitHub",
- position: "right",
- },
+ // {
+ // href: "https://github.com/janhq/jan",
+ // label: "GitHub",
+ // position: "right",
+ // },
],
},
- footer: {
- style: "dark",
- links: [
- {
- title: "Jan",
- items: [
- {
- label: "Home",
- to: "/",
- },
- {
- label: "Platform",
- to: "/platform",
- },
- {
- label: "Solutions",
- to: "/solutions",
- },
- ],
- },
- {
- title: "Docs",
- items: [
- {
- label: "Docs",
- to: "/docs",
- },
- {
- label: "Hardware",
- to: "/hardware",
- },
- {
- label: "API",
- to: "/api",
- },
- {
- label: "Changelog",
- to: "/changelog",
- },
- ],
- },
- {
- title: "Community",
- items: [
- {
- label: "Discord",
- href: "https://discord.gg/FTk2MvZwJH",
- },
- {
- label: "Twitter",
- href: "https://twitter.com/jan_dotai",
- },
- ],
- },
- {
- title: "Company",
- items: [
- {
- label: "About",
- to: "/about",
- },
- {
- label: "Careers",
- href: "https://janai.bamboohr.com/careers",
- },
- {
- label: "GitHub",
- href: "https://github.com/janhq/jan",
- },
- ],
- },
- ],
- copyright: `Copyright © ${new Date().getFullYear()} Jan AI Pte Ltd.`,
- },
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
@@ -241,7 +168,7 @@ const config = {
},
colorMode: {
disableSwitch: false,
- respectPrefersColorScheme: false,
+ respectPrefersColorScheme: true,
},
}),
};
diff --git a/docs/package.json b/docs/package.json
index f69007ce2..709133d6a 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -23,12 +23,15 @@
"autoprefixer": "^10.4.16",
"axios": "^1.5.1",
"clsx": "^1.2.1",
+ "docusaurus-plugin-sass": "^0.2.5",
"js-yaml": "^4.1.0",
"postcss": "^8.4.30",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
+ "react-icons": "^4.11.0",
"redocusaurus": "^1.6.3",
+ "sass": "^1.69.3",
"tailwindcss": "^3.3.3"
},
"devDependencies": {
diff --git a/docs/src/components/Announcement/index.js b/docs/src/components/Announcement/index.js
new file mode 100644
index 000000000..4e32a362c
--- /dev/null
+++ b/docs/src/components/Announcement/index.js
@@ -0,0 +1,78 @@
+import React from "react";
+
+import { useAppStars } from "@site/src/hooks/useAppStars";
+import { useAppRelease } from "@site/src/hooks/useAppRelease";
+
+import { AiOutlineGithub, AiOutlineTwitter } from "react-icons/ai";
+import { BiLogoDiscordAlt } from "react-icons/bi";
+
+const socials = [
+ {
+ icon:
+ {release.tagVersion} + is now live on GitHub. Check it out +
+ +