Skip to content

Commit b6f935b

Browse files
committed
docs: design update
1 parent 3392a70 commit b6f935b

File tree

9 files changed

+481
-78
lines changed

9 files changed

+481
-78
lines changed

package-lock.json

Lines changed: 407 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/docs/astro.config.mjs

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,41 @@
11
import starlight from '@astrojs/starlight';
22
import { defineConfig } from 'astro/config';
33

4+
import tailwind from "@astrojs/tailwind";
5+
46
// https://astro.build/config
57
export default defineConfig({
6-
base: '/ax/',
7-
integrations: [
8-
starlight({
9-
customCss: ["./src/styles/custom.css", "@fontsource/roboto"],
10-
11-
title: 'Ax',
12-
social: {
13-
github: 'https://github.com/ax-llm/ax',
14-
twitter: 'https://twitter.com/dosco',
15-
discord: 'https://discord.gg/DSHg3dU7dW',
16-
},
17-
sidebar: [
18-
{
19-
label: 'Start Here',
20-
items: [
21-
{ label: 'Quick Start', link: '/start/quick/' },
22-
{ label: 'Supported LLMs', link: '/start/llms' },
23-
{ label: 'About Ax', link: '/start/about' },
24-
],
25-
},
26-
{
27-
label: 'Guides',
28-
autogenerate: { directory: 'guides' },
29-
},
30-
{
31-
label: 'API Docs',
32-
autogenerate: { directory: 'apidocs' },
33-
},
34-
],
35-
}),
36-
],
37-
});
8+
base: '/ax/',
9+
integrations: [starlight({
10+
customCss: ["./src/styles/custom.css", "@fontsource/roboto"],
11+
title: 'Ax',
12+
social: {
13+
github: 'https://github.com/ax-llm/ax',
14+
twitter: 'https://twitter.com/dosco',
15+
discord: 'https://discord.gg/DSHg3dU7dW'
16+
},
17+
sidebar: [{
18+
label: 'Start Here',
19+
items: [{
20+
label: 'Quick Start',
21+
link: '/start/quick/'
22+
}, {
23+
label: 'Supported LLMs',
24+
link: '/start/llms'
25+
}, {
26+
label: 'About Ax',
27+
link: '/start/about'
28+
}]
29+
}, {
30+
label: 'Guides',
31+
autogenerate: {
32+
directory: 'guides'
33+
}
34+
}, {
35+
label: 'API Docs',
36+
autogenerate: {
37+
directory: 'apidocs'
38+
}
39+
}]
40+
}), tailwind()]
41+
});

src/docs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
"dependencies": {
1212
"@astrojs/check": "^0.7.0",
1313
"@astrojs/starlight": "^0.24.5",
14+
"@astrojs/tailwind": "^5.1.0",
1415
"@fontsource/roboto": "^5.0.13",
1516
"astro": "^4.10.2",
16-
"sharp": "^0.32.5"
17+
"sharp": "^0.32.5",
18+
"tailwindcss": "^3.4.4"
1719
},
1820
"private": "true"
1921
}

src/docs/public/mattress.png

1.7 MB
Loading

src/docs/public/mattress1.png

1.73 MB
Loading

src/docs/public/mattress2.png

6.84 MB
Loading

src/docs/src/content/docs/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ hero:
1515
link: https://github.com/ax-llm/ax
1616
icon: external
1717
---
18+

src/docs/src/pages/index.astro

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
// import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
3+
import { Icon } from '@astrojs/starlight/components';
4+
5+
---
6+
7+
<div class="bg-black h-screen bg-[url('mattress2.png')] bg-cover">
8+
<div class="space-y-5 relative top-[200px] w-full lg:w-7/12 p-0 lg:p-4">
9+
<div class="border-t border-b p-4 font-bold text-white text-9xl lg:text-8xl">
10+
Ax, An AI framework for those building the future
11+
</div>
12+
<div class="flex flex-col lg:flex-row items-start lg:items-center gap-6 font-mono text-8xl lg:text-2xl p-4">
13+
<a href="start/quick/" class="flex items-center justify-between gap-3 py-3 px-4 rounded-full bg-amber-500 hover:bg-amber-400 text-white">
14+
Quick Start <Icon name="right-caret"/>
15+
</a>
16+
<a href="https://github.com/ax-llm/ax" class="flex items-center justify-between gap-3 py-3 px-4 rounded-full border bg-white/80 hover:bg-white text-black">
17+
<div class="flex items-center gap-2"><Icon name="github" />Code</div>
18+
<Icon name="right-caret"/>
19+
</a>
20+
<!-- <a href="https://github.com/ax-llm/ax" class="gap-2 text-4xl py-2 px-4 rounded-full bg-white text-white w-[300px]">
21+
<Icon name="github" size="3rem" />
22+
</a> -->
23+
</div>
24+
</div>
25+
26+
</div>

src/docs/tailwind.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
}

0 commit comments

Comments
 (0)