Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

removed files that were not needed anymore

Ramon Perez3f9f10d47910
diff --git a/website/astro.config.mjs b/website/astro.config.mjs
index 5a9d870d5..5395b8e9f 100644
--- a/website/astro.config.mjs
+++ b/website/astro.config.mjs
@@ -15,30 +15,6 @@ const __dirname = dirname(__filename)
export default defineConfig({
// Deploy to the new v2 subdomain
site: 'https://v2.jan.ai',
- vite: {
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- '@/components': path.resolve(__dirname, './src/components'),
- '@/layouts': path.resolve(__dirname, './src/layouts'),
- '@/assets': path.resolve(__dirname, './src/assets'),
- '@/content': path.resolve(__dirname, './src/content'),
- '@/styles': path.resolve(__dirname, './src/styles'),
- '@/utils': path.resolve(__dirname, './src/utils'),
- },
- },
- assetsInclude: [
- '**/*.jpg',
- '**/*.jpeg',
- '**/*.png',
- '**/*.gif',
- '**/*.svg',
- '**/*.webp',
- ],
- optimizeDeps: {
- exclude: ['@astrojs/starlight'],
- },
- },
integrations: [
mermaid({
theme: 'default',
diff --git a/website/src/pages/api-reference.astro b/website/src/pages/api-reference.astro
deleted file mode 100644
index ac3d9b4f5..000000000
--- a/website/src/pages/api-reference.astro
+++ /dev/null
@@ -1,58 +0,0 @@
----
-const title = 'πŸ‘‹ Jan API Reference';
-const description = 'Interactive Jan API documentation powered by Scalar';
----
-
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="description" content={description} />
- <title>{title}</title>
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
-
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
- background: #fff;
- color: #000;
- }
-
- #scalar-api {
- width: 100%;
- height: 100vh;
- }
-
- /* Dark mode support */
- html[data-theme="dark"] body {
- background: #1a1a1a;
- color: #fff;
- }
- </style>
-</head>
-<body>
- <div id="scalar-api"></div>
-</body>
-</html>
-
-<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
-
-<script is:inline>
- window.addEventListener('DOMContentLoaded', function() {
- Scalar.createApiReference('#scalar-api', {
- url: '/openapi/openapi.json',
- proxyUrl: 'https://proxy.scalar.com',
- theme: 'kepler',
- spec: {
- info: {
- title: 'πŸ‘‹ Jan API'
- }
- }
- });
- });
-</script>
\ No newline at end of file