From 9abe757906341ca1e35b04f978f818e993f50337 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 09:59:30 +0000 Subject: [PATCH 1/2] chore: release asriui --- .changeset/initial-release.md | 5 -- CHANGELOG.md | 6 ++ package.json | 2 +- site/docs/performanceMetrics.ts | 123 ++++++++++++++++++++------------ 4 files changed, 86 insertions(+), 50 deletions(-) delete mode 100644 .changeset/initial-release.md diff --git a/.changeset/initial-release.md b/.changeset/initial-release.md deleted file mode 100644 index e476541..0000000 --- a/.changeset/initial-release.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"asriui": minor ---- - -Initial public release of AsriUI with Button, Input, and Card components, design tokens, and theming. diff --git a/CHANGELOG.md b/CHANGELOG.md index 55ee38c..451095d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.1.0 + +### Minor Changes + +- 0fe1ec5: Initial public release of AsriUI with Button, Input, and Card components, design tokens, and theming. + All notable changes to AsriUI are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/). ## [Unreleased] diff --git a/package.json b/package.json index 68bef97..f53a90a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asriui", - "version": "0.0.0", + "version": "0.1.0", "description": "Production-ready React UI components", "license": "MIT", "type": "module", diff --git a/site/docs/performanceMetrics.ts b/site/docs/performanceMetrics.ts index 5cf4964..dbb4eab 100644 --- a/site/docs/performanceMetrics.ts +++ b/site/docs/performanceMetrics.ts @@ -24,43 +24,43 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "ai-data-analyst", - "rawKb": 27.26, - "gzipKb": 7.01, + "rawKb": 27.31, + "gzipKb": 7.02, "treeShakable": true, "ssr": true }, { "slug": "ai-form-filler", - "rawKb": 18.74, - "gzipKb": 5.3, + "rawKb": 18.83, + "gzipKb": 5.32, "treeShakable": true, "ssr": true }, { "slug": "ai-orchestrator", - "rawKb": 61.33, - "gzipKb": 13.63, + "rawKb": 61.49, + "gzipKb": 13.65, "treeShakable": true, "ssr": true }, { "slug": "ai-search", - "rawKb": 18.91, - "gzipKb": 5.3, + "rawKb": 18.93, + "gzipKb": 5.31, "treeShakable": true, "ssr": true }, { "slug": "ai-summarizer", - "rawKb": 18.17, - "gzipKb": 5.12, + "rawKb": 18.22, + "gzipKb": 5.13, "treeShakable": true, "ssr": true }, { "slug": "ai-workflow-builder", - "rawKb": 103.2, - "gzipKb": 22.3, + "rawKb": 103.18, + "gzipKb": 22.29, "treeShakable": true, "ssr": true }, @@ -73,8 +73,8 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "auth", - "rawKb": 20.72, - "gzipKb": 5.92, + "rawKb": 20.74, + "gzipKb": 5.93, "treeShakable": true, "ssr": true }, @@ -94,7 +94,7 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "button", - "rawKb": 9.86, + "rawKb": 9.87, "gzipKb": 2.95, "treeShakable": true, "ssr": true @@ -122,8 +122,8 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "card-validation", - "rawKb": 21.25, - "gzipKb": 5.45, + "rawKb": 21.26, + "gzipKb": 5.46, "treeShakable": true, "ssr": true }, @@ -150,14 +150,21 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "color-palette", - "rawKb": 3.96, + "rawKb": 3.98, "gzipKb": 1.26, "treeShakable": true, "ssr": true }, + { + "slug": "context-menu", + "rawKb": 7.07, + "gzipKb": 2.08, + "treeShakable": true, + "ssr": true + }, { "slug": "data-grid", - "rawKb": 79.82, + "rawKb": 79.83, "gzipKb": 17.79, "treeShakable": true, "ssr": false @@ -165,7 +172,7 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ { "slug": "date-picker", "rawKb": 25.82, - "gzipKb": 6.06, + "gzipKb": 6.07, "treeShakable": true, "ssr": true }, @@ -185,21 +192,28 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "error-boundary", - "rawKb": 15.84, - "gzipKb": 4.68, + "rawKb": 15.86, + "gzipKb": 4.69, + "treeShakable": true, + "ssr": true + }, + { + "slug": "feature-request", + "rawKb": 47.7, + "gzipKb": 11.6, "treeShakable": true, "ssr": true }, { "slug": "flow-chart", "rawKb": 5.58, - "gzipKb": 1.99, + "gzipKb": 1.98, "treeShakable": true, "ssr": false }, { "slug": "form", - "rawKb": 45.84, + "rawKb": 45.86, "gzipKb": 11.08, "treeShakable": true, "ssr": true @@ -211,6 +225,13 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ "treeShakable": true, "ssr": true }, + { + "slug": "hero", + "rawKb": 7.38, + "gzipKb": 2.01, + "treeShakable": true, + "ssr": true + }, { "slug": "icon", "rawKb": 6.19, @@ -220,14 +241,14 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "image", - "rawKb": 10.11, - "gzipKb": 2.91, + "rawKb": 10.12, + "gzipKb": 2.92, "treeShakable": true, "ssr": true }, { "slug": "input", - "rawKb": 8.27, + "rawKb": 8.28, "gzipKb": 2.4, "treeShakable": true, "ssr": true @@ -241,8 +262,8 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "link", - "rawKb": 4.39, - "gzipKb": 1.52, + "rawKb": 4.4, + "gzipKb": 1.53, "treeShakable": true, "ssr": true }, @@ -255,21 +276,21 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "loader", - "rawKb": 1.97, - "gzipKb": 0.72, + "rawKb": 1.98, + "gzipKb": 0.73, "treeShakable": true, "ssr": true }, { "slug": "markdown", "rawKb": 19.9, - "gzipKb": 4.76, + "gzipKb": 4.77, "treeShakable": true, "ssr": true }, { "slug": "menu", - "rawKb": 13.21, + "rawKb": 13.22, "gzipKb": 3.57, "treeShakable": true, "ssr": true @@ -284,14 +305,14 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ { "slug": "monaco-editor", "rawKb": 3.56, - "gzipKb": 1.44, + "gzipKb": 1.43, "treeShakable": true, "ssr": false }, { "slug": "page", - "rawKb": 167.66, - "gzipKb": 36.18, + "rawKb": 167.7, + "gzipKb": 36.19, "treeShakable": true, "ssr": true }, @@ -302,6 +323,13 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ "treeShakable": true, "ssr": true }, + { + "slug": "questionnaire", + "rawKb": 24.17, + "gzipKb": 6.23, + "treeShakable": true, + "ssr": true + }, { "slug": "quote", "rawKb": 6.21, @@ -346,7 +374,7 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "server-query", - "rawKb": 20.61, + "rawKb": 20.62, "gzipKb": 5.49, "treeShakable": true, "ssr": true @@ -365,6 +393,13 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ "treeShakable": true, "ssr": true }, + { + "slug": "slider", + "rawKb": 18.95, + "gzipKb": 5.25, + "treeShakable": true, + "ssr": true + }, { "slug": "switch", "rawKb": 1.46, @@ -381,29 +416,29 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "tabs", - "rawKb": 12.65, + "rawKb": 12.66, "gzipKb": 3.39, "treeShakable": true, "ssr": true }, { "slug": "timeline", - "rawKb": 18.27, + "rawKb": 18.29, "gzipKb": 4.5, "treeShakable": true, "ssr": true }, { "slug": "toast", - "rawKb": 23.28, - "gzipKb": 6.2, + "rawKb": 23.31, + "gzipKb": 6.21, "treeShakable": true, "ssr": true }, { "slug": "tooltip", "rawKb": 8.28, - "gzipKb": 2.23, + "gzipKb": 2.24, "treeShakable": true, "ssr": true }, @@ -430,8 +465,8 @@ export const componentPerformanceMetrics: ComponentPerformanceMetric[] = [ }, { "slug": "widget", - "rawKb": 16.49, - "gzipKb": 4.65, + "rawKb": 16.5, + "gzipKb": 4.66, "treeShakable": true, "ssr": true } From 425942f1fde0906771fb166d074e80420da6ac6d Mon Sep 17 00:00:00 2001 From: gajay Date: Fri, 21 Aug 2026 15:31:31 +0530 Subject: [PATCH 2/2] Default docs site to gajay.github.io/asriui with /asriui/ base path. Use GitHub project Pages as the default URL until asriui.dev is ready; custom domain still works via SITE_DOMAIN and BASE_PATH repo variables. Co-authored-by: Cursor --- .github/workflows/pages.yml | 2 +- index.html | 20 +-- package.json | 2 +- public/llms.txt | 22 ++-- public/robots.txt | 2 +- public/sitemap.xml | 202 +++++++++++++++---------------- scripts/generate-sitemap.mjs | 2 +- scripts/prepare-github-pages.mjs | 2 +- scripts/resolve-site-deploy.mjs | 8 +- site/siteMeta.ts | 2 +- site/viteBase.ts | 22 +++- vite.config.ts | 8 +- 12 files changed, 154 insertions(+), 140 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 31a074e..7876b7a 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,7 +33,7 @@ jobs: echo "Pages host: ${{ steps.pages.outputs.host }}" echo "Pages base path: ${{ steps.pages.outputs.base_path }}" else - echo "::warning::GitHub Pages metadata unavailable. Using repository defaults (asriui.dev)." + echo "::warning::GitHub Pages metadata unavailable. Using repository defaults (gajay.github.io/asriui)." echo "Enable Pages: Settings → Pages → Deploy from branch gh-pages (root folder)" fi diff --git a/index.html b/index.html index e98718f..dfb6169 100644 --- a/index.html +++ b/index.html @@ -13,17 +13,17 @@ /> - + - + - + @@ -34,7 +34,7 @@ name="twitter:description" content="Open-source React UI library with accessible components, live docs, and page templates." /> - + @@ -78,10 +78,10 @@ "@graph": [ { "@type": "Organization", - "@id": "https://asriui.dev/#organization", + "@id": "https://gajay.github.io/asriui/#organization", "name": "AsriUI", - "url": "https://asriui.dev", - "logo": "https://asriui.dev/pwa-512x512.png", + "url": "https://gajay.github.io/asriui", + "logo": "https://gajay.github.io/asriui/pwa-512x512.png", "sameAs": [ "https://github.com/GAjay", "https://www.linkedin.com/in/ajaymaheshwari24/" @@ -89,10 +89,10 @@ }, { "@type": "WebSite", - "@id": "https://asriui.dev/#website", + "@id": "https://gajay.github.io/asriui/#website", "name": "AsriUI", - "url": "https://asriui.dev", - "publisher": { "@id": "https://asriui.dev/#organization" }, + "url": "https://gajay.github.io/asriui", + "publisher": { "@id": "https://gajay.github.io/asriui/#organization" }, "inLanguage": "en-US" } ] diff --git a/package.json b/package.json index f53a90a..3068239 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "bugs": { "url": "https://github.com/GAjay/asriui/issues" }, - "homepage": "https://asriui.dev", + "homepage": "https://gajay.github.io/asriui/", "keywords": [ "react", "react-components", diff --git a/public/llms.txt b/public/llms.txt index c7761fd..6aaaf5b 100644 --- a/public/llms.txt +++ b/public/llms.txt @@ -8,22 +8,22 @@ Install with `pnpm add asriui framer-motion`, import `asriui/style.css` once, an ## Docs -- [Getting started](https://asriui.dev/docs/getting-started): Install, configure AsriUIProvider, and import your first component -- [Design tokens](https://asriui.dev/docs/tokens): CSS variables for color, spacing, radius, and typography -- [Branding guide](https://asriui.dev/docs/branding): Logo usage, tone, and visual identity for AsriUI-powered products -- [Component catalog](https://asriui.dev/docs/components/button): Live examples and API reference for every component -- [Page templates](https://asriui.dev/templates): Fifteen production page layouts you can copy into your app -- [Roadmap](https://asriui.dev/docs/roadmap): What shipped, what is in progress, and what is planned next -- [Releases](https://asriui.dev/docs/releases): Version history and changelog +- [Getting started](https://gajay.github.io/asriui/docs/getting-started): Install, configure AsriUIProvider, and import your first component +- [Design tokens](https://gajay.github.io/asriui/docs/tokens): CSS variables for color, spacing, radius, and typography +- [Branding guide](https://gajay.github.io/asriui/docs/branding): Logo usage, tone, and visual identity for AsriUI-powered products +- [Component catalog](https://gajay.github.io/asriui/docs/components/button): Live examples and API reference for every component +- [Page templates](https://gajay.github.io/asriui/templates): Fifteen production page layouts you can copy into your app +- [Roadmap](https://gajay.github.io/asriui/docs/roadmap): What shipped, what is in progress, and what is planned next +- [Releases](https://gajay.github.io/asriui/docs/releases): Version history and changelog ## Project -- [Home](https://asriui.dev/): Landing page with feature overview and design system preview +- [Home](https://gajay.github.io/asriui/): Landing page with feature overview and design system preview - [GitHub repository](https://github.com/GAjay): Source code and issues (gajay) - [npm package](https://www.npmjs.com/package/asriui): `asriui` on npm with subpath exports -- [Sitemap](https://asriui.dev/sitemap.xml): Full list of indexable pages on asriui.dev +- [Sitemap](https://gajay.github.io/asriui/sitemap.xml): Full list of indexable pages on the docs site ## Optional -- [Styling guide](https://asriui.dev/docs/styling): CSS Modules conventions and theming patterns -- [Theme configuration](https://asriui.dev/docs/theme): Light, dark, and system theme modes via AsriUIProvider +- [Styling guide](https://gajay.github.io/asriui/docs/styling): CSS Modules conventions and theming patterns +- [Theme configuration](https://gajay.github.io/asriui/docs/theme): Light, dark, and system theme modes via AsriUIProvider diff --git a/public/robots.txt b/public/robots.txt index df24f10..96fff44 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://asriui.dev/sitemap.xml +Sitemap: https://gajay.github.io/asriui/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml index 9e84c84..fbb5f35 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -1,507 +1,507 @@ - https://asriui.dev/ + https://gajay.github.io/asriui/ weekly 1.0 - https://asriui.dev/about + https://gajay.github.io/asriui/about weekly 0.8 - https://asriui.dev/llms.txt + https://gajay.github.io/asriui/llms.txt monthly 0.3 - https://asriui.dev/docs/getting-started + https://gajay.github.io/asriui/docs/getting-started weekly 0.9 - https://asriui.dev/docs/styling + https://gajay.github.io/asriui/docs/styling weekly 0.75 - https://asriui.dev/docs/theme + https://gajay.github.io/asriui/docs/theme weekly 0.75 - https://asriui.dev/docs/typography + https://gajay.github.io/asriui/docs/typography weekly 0.75 - https://asriui.dev/docs/tokens + https://gajay.github.io/asriui/docs/tokens weekly 0.75 - https://asriui.dev/docs/branding + https://gajay.github.io/asriui/docs/branding weekly 0.75 - https://asriui.dev/docs/templates + https://gajay.github.io/asriui/docs/templates weekly 0.75 - https://asriui.dev/docs/roadmap + https://gajay.github.io/asriui/docs/roadmap weekly 0.75 - https://asriui.dev/docs/releases + https://gajay.github.io/asriui/docs/releases weekly 0.75 - https://asriui.dev/docs/components/button + https://gajay.github.io/asriui/docs/components/button weekly 0.7 - https://asriui.dev/docs/components/link + https://gajay.github.io/asriui/docs/components/link weekly 0.7 - https://asriui.dev/docs/components/breadcrumb + https://gajay.github.io/asriui/docs/components/breadcrumb weekly 0.7 - https://asriui.dev/docs/components/menu + https://gajay.github.io/asriui/docs/components/menu weekly 0.7 - https://asriui.dev/docs/components/tooltip + https://gajay.github.io/asriui/docs/components/tooltip weekly 0.7 - https://asriui.dev/docs/components/dropdown + https://gajay.github.io/asriui/docs/components/dropdown weekly 0.7 - https://asriui.dev/docs/components/date-picker + https://gajay.github.io/asriui/docs/components/date-picker weekly 0.7 - https://asriui.dev/docs/components/input + https://gajay.github.io/asriui/docs/components/input weekly 0.7 - https://asriui.dev/docs/components/label + https://gajay.github.io/asriui/docs/components/label weekly 0.7 - https://asriui.dev/docs/components/switch + https://gajay.github.io/asriui/docs/components/switch weekly 0.7 - https://asriui.dev/docs/components/form + https://gajay.github.io/asriui/docs/components/form weekly 0.7 - https://asriui.dev/docs/components/page + https://gajay.github.io/asriui/docs/components/page weekly 0.7 - https://asriui.dev/docs/components/card-validation + https://gajay.github.io/asriui/docs/components/card-validation weekly 0.7 - https://asriui.dev/docs/components/card + https://gajay.github.io/asriui/docs/components/card weekly 0.7 - https://asriui.dev/docs/components/widget + https://gajay.github.io/asriui/docs/components/widget weekly 0.7 - https://asriui.dev/docs/components/metric + https://gajay.github.io/asriui/docs/components/metric weekly 0.7 - https://asriui.dev/docs/components/separator + https://gajay.github.io/asriui/docs/components/separator weekly 0.7 - https://asriui.dev/docs/components/callout + https://gajay.github.io/asriui/docs/components/callout weekly 0.7 - https://asriui.dev/docs/components/quote + https://gajay.github.io/asriui/docs/components/quote weekly 0.7 - https://asriui.dev/docs/components/text-to-speech + https://gajay.github.io/asriui/docs/components/text-to-speech weekly 0.7 - https://asriui.dev/docs/components/checkbox + https://gajay.github.io/asriui/docs/components/checkbox weekly 0.7 - https://asriui.dev/docs/components/radio + https://gajay.github.io/asriui/docs/components/radio weekly 0.7 - https://asriui.dev/docs/components/checkbox-card + https://gajay.github.io/asriui/docs/components/checkbox-card weekly 0.7 - https://asriui.dev/docs/components/radio-card + https://gajay.github.io/asriui/docs/components/radio-card weekly 0.7 - https://asriui.dev/docs/components/reset + https://gajay.github.io/asriui/docs/components/reset weekly 0.7 - https://asriui.dev/docs/components/visible + https://gajay.github.io/asriui/docs/components/visible weekly 0.7 - https://asriui.dev/docs/components/list-item + https://gajay.github.io/asriui/docs/components/list-item weekly 0.7 - https://asriui.dev/docs/components/grid + https://gajay.github.io/asriui/docs/components/grid weekly 0.7 - https://asriui.dev/docs/components/container + https://gajay.github.io/asriui/docs/components/container weekly 0.7 - https://asriui.dev/docs/components/flex + https://gajay.github.io/asriui/docs/components/flex weekly 0.7 - https://asriui.dev/docs/components/theme-switch + https://gajay.github.io/asriui/docs/components/theme-switch weekly 0.7 - https://asriui.dev/docs/components/table + https://gajay.github.io/asriui/docs/components/table weekly 0.7 - https://asriui.dev/docs/components/data-grid + https://gajay.github.io/asriui/docs/components/data-grid weekly 0.7 - https://asriui.dev/docs/components/aspect-ratio + https://gajay.github.io/asriui/docs/components/aspect-ratio weekly 0.7 - https://asriui.dev/docs/components/image + https://gajay.github.io/asriui/docs/components/image weekly 0.7 - https://asriui.dev/docs/components/scroll-area + https://gajay.github.io/asriui/docs/components/scroll-area weekly 0.7 - https://asriui.dev/docs/components/page-layout + https://gajay.github.io/asriui/docs/components/page-layout weekly 0.7 - https://asriui.dev/docs/components/hero + https://gajay.github.io/asriui/docs/components/hero weekly 0.7 - https://asriui.dev/docs/components/slider + https://gajay.github.io/asriui/docs/components/slider weekly 0.7 - https://asriui.dev/docs/components/side-nav + https://gajay.github.io/asriui/docs/components/side-nav weekly 0.7 - https://asriui.dev/docs/components/code-block + https://gajay.github.io/asriui/docs/components/code-block weekly 0.7 - https://asriui.dev/docs/components/markdown + https://gajay.github.io/asriui/docs/components/markdown weekly 0.7 - https://asriui.dev/docs/components/badge + https://gajay.github.io/asriui/docs/components/badge weekly 0.7 - https://asriui.dev/docs/components/dialog + https://gajay.github.io/asriui/docs/components/dialog weekly 0.7 - https://asriui.dev/docs/components/toast + https://gajay.github.io/asriui/docs/components/toast weekly 0.7 - https://asriui.dev/docs/components/auth + https://gajay.github.io/asriui/docs/components/auth weekly 0.7 - https://asriui.dev/docs/components/calendar + https://gajay.github.io/asriui/docs/components/calendar weekly 0.7 - https://asriui.dev/docs/components/skeleton + https://gajay.github.io/asriui/docs/components/skeleton weekly 0.7 - https://asriui.dev/docs/components/loader + https://gajay.github.io/asriui/docs/components/loader weekly 0.7 - https://asriui.dev/docs/components/timeline + https://gajay.github.io/asriui/docs/components/timeline weekly 0.7 - https://asriui.dev/docs/components/tabs + https://gajay.github.io/asriui/docs/components/tabs weekly 0.7 - https://asriui.dev/docs/components/accordion + https://gajay.github.io/asriui/docs/components/accordion weekly 0.7 - https://asriui.dev/docs/components/virtual-list + https://gajay.github.io/asriui/docs/components/virtual-list weekly 0.7 - https://asriui.dev/docs/components/error-boundary + https://gajay.github.io/asriui/docs/components/error-boundary weekly 0.7 - https://asriui.dev/docs/components/monaco-editor + https://gajay.github.io/asriui/docs/components/monaco-editor weekly 0.7 - https://asriui.dev/docs/components/flow-chart + https://gajay.github.io/asriui/docs/components/flow-chart weekly 0.7 - https://asriui.dev/docs/components/icon + https://gajay.github.io/asriui/docs/components/icon weekly 0.7 - https://asriui.dev/docs/components/typography + https://gajay.github.io/asriui/docs/components/typography weekly 0.7 - https://asriui.dev/docs/components/color-palette + https://gajay.github.io/asriui/docs/components/color-palette weekly 0.7 - https://asriui.dev/docs/components/ai-chat + https://gajay.github.io/asriui/docs/components/ai-chat weekly 0.7 - https://asriui.dev/docs/components/ai-workflow-builder + https://gajay.github.io/asriui/docs/components/ai-workflow-builder weekly 0.7 - https://asriui.dev/docs/components/ai-summarizer + https://gajay.github.io/asriui/docs/components/ai-summarizer weekly 0.7 - https://asriui.dev/docs/components/ai-data-analyst + https://gajay.github.io/asriui/docs/components/ai-data-analyst weekly 0.7 - https://asriui.dev/docs/components/ai-form-filler + https://gajay.github.io/asriui/docs/components/ai-form-filler weekly 0.7 - https://asriui.dev/docs/components/ai-search + https://gajay.github.io/asriui/docs/components/ai-search weekly 0.7 - https://asriui.dev/docs/components/ai-orchestrator + https://gajay.github.io/asriui/docs/components/ai-orchestrator weekly 0.7 - https://asriui.dev/docs/components/context-menu + https://gajay.github.io/asriui/docs/components/context-menu weekly 0.7 - https://asriui.dev/docs/components/feature-request + https://gajay.github.io/asriui/docs/components/feature-request weekly 0.7 - https://asriui.dev/docs/components/questionnaire + https://gajay.github.io/asriui/docs/components/questionnaire weekly 0.7 - https://asriui.dev/docs/components/server-query + https://gajay.github.io/asriui/docs/components/server-query weekly 0.7 - https://asriui.dev/templates + https://gajay.github.io/asriui/templates monthly 0.8 - https://asriui.dev/templates/watch-landing + https://gajay.github.io/asriui/templates/watch-landing monthly 0.65 - https://asriui.dev/templates/about + https://gajay.github.io/asriui/templates/about monthly 0.65 - https://asriui.dev/templates/contact + https://gajay.github.io/asriui/templates/contact monthly 0.65 - https://asriui.dev/templates/pricing + https://gajay.github.io/asriui/templates/pricing monthly 0.65 - https://asriui.dev/templates/dashboard + https://gajay.github.io/asriui/templates/dashboard monthly 0.65 - https://asriui.dev/templates/analytics + https://gajay.github.io/asriui/templates/analytics monthly 0.65 - https://asriui.dev/templates/billing + https://gajay.github.io/asriui/templates/billing monthly 0.65 - https://asriui.dev/templates/team + https://gajay.github.io/asriui/templates/team monthly 0.65 - https://asriui.dev/templates/login + https://gajay.github.io/asriui/templates/login monthly 0.65 - https://asriui.dev/templates/onboarding + https://gajay.github.io/asriui/templates/onboarding monthly 0.65 - https://asriui.dev/templates/shop + https://gajay.github.io/asriui/templates/shop monthly 0.65 - https://asriui.dev/templates/cart + https://gajay.github.io/asriui/templates/cart monthly 0.65 - https://asriui.dev/templates/checkout + https://gajay.github.io/asriui/templates/checkout monthly 0.65 - https://asriui.dev/templates/settings + https://gajay.github.io/asriui/templates/settings monthly 0.65 - https://asriui.dev/templates/inbox + https://gajay.github.io/asriui/templates/inbox monthly 0.65 - https://asriui.dev/templates/json-page + https://gajay.github.io/asriui/templates/json-page monthly 0.65 - https://asriui.dev/templates/ai-workflow + https://gajay.github.io/asriui/templates/ai-workflow monthly 0.65 - https://asriui.dev/templates/ai-orchestrator + https://gajay.github.io/asriui/templates/ai-orchestrator monthly 0.65 diff --git a/scripts/generate-sitemap.mjs b/scripts/generate-sitemap.mjs index 732ceb7..bddf660 100644 --- a/scripts/generate-sitemap.mjs +++ b/scripts/generate-sitemap.mjs @@ -4,7 +4,7 @@ import { resolve } from "node:path"; import { fileURLToPath } from "node:url"; const root = resolve(fileURLToPath(new URL("..", import.meta.url))); -const SITE_URL = (process.env.VITE_SITE_URL || process.env.SITE_URL || "https://asriui.dev").replace( +const SITE_URL = (process.env.VITE_SITE_URL || process.env.SITE_URL || "https://gajay.github.io/asriui").replace( /\/$/, "", ); diff --git a/scripts/prepare-github-pages.mjs b/scripts/prepare-github-pages.mjs index b0c357f..9416e1d 100644 --- a/scripts/prepare-github-pages.mjs +++ b/scripts/prepare-github-pages.mjs @@ -41,7 +41,7 @@ function resolveCustomDomain() { return ""; } -const siteUrl = (process.env.VITE_SITE_URL || process.env.SITE_URL || "https://asriui.dev").replace( +const siteUrl = (process.env.VITE_SITE_URL || process.env.SITE_URL || "https://gajay.github.io/asriui").replace( /\/$/, "", ); diff --git a/scripts/resolve-site-deploy.mjs b/scripts/resolve-site-deploy.mjs index 6514978..0a90d36 100644 --- a/scripts/resolve-site-deploy.mjs +++ b/scripts/resolve-site-deploy.mjs @@ -57,10 +57,6 @@ if (!siteUrl && pagesBaseUrl && !hasExplicitUrl) { siteUrl = pagesBaseUrl; } -if (!domain && !hasExplicitDomain && repo === "asriui") { - domain = "asriui.dev"; -} - if (domain && !siteUrl) { siteUrl = `https://${domain}`; } @@ -73,8 +69,8 @@ if (!siteUrl) { siteUrl = `https://${owner}.github.io/${repo}`; if (!hasExplicitBase) basePath = basePath || `/${repo}/`; } else { - siteUrl = "https://asriui.dev"; - if (!hasExplicitBase) basePath = basePath || "/"; + siteUrl = "https://gajay.github.io/asriui"; + if (!hasExplicitBase) basePath = basePath || "/asriui/"; } } diff --git a/site/siteMeta.ts b/site/siteMeta.ts index 34e30ce..ab10385 100644 --- a/site/siteMeta.ts +++ b/site/siteMeta.ts @@ -1,7 +1,7 @@ /** Public site URL for canonical links and Open Graph. Set VITE_SITE_URL in production. */ export const SITE_URL = (import.meta.env.VITE_SITE_URL as string | undefined)?.replace(/\/$/, "") || - (typeof window !== "undefined" ? window.location.origin : "https://asriui.dev"); + (typeof window !== "undefined" ? window.location.origin : "https://gajay.github.io/asriui"); export const SITE_NAME = "AsriUI"; diff --git a/site/viteBase.ts b/site/viteBase.ts index d2d2706..42f3c82 100644 --- a/site/viteBase.ts +++ b/site/viteBase.ts @@ -1,12 +1,28 @@ -/** Vite `base` for the docs site. `/` for a custom domain or user site; `/repo/` for project Pages. */ +/** Default GitHub project Pages URL until a custom domain is configured. */ +export const DEFAULT_GITHUB_PAGES_OWNER = "GAjay"; +export const DEFAULT_GITHUB_PAGES_REPO = "asriui"; +export const DEFAULT_PROJECT_SITE_URL = `https://${DEFAULT_GITHUB_PAGES_OWNER}.github.io/${DEFAULT_GITHUB_PAGES_REPO}`; +export const DEFAULT_PROJECT_BASE_PATH = `/${DEFAULT_GITHUB_PAGES_REPO}/`; + +/** Custom domain — enable via SITE_DOMAIN when DNS is ready. */ +export const DEFAULT_CUSTOM_DOMAIN = "asriui.dev"; + +/** Build-time template in index.html; replaced with the resolved public site URL. */ +export const SITE_ORIGIN_TEMPLATE = DEFAULT_PROJECT_SITE_URL; + +/** Vite `base` for the docs site. `/repo/` for project Pages; `/` for a custom domain or user site. */ export function normalizeViteBase(value?: string): string { - const raw = value ?? process.env.VITE_BASE_PATH ?? process.env.BASE_PATH ?? "/"; + const raw = + value ?? + process.env.VITE_BASE_PATH ?? + process.env.BASE_PATH ?? + DEFAULT_PROJECT_BASE_PATH; if (!raw || raw === "/") return "/"; return `/${raw.replace(/^\/+|\/+$/g, "")}/`; } /** Public origin + optional path, no trailing slash. Used for canonical URLs and the sitemap. */ -export function resolveSiteOrigin(fallback = "https://asriui.dev"): string { +export function resolveSiteOrigin(fallback = DEFAULT_PROJECT_SITE_URL): string { const raw = process.env.VITE_SITE_URL || process.env.SITE_URL || fallback; return raw.replace(/\/$/, ""); } diff --git a/vite.config.ts b/vite.config.ts index 046106c..9a0b32a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,7 @@ import dts from "vite-plugin-dts"; import { VitePWA } from "vite-plugin-pwa"; import { resolve } from "node:path"; import { createPwaOptions } from "./site/pwa.config"; -import { normalizeViteBase, resolveSiteOrigin } from "./site/viteBase"; +import { normalizeViteBase, resolveSiteOrigin, SITE_ORIGIN_TEMPLATE } from "./site/viteBase"; const root = resolve(__dirname, "src"); @@ -101,7 +101,9 @@ export default defineConfig(({ mode, command }) => { const isSiteBuild = mode === "site"; /** Docs site dev server (`pnpm dev`) — needs PWA virtual module for site/main.tsx */ const isSiteApp = isSiteBuild || (command === "serve" && !isPackageBuild); - const siteBase = normalizeViteBase(); + const siteBase = isSiteBuild + ? normalizeViteBase(process.env.VITE_BASE_PATH || process.env.BASE_PATH) + : normalizeViteBase("/"); const siteUrl = resolveSiteOrigin(); if (isPackageBuild) { @@ -186,7 +188,7 @@ export default defineConfig(({ mode, command }) => { { name: "asriui-site-origin", transformIndexHtml(html) { - let next = html.split("https://asriui.dev").join(siteUrl); + let next = html.split(SITE_ORIGIN_TEMPLATE).join(siteUrl); if (siteBase !== "/") { const prefix = siteBase.replace(/\/$/, ""); const skipPrefix = prefix.slice(1).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");