diff --git a/.gitignore b/.gitignore
index e2a758fb..77b0562c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
.next
node_modules
-.DS_Store
\ No newline at end of file
+.DS_Store
+tmp-compressed-images
\ No newline at end of file
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 00000000..b512c09d
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1 @@
+node_modules
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 00000000..b73941e7
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,15 @@
+{
+ "printWidth": 80,
+ "tabWidth": 2,
+ "useTabs": false,
+ "semi": true,
+ "singleQuote": false,
+ "jsxSingleQuote": false,
+ "trailingComma": "es5",
+ "bracketSpacing": true,
+ "jsxBracketSameLine": false,
+ "arrowParens": "always",
+ "proseWrap": "preserve",
+ "htmlWhitespaceSensitivity": "css",
+ "endOfLine": "lf"
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index f2c64656..dc1ac1c3 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -3,6 +3,7 @@
"embedder",
"embedders",
"Emeddable",
- "Mintplex"
+ "Mintplex",
+ "Ollama"
]
}
\ No newline at end of file
diff --git a/README.md b/README.md
index 1224a137..848756e9 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
+
@@ -11,24 +11,27 @@
├── public/
│ ├── images/
│ │ ├── anythingllm-setup/
+│ │ ├── cloud/
+│ │ ├── faq/
│ │ ├── features/
│ │ ├── getting-started/
-│ │ ├── guides-and-faq/
+│ │ ├── guides/
│ │ ├── home/
│ │ ├── legal/
-│ │ └── product/
+│ │ ├── product/
+│ │ └── thumbnails/
│ ├── favicon.png
│ ├── licence.txt
│ └── robots.txt
├── pages/
-│ ├── anythingllm-setup/
+│ ├── agent/
+│ ├── api/
+│ ├── changelog/
+│ ├── cloud/
│ ├── features/
-│ ├── getting-started/
-│ ├── guides-and-faq/
-│ ├── legal/
-│ ├── product/
-│ ├── anythingllm-cloud.mdx
-│ ├── contribute.mdx
+│ ├── installation/
+│ ├── setup/
+│ ├── _meta.json
│ └── index.mdx
├── components/
│ └── icons/
diff --git a/components/card.tsx b/components/card.tsx
new file mode 100644
index 00000000..fcf11b22
--- /dev/null
+++ b/components/card.tsx
@@ -0,0 +1,17 @@
+import { Cards } from "nextra/components";
+
+type CardProps = {
+ image?: boolean;
+ arrow?: boolean;
+ title: string;
+ children: React.ReactNode;
+ icon: React.ReactNode;
+ href: string;
+};
+export const Card: React.FC = ({
+ image = true,
+ arrow = true,
+ ...props
+}) => {
+ return ;
+};
diff --git a/components/icons/database.svg b/components/icons/database.svg
new file mode 100644
index 00000000..2670b652
--- /dev/null
+++ b/components/icons/database.svg
@@ -0,0 +1,3 @@
+
diff --git a/components/icons/index.ts b/components/icons/index.ts
index 2324bcb7..d40a6002 100644
--- a/components/icons/index.ts
+++ b/components/icons/index.ts
@@ -27,3 +27,4 @@ export { default as TerminalIcon } from './terminal.svg'
export { default as DiagramIcon } from './diagram.svg'
export { default as FolderTreeIcon } from './folder-tree.svg'
export { default as IdCardIcon } from './id-card.svg'
+export { default as Database } from './database.svg'
diff --git a/next-env.d.ts b/next-env.d.ts
index 4f11a03d..a4a7b3f5 100644
--- a/next-env.d.ts
+++ b/next-env.d.ts
@@ -2,4 +2,4 @@
///
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
+// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
diff --git a/next.config.js b/next.config.js
index c7d3ef39..4b55222d 100644
--- a/next.config.js
+++ b/next.config.js
@@ -12,4 +12,18 @@ module.exports = withNextra({
return config;
},
+ async redirects() {
+ return [
+ {
+ source: '/anythingllm-cloud/502',
+ destination: '/cloud/error-502',
+ permanent: true,
+ },
+ {
+ source: '/llm-not-using-my-docs',
+ destination: '/chatting-with-documents/rag-in-anythingllm',
+ permanent: true,
+ },
+ ];
+ },
});
\ No newline at end of file
diff --git a/package.json b/package.json
index 2a65431a..4fcad671 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,13 @@
{
"name": "anythingllm-docs",
- "version": "1.0.2",
+ "version": "1.1.0",
"description": "AnythingLLM Documentation",
"scripts": {
- "dev": "next dev",
+ "dev": "next dev --port 3333",
+ "img": "node scripts/compress-images.mjs",
"build": "next build",
- "start": "next start"
+ "start": "next start",
+ "lint": "yarn prettier --ignore-path .prettierignore --write ./pages"
},
"repository": {
"type": "git",
@@ -20,8 +22,8 @@
"dependencies": {
"@next/third-parties": "^14.2.3",
"@vercel/og": "^0.6.2",
- "next": "^14.2.2",
- "nextra": "latest",
+ "next": "^14.2.10",
+ "nextra": "^2.13.4",
"nextra-theme-docs": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
@@ -30,6 +32,11 @@
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@types/node": "18.11.10",
+ "imagemin": "^9.0.0",
+ "imagemin-mozjpeg": "^10.0.0",
+ "imagemin-pngquant": "^10.0.0",
+ "prettier": "^3.2.5",
"typescript": "^4.9.3"
- }
+ },
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
\ No newline at end of file
diff --git a/pages/_app.tsx b/pages/_app.tsx
index 9f897f80..b3f3e1d5 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -1,10 +1,10 @@
-import './index.css';
+import "./index.css";
function MyApp({ Component, pageProps }) {
return (
<>
> // The gaId is the Measurement ID on Google Analytics
- )
+ );
}
-export default MyApp
\ No newline at end of file
+export default MyApp;
diff --git a/pages/_document.js b/pages/_document.js
index 0c16cc72..d865c522 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -1,4 +1,4 @@
-import Document, { Html, Head, Main, NextScript } from 'next/document'
+import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
render() {
@@ -10,8 +10,8 @@ class MyDocument extends Document {