Skip to content

Commit

Permalink
docs(navigation): update relative links in documentation pages (#3)
Browse files Browse the repository at this point in the history
* docs(navigation): update relative links in documentation pages

Update internal navigation links to use relative paths across edge worker documentation pages
and index file

* chore(types): Add Astro type references to env declaration

Add eslint-disable comments for TypeScript-eslint triple-slash references

* chore(eslint): add ignore configuration for Astro files

Extends ESLint configuration to exclude Astro files from linting

* docs(navigation): update internal links in edge worker documentation

Update relative links to absolute paths across edge worker documentation pages, ensuring
consistent and correct navigation between sections

I'm not sure it was working with the original relative paths on vercel but is not working
with the same paths on cloudflare pages.
  • Loading branch information
jumski authored Jan 21, 2025
1 parent 0badf5e commit 2fd6e6b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ module.exports = [
// Override or add rules here
rules: {},
},
{ ignores: ['**/.astro'] },
];
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Configuration
prev:
label: Prepare environment
link: prepare-environment
link: /edge-worker/prepare-environment
---

import { Aside, Steps } from "@astrojs/starlight/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Create your first worker
next:
label: Configuration
link: configuration
link: /edge-worker/configuration
---

import { Aside, Steps } from "@astrojs/starlight/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: How it works?
next:
label: Prepare environment
link: prepare-environment
link: /edge-worker/prepare-environment
---

import { Aside } from "@astrojs/starlight/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: Prepare environment
prev:
label: How it works?
link: how-it-works
link: /edge-worker/how-it-works
next:
link: create-first-worker
link: /edge-worker/create-first-worker
---

import { Aside, Steps } from "@astrojs/starlight/components";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/pgflow.dev/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ hero:
link: 'pgflow'
variant: minimal
next:
link: 'edge-worker/prepare-environment'
link: /edge-worker/prepare-environment
label: 'Get started'
---
2 changes: 2 additions & 0 deletions pkgs/pgflow.dev/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../.astro/types.d.ts" />
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="astro/client" />

0 comments on commit 2fd6e6b

Please sign in to comment.