Skip to content

Commit fd717c6

Browse files
authored
fix(website): replace redirect page with config-level redirects (#1)
* fix(website): replace redirect page with config-level redirects - Remove intermediary redirect page at /docs/index.astro that was showing a flash before redirecting - Add proper config-level redirects in astro.config.mjs for: - /docs -> /docs/user-guide/getting-started - /docs/user-guide -> /docs/user-guide/getting-started - /docs/user-guide/commands -> /docs/user-guide/commands/overview - /docs/user-guide/runtimes -> /docs/user-guide/runtimes/overview - Update all internal links to point directly to target pages - Remove redundant "View Docs" buttons from homepage and features page * docs: add basic README --------- Co-authored-by: Calvin A. Allen <calvin@dtvem.io>
1 parent 18d3eb8 commit fd717c6

10 files changed

Lines changed: 49 additions & 17 deletions

File tree

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
11
# dtvem.io
2+
3+
The website for [dtvem](https://github.com/dtvem/dtvem), a cross-platform runtime version manager.
4+
5+
## Tech Stack
6+
7+
- [Astro](https://astro.build/) - Static site generator
8+
- [Tailwind CSS](https://tailwindcss.com/) - Styling
9+
- [Cloudflare Workers](https://workers.cloudflare.com/) - Hosting
10+
11+
## Development
12+
13+
```bash
14+
cd website
15+
npm install
16+
npm run dev
17+
```
18+
19+
## Build
20+
21+
```bash
22+
npm run build
23+
```
24+
25+
## Project Structure
26+
27+
```
28+
website/
29+
├── src/
30+
│ ├── components/ # Reusable Astro components
31+
│ ├── content/docs/ # Documentation markdown files
32+
│ ├── layouts/ # Page layouts
33+
│ └── pages/ # Site pages
34+
├── public/ # Static assets
35+
└── astro.config.mjs # Astro configuration
36+
```

website/astro.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ import tailwind from '@astrojs/tailwind';
55

66
export default defineConfig({
77
site: 'https://dtvem.io',
8+
redirects: {
9+
'/docs': '/docs/user-guide/getting-started',
10+
'/docs/user-guide': '/docs/user-guide/getting-started',
11+
'/docs/user-guide/commands': '/docs/user-guide/commands/overview',
12+
'/docs/user-guide/runtimes': '/docs/user-guide/runtimes/overview',
13+
},
814
integrations: [
915
mdx(),
1016
sitemap(),

website/src/content/docs/user-guide/commands/help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ Examples:
8989

9090
## See Also
9191

92-
- [Commands Reference](/docs/user-guide/commands) — Full command documentation
92+
- [Commands Reference](/docs/user-guide/commands/overview) — Full command documentation
9393
- [version](/docs/user-guide/commands/version) — Show dtvem version

website/src/content/docs/user-guide/concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ myproject/
143143

144144
## Next Steps
145145

146-
- [Commands Reference](/docs/user-guide/commands) — Full documentation of all commands
146+
- [Commands Reference](/docs/user-guide/commands/overview) — Full documentation of all commands
147147
- [Configuration](/docs/user-guide/configuration) — Environment variables and config files
148-
- [Supported Runtimes](/docs/user-guide/runtimes) — Details on Python, Node.js, and Ruby support
148+
- [Supported Runtimes](/docs/user-guide/runtimes/overview) — Details on Python, Node.js, and Ruby support

website/src/content/docs/user-guide/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ Add `%USERPROFILE%\.dtvem\shims` to your system PATH via System Properties → E
270270
## Next Steps
271271

272272
- [Migration](/docs/user-guide/migration) — Migrate from other version managers
273-
- [Supported Runtimes](/docs/user-guide/runtimes) — Details on Python, Node.js, and Ruby
273+
- [Supported Runtimes](/docs/user-guide/runtimes/overview) — Details on Python, Node.js, and Ruby

website/src/content/docs/user-guide/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,5 +306,5 @@ export PATH="$HOME/.dtvem/shims:$PATH"
306306

307307
## Next Steps
308308

309-
- [Commands Reference](/docs/user-guide/commands) — Full command documentation
309+
- [Commands Reference](/docs/user-guide/commands/overview) — Full command documentation
310310
- [Configuration](/docs/user-guide/configuration) — Configure dtvem for your workflow

website/src/layouts/DocLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const parentName = currentDoc?.data.parent as string | undefined;
4444
<section class="border-b border-slate-800 py-8" style="background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(45, 212, 191, 0.25), transparent 70%);">
4545
<div class="container">
4646
<div class="flex items-center gap-2 text-sm text-slate-400">
47-
<a href="/docs" class="hover:text-primary-400">Docs</a>
47+
<a href="/docs/user-guide/getting-started" class="hover:text-primary-400">Docs</a>
4848
<span>/</span>
4949
{parentName ? (
5050
<>

website/src/pages/docs/index.astro

Lines changed: 0 additions & 3 deletions
This file was deleted.

website/src/pages/features.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,7 @@ const runtimes = [
332332
<a href="/docs/user-guide/getting-started" class="btn-primary">
333333
Get Started
334334
</a>
335-
<a href="/docs" class="btn-secondary">
336-
Read the Docs
337-
</a>
338-
</div>
335+
</div>
339336
</div>
340337
</section>
341338

website/src/pages/index.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ const runtimes = [
6363
<a href="/docs/user-guide/getting-started" class="btn-primary">
6464
Get Started
6565
</a>
66-
<a href="/docs" class="btn-secondary">
67-
View Docs
68-
</a>
69-
</div>
66+
</div>
7067
</div>
7168
</section>
7269

0 commit comments

Comments
 (0)