Skip to content

Commit 1d431d2

Browse files
committed
move astro example to plugin folder
1 parent f9676dc commit 1d431d2

File tree

31 files changed

+4
-10
lines changed

31 files changed

+4
-10
lines changed

examples/astro/previews/.wp-env.json renamed to plugins/hwp-previews/examples/hwp-preview-astro/.wp-env.json

File renamed without changes.

examples/astro/previews/README.md renamed to plugins/hwp-previews/examples/hwp-preview-astro/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
2-
title: "Astro Headless WordPress Previews"
2+
title: "Headless WordPress Previews with Astro"
33
description: "In this example, we show how to implement **Headless WordPress Previews in Astro** using the **`hwp-previews`** plugin and WPGraphQL. This setup allows content creators to preview draft posts directly in the Astro frontend from the WordPress admin panel. We use **URQL** for all routing and fetching page content."
44
---
55

6-
# Astro Headless WordPress Previews Example
6+
# Example: Headless WordPress Previews with Astro
77

88
In this example, we show how to implement **Headless WordPress Previews in Astro** using the **`hwp-previews`** plugin and WPGraphQL. This setup allows content creators to preview draft posts directly in the Astro frontend from the WordPress admin panel. We use **URQL** for all routing and fetching page content.
99

1010
## Getting Started
1111

12-
> [!IMPORTANT]
13-
> **Docker Desktop** needs to be installed to run WordPress locally.
12+
> [!IMPORTANT] > **Docker Desktop** needs to be installed to run WordPress locally.
1413
1514
1. Run `npm run example:setup` to install dependencies and configure the local WP server.
1615
2. Run `npm run example:start` to start the WP server and Astro development server.
@@ -27,4 +26,4 @@ In this example, we show how to implement **Headless WordPress Previews in Astro
2726

2827
## Trouble Shooting
2928

30-
To reset the WP server and re-run setup you can run `npm run example:prune` and confirm "Yes" at any prompts.
29+
To reset the WP server and re-run setup you can run `npm run example:prune` and confirm "Yes" at any prompts.

examples/astro/previews/example-app/.gitignore renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/.gitignore

File renamed without changes.

examples/astro/previews/example-app/README.md renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/README.md

File renamed without changes.

examples/astro/previews/example-app/astro.config.mjs renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/astro.config.mjs

File renamed without changes.

examples/astro/previews/example-app/package.json renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/package.json

File renamed without changes.

examples/astro/previews/example-app/public/favicon.svg renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/public/favicon.svg

File renamed without changes.

examples/astro/previews/example-app/src/assets/astro.svg renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/src/assets/astro.svg

File renamed without changes.

examples/astro/previews/example-app/src/assets/background.svg renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/src/assets/background.svg

File renamed without changes.

examples/astro/previews/example-app/src/components/Nav.astro renamed to plugins/hwp-previews/examples/hwp-preview-astro/example-app/src/components/Nav.astro

File renamed without changes.

0 commit comments

Comments
 (0)