Commit 57c497f
feat(website): Phase 2 — Polish & Complete documentation site (#114)
* feat(website): Phase 2 — Polish & Complete documentation site
Issue #99 — Theme customization and logo design:
- Replace placeholder logo.svg with proper astrological wheel SVG (12
division marks, dual rings, crosshair axes, planet dots, currentColor)
- Apply indigo accent palette to custom.css (light + dark mode variants)
- Wire customCss into astro.config.mjs so theme is applied site-wide
- Improve .chart-demo container styling (rounded corners, shadow, padding)
Issue #100 — Enrich remaining documentation pages:
- custom-settings.md: full settings table grouped by category, 5+ examples
- custom-symbols.md: complete CUSTOM_SYMBOL_FN docs with 3 examples
- click-events.md: ADD_CLICK_AREA flag, on() API, full event handler example
- multiple-charts.md: unique IDs, 4 multi-chart examples, independent state
- api/settings.md: comprehensive reference for all ~100 settings from source
- guides/frameworks/vue.md: Vue 3 Composition API, Vue 2, Nuxt SSR examples
- guides/frameworks/angular.md: ViewChild, ngOnDestroy, NgZone, SSR guard
- changelog.md: real version history (v3.0.0–v3.0.2) in Keep a Changelog format
- contributing.md: website dev, code style table, PR branch conventions
Issue #98 — Gallery page and advanced demo features:
- Add 'aspects' mode to ChartDemo.astro (renders chart.radix().aspects())
- Create gallery.mdx with 4 live demos: radix, transit, aspects, animate
- Add 'Examples' sidebar group in astro.config.mjs between Guides and API
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca <git@eca.dev>
* fix(website): animation error and gallery code snippet readability
Fix animation demo crashing with "Data is not set":
- Transit.animate() requires (data, duration, isReverse, callback) — was
called with no arguments, causing validate() to throw on undefined data
- Add animateTargetData to demoData.ts (planets shifted ~30–90° from the
initial transit so movement is clearly visible)
- Pass animateTargetData via define:vars to the inline script
- Button now toggles forward/back between transitData and animateTargetData
- Duration passed as 2 (seconds, the library multiplies by 1000 internally)
Fix gallery/guide code snippet hard to read in dark mode:
- Replace light #f5f5f5 pre background with dark #1e1e2e (Catppuccin Mocha)
- Set explicit code color #cdd6f4 (light lavender) for contrast on both
light and dark mode
- Add a subtle border so the block has definition on any background
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca <git@eca.dev>
* fix(website): address Copilot review — factual errors and broken examples
- changelog: replace '— Current' header with real release dates (3.0.2:
2023-08-17, 3.0.1: 2023-07-20, 3.0.0: 2023-07-10)
- changelog: remove false claim that AstroData/AspectData/Dignity are
exported from the package entry point (only Chart, AspectCalculator,
and Settings are)
- changelog: add real 3.0.2 fix: SNode and Fortune symbol positions
- changelog: correct ADD_CLICK_AREA entry — remove mention of the
non-existent radix.on() event API
- click-events: rewrite guide to use real DOM addEventListener pattern
with predictable element IDs ({chartId}-radix-planets-{Name} /
{chartId}-radix-cusps-{index}) instead of fictional radix.on() API
- custom.css: rename .chart-demo selectors to .chart-demo-wrapper to
match the class actually used by ChartDemo.astro (dead CSS fix)
- vue.md: replace broken `import type { AstroData }` (not exported) with
derived type: Parameters<InstanceType<typeof Chart>['radix']>[0]
- ChartDemo.astro: fix package name in all 4 code snippets
('astrochart' → '@astrodraw/astrochart')
- ChartDemo.astro: fix animate snippet — replace no-arg transit.animate()
call with a valid call showing all required parameters
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca <git@eca.dev>
* fix(website): address remaining Copilot review comments (8, 9, 10)
- angular.md: remove OnChanges/SimpleChanges from Basic Component
import — they are unused in that snippet and belong only in the
follow-up Re-rendering section where they are explicitly introduced
- ChartDemo.astro: fix animation toggle passing isReverse: false on
every click — change hardcoded false to !isForward so the second
click correctly reverses the animation
- vue.md: replace hardcoded container IDs (astrochart-root,
astrochart-instance) with per-instance unique IDs generated via
Math.random() in all three examples (Vue 3 Composition API, Vue 3
with Settings Prop, Vue 2 Options API), matching the pattern already
used in the Angular example
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca <git@eca.dev>
---------
Co-authored-by: eca <git@eca.dev>1 parent d661b4b commit 57c497f
15 files changed
Lines changed: 1444 additions & 153 deletions
File tree
- website
- public/img
- src
- components
- content/docs
- api
- guides
- frameworks
- data
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | | - | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
| 112 | + | |
100 | 113 | | |
101 | 114 | | |
102 | 115 | | |
103 | 116 | | |
104 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
105 | 121 | | |
106 | 122 | | |
107 | 123 | | |
| |||
183 | 199 | | |
184 | 200 | | |
185 | 201 | | |
186 | | - | |
| 202 | + | |
187 | 203 | | |
188 | 204 | | |
189 | 205 | | |
190 | 206 | | |
191 | 207 | | |
192 | 208 | | |
| 209 | + | |
193 | 210 | | |
194 | 211 | | |
195 | 212 | | |
196 | 213 | | |
| 214 | + | |
197 | 215 | | |
198 | 216 | | |
0 commit comments