removed files that were not needed anymore
This commit is contained in:
parent
e96c5b2416
commit
3f9f10d479
@ -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',
|
||||
|
||||
@ -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>
|
||||
Loading…
x
Reference in New Issue
Block a user