mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
chore: migrate homepage and demo to understand-anything.com
Drops the /Understand-Anything subpath and retargets the site at the apex custom domain served through GitHub Pages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,5 @@ import { defineConfig } from 'astro/config';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://lum1104.github.io',
|
||||
base: '/Understand-Anything',
|
||||
site: 'https://understand-anything.com',
|
||||
});
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
understand-anything.com
|
||||
@@ -8,7 +8,7 @@ const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
<div class="footer-links">
|
||||
<a href={githubUrl} target="_blank" rel="noopener noreferrer">GitHub</a>
|
||||
<span class="footer-sep">·</span>
|
||||
<a href="/Understand-Anything/demo/">Live Demo</a>
|
||||
<a href="/demo/">Live Demo</a>
|
||||
<span class="footer-sep">·</span>
|
||||
<a href={`${githubUrl}/blob/main/LICENSE`} target="_blank" rel="noopener noreferrer">MIT License</a>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@ const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
|
||||
<section class="hero">
|
||||
<div class="hero-bg">
|
||||
<img src="/Understand-Anything/images/hero.jpg" alt="" class="hero-bg-img" loading="eager" />
|
||||
<img src="/images/hero.jpg" alt="" class="hero-bg-img" loading="eager" />
|
||||
<div class="hero-overlay"></div>
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,7 @@ const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
|
||||
<div class="hero-actions anim anim-5">
|
||||
<a href="#install" class="hero-cta">Get Started</a>
|
||||
<a href="/Understand-Anything/demo/" class="hero-demo">Live Demo →</a>
|
||||
<a href="/demo/" class="hero-demo">Live Demo →</a>
|
||||
<a href={githubUrl} target="_blank" rel="noopener noreferrer" class="hero-secondary">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" style="vertical-align:-2px;margin-right:4px;"><path d="M12 .587l3.668 7.568L24 9.306l-6 5.986 1.416 8.421L12 19.897l-7.416 3.816L6 15.292 0 9.306l8.332-1.151z"/></svg>
|
||||
Star on GitHub
|
||||
|
||||
@@ -4,7 +4,7 @@ const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
|
||||
<nav class="nav" id="nav">
|
||||
<div class="nav-inner">
|
||||
<a href="/Understand-Anything/" class="nav-logo">Understand Anything</a>
|
||||
<a href="/" class="nav-logo">Understand Anything</a>
|
||||
<div class="nav-links">
|
||||
<a href={githubUrl} target="_blank" rel="noopener noreferrer" class="nav-github">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
const base = import.meta.env.BASE_URL; /* /Understand-Anything/ in prod */
|
||||
const base = import.meta.env.BASE_URL; /* "/" after custom domain migration */
|
||||
const demoUrl = `${base.endsWith('/') ? base : base + '/'}demo/index.html`;
|
||||
---
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ const { title } = Astro.props;
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Turn any codebase into an interactive knowledge graph you can explore, search, and learn from." />
|
||||
<link rel="icon" type="image/svg+xml" href="/Understand-Anything/favicon.svg" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* Font declarations — self-hosted, no external CDN dependency */
|
||||
@font-face {
|
||||
font-family: 'DM Serif Display';
|
||||
src: url('/Understand-Anything/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
|
||||
src: url('/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('/Understand-Anything/fonts/Inter-Regular.woff2') format('woff2');
|
||||
src: url('/fonts/Inter-Regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('/Understand-Anything/fonts/Inter-SemiBold.woff2') format('woff2');
|
||||
src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
src: url('/Understand-Anything/fonts/JetBrainsMono-Regular.woff2') format('woff2');
|
||||
src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
|
||||
@@ -4,7 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
base: "/Understand-Anything/demo/",
|
||||
base: "/demo/",
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user