ardo 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sebastian Software GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # ardo
2
+
3
+ React-first Static Documentation Framework built on TanStack Start.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add ardo @tanstack/react-start @tanstack/react-router react react-dom
9
+ pnpm add -D typescript vite tailwindcss
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ### Configuration
15
+
16
+ Create a `press.config.ts` in your project root:
17
+
18
+ ```typescript
19
+ import { defineConfig } from 'ardo/config'
20
+
21
+ export default defineConfig({
22
+ title: 'My Documentation',
23
+ description: 'Built with Ardo',
24
+
25
+ themeConfig: {
26
+ nav: [{ text: 'Guide', link: '/guide/getting-started' }],
27
+ sidebar: [
28
+ {
29
+ text: 'Guide',
30
+ items: [{ text: 'Getting Started', link: '/guide/getting-started' }],
31
+ },
32
+ ],
33
+ },
34
+ })
35
+ ```
36
+
37
+ ### Vite Plugin
38
+
39
+ Add the plugin to your `vite.config.ts`:
40
+
41
+ ```typescript
42
+ import { defineConfig } from 'vite'
43
+ import { tanstackStart } from '@tanstack/react-start/plugin/vite'
44
+ import react from '@vitejs/plugin-react'
45
+ import { ardoPlugin } from 'ardo/vite'
46
+
47
+ export default defineConfig({
48
+ plugins: [
49
+ tanstackStart({
50
+ prerender: {
51
+ enabled: true,
52
+ crawlLinks: true,
53
+ },
54
+ }),
55
+ react(),
56
+ ardoPlugin(),
57
+ ],
58
+ })
59
+ ```
60
+
61
+ ### Runtime Hooks
62
+
63
+ Access configuration and page data in your components:
64
+
65
+ ```tsx
66
+ import { useConfig, useSidebar, usePageData, useTOC } from 'ardo/runtime'
67
+
68
+ function MyComponent() {
69
+ const config = useConfig()
70
+ const sidebar = useSidebar()
71
+ const page = usePageData()
72
+ const toc = useTOC()
73
+
74
+ return <h1>{config.title}</h1>
75
+ }
76
+ ```
77
+
78
+ ### Theme Components
79
+
80
+ Use pre-built components for your documentation:
81
+
82
+ ```tsx
83
+ import { DocPage, Layout, Header, Sidebar, TOC } from 'ardo/theme'
84
+
85
+ function App() {
86
+ return (
87
+ <DocPage>
88
+ <YourContent />
89
+ </DocPage>
90
+ )
91
+ }
92
+ ```
93
+
94
+ ## Exports
95
+
96
+ | Export | Description |
97
+ | ----------------------- | ---------------------------------------- |
98
+ | `ardo/config` | Configuration utilities (`defineConfig`) |
99
+ | `ardo/vite` | Vite plugin (`ardoPlugin`) |
100
+ | `ardo/runtime` | React hooks and providers |
101
+ | `ardo/theme` | Pre-built UI components |
102
+ | `ardo/theme/styles.css` | Default theme styles |
103
+
104
+ ## Documentation
105
+
106
+ Full documentation available at [sebastian-software.github.io/ardo](https://sebastian-software.github.io/ardo/)
107
+
108
+ ## License
109
+
110
+ [MIT](../../LICENSE) © [Sebastian Software GmbH](https://sebastian-software.de)