mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: deploy to Cloudflare Pages and update branding
- Add Cloudflare Pages deployment for landing page (snapotter.com) and docs (docs.snapotter.com) - Create deploy-landing.yml and update deploy-docs.yml workflows - Update CI to ignore apps/landing/** paths - Fix logo transparency (remove white background) across all apps - Recreate social-preview.png with SnapOtter branding - Update all docs URLs from GitHub Pages to docs.snapotter.com - Update VitePress config: light theme default, fix llms.txt paths - Add .vitepress/cache/ and .env.* to gitignore
This commit is contained in:
@@ -6,6 +6,7 @@ export default defineConfig({
|
||||
description:
|
||||
"Documentation for SnapOtter - A Self Hosted Image Manipulator. 45+ tools, local AI, pipelines, REST API.",
|
||||
base: "/",
|
||||
appearance: { initialValue: "light" },
|
||||
srcDir: ".",
|
||||
outDir: "./.vitepress/dist",
|
||||
ignoreDeadLinks: [/localhost/],
|
||||
@@ -13,13 +14,13 @@ export default defineConfig({
|
||||
head: [
|
||||
["meta", { name: "theme-color", content: "#3b82f6" }],
|
||||
["link", { rel: "icon", type: "image/png", href: "/favicon.png" }],
|
||||
["link", { rel: "llms-txt", href: "/ashim/llms.txt" }],
|
||||
["link", { rel: "llms-txt", href: "/llms.txt" }],
|
||||
],
|
||||
|
||||
vite: {
|
||||
plugins: [
|
||||
llmstxt({
|
||||
domain: "https://ashim-hq.github.io",
|
||||
domain: "https://docs.snapotter.com",
|
||||
customLLMsTxtTemplate: `# {title}
|
||||
|
||||
{description}
|
||||
@@ -42,7 +43,7 @@ export default defineConfig({
|
||||
|
||||
## Source
|
||||
|
||||
- [GitHub](https://github.com/ashim-hq/ashim)
|
||||
- [GitHub](https://github.com/snapotter-hq/snapotter)
|
||||
- License: AGPLv3 (commercial license also available)
|
||||
`,
|
||||
customTemplateVariables: {
|
||||
@@ -96,13 +97,13 @@ export default defineConfig({
|
||||
|
||||
footer: {
|
||||
message:
|
||||
'Released under the <a href="https://github.com/ashim-hq/ashim/blob/main/LICENSE">AGPLv3 License</a>.',
|
||||
'Released under the <a href="https://github.com/snapotter-hq/snapotter/blob/main/LICENSE">AGPLv3 License</a>.',
|
||||
copyright:
|
||||
'AI-friendly docs available at <a href="/ashim/llms.txt">/llms.txt</a> · <a href="/ashim/llms-full.txt">/llms-full.txt</a>',
|
||||
'AI-friendly docs available at <a href="/llms.txt">/llms.txt</a> · <a href="/llms-full.txt">/llms-full.txt</a>',
|
||||
},
|
||||
|
||||
editLink: {
|
||||
pattern: "https://github.com/ashim-hq/ashim/edit/main/apps/docs/:path",
|
||||
pattern: "https://github.com/snapotter-hq/snapotter/edit/main/apps/docs/:path",
|
||||
text: "Edit this page on GitHub",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
import { onMounted, ref } from "vue";
|
||||
|
||||
const stars = ref<string | null>(null);
|
||||
const repo = "https://github.com/ashim-hq/ashim";
|
||||
const repo = "https://github.com/snapotter-hq/snapotter";
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const res = await fetch("https://api.github.com/repos/ashim-hq/ashim");
|
||||
const res = await fetch("https://api.github.com/repos/snapotter-hq/snapotter");
|
||||
if (!res.ok) return;
|
||||
const data = await res.json();
|
||||
const count = data.stargazers_count;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* Quick start command banner on homepage */
|
||||
.quick-start-banner {
|
||||
max-width: 640px;
|
||||
max-width: 960px;
|
||||
margin: -16px auto 48px;
|
||||
padding: 0 24px;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user