diff --git a/docs-site/static/android-chrome-192x192.png b/docs-site/static/android-chrome-192x192.png new file mode 100644 index 00000000..282ad55d Binary files /dev/null and b/docs-site/static/android-chrome-192x192.png differ diff --git a/docs-site/static/android-chrome-512x512.png b/docs-site/static/android-chrome-512x512.png new file mode 100644 index 00000000..c33e6e04 Binary files /dev/null and b/docs-site/static/android-chrome-512x512.png differ diff --git a/docs-site/static/apple-touch-icon.png b/docs-site/static/apple-touch-icon.png new file mode 100644 index 00000000..a19e2c61 Binary files /dev/null and b/docs-site/static/apple-touch-icon.png differ diff --git a/docs-site/static/favicon-16x16.png b/docs-site/static/favicon-16x16.png new file mode 100644 index 00000000..b37bd7f0 Binary files /dev/null and b/docs-site/static/favicon-16x16.png differ diff --git a/docs-site/static/favicon-32x32.png b/docs-site/static/favicon-32x32.png new file mode 100644 index 00000000..73cf41bd Binary files /dev/null and b/docs-site/static/favicon-32x32.png differ diff --git a/docs-site/static/favicon.ico b/docs-site/static/favicon.ico new file mode 100644 index 00000000..c275e45c Binary files /dev/null and b/docs-site/static/favicon.ico differ diff --git a/docs-site/static/favicon.svg b/docs-site/static/favicon.svg new file mode 100644 index 00000000..9d724177 --- /dev/null +++ b/docs-site/static/favicon.svg @@ -0,0 +1 @@ + diff --git a/docs-site/static/site.webmanifest b/docs-site/static/site.webmanifest new file mode 100644 index 00000000..dfe00911 --- /dev/null +++ b/docs-site/static/site.webmanifest @@ -0,0 +1,20 @@ +{ + "name": "kagent docs", + "short_name": "kagent", + "start_url": "/docs/", + "icons": [ + { + "src": "android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#942DE7", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/next.config.mjs b/next.config.mjs index 7cf5c7ed..2505a91f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -11,6 +11,16 @@ const nextConfig = { pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'], async redirects() { return [ + // Short install URL for the kagent CLI: + // curl -sL https://kagent.dev/install | bash + // Temporary (307) so clients never cache it and the target can move. + // `curl -L` follows it; the script itself picks the release to install. + { + source: '/install', + destination: + 'https://raw.githubusercontent.com/kagent-dev/kagent/refs/heads/main/scripts/get-kagent', + permanent: false, + }, // Order matters: Next applies the first matching redirect. These two name // a page that also moved section, so the catch-all below would send them // to a 0.x path that does not exist (there is no 0.x/getting-started/ diff --git a/src/app/page.tsx b/src/app/page.tsx index 2c2aeacb..59f48531 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -184,7 +184,7 @@ const HowItWorks = () => { Quick Start — tabbed terminal install block ============================================================ */ const INSTALL_TABS = [ - { label: 'One-liner', cmd: 'curl https://raw.githubusercontent.com/kagent-dev/kagent/refs/heads/main/scripts/get-kagent | bash' }, + { label: 'One-liner', cmd: 'curl -sL https://kagent.dev/install | bash && kagent install' }, { label: 'Brew', cmd: 'brew install kagent' }, ];