Skip to content

Commit d4039a8

Browse files
committed
prepare example readmes
1 parent 1a1f5c5 commit d4039a8

File tree

16 files changed

+18
-57
lines changed

16 files changed

+18
-57
lines changed

docs/explanation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "High-level conceptual guides that provide background information a
55

66
I see you found the root of the Explanatory guides! Explanatory guides are a place where we step away from code and talk high-level concepts and import background information. If you are looking to grow your understanding of Headless WordPress with the toolkit, you are in the right place.
77

8-
> [!note] Learn More
8+
> [!NOTE] Learn More
99
> For more info on how we layout our documentation and the the role played by Explanatory Guides, please read about the [_Diátaxis_](https://diataxis.fr/explanation/) approach we use.
1010
1111
## Contributing

docs/how-to/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Step-by-step guides for implementing specific features and achievi
55

66
I see you found the root of the How-to guides! How-to guides are a place where we walk you through implementing specific features of the Headless WordPress Toolkit. If you are looking to achieve a specific goal with the toolkit, you are in the right place.
77

8-
> [!note] Learn More
8+
> [!NOTE] Learn More
99
> For more info on how we layout our documentation and the the role played by How-to guides, please read about the [_Diátaxis_](https://diataxis.fr/how-to-guides/) approach we use.
1010
1111
## Contributing

examples/angular/template-hierarchy-data-fetching/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: "In this example we show how to implement the **WordPress Template
77

88
In this example we show how to implement the **WordPress Template Hierarchy in Angular** for use with a Headless WordPress backend using WPGraphQL.
99

10-
## Getting Started 🚀
10+
## Getting Started
1111

1212
> [!IMPORTANT]
1313
> **Docker Desktop** needs to be installed to run WordPress locally.
@@ -24,7 +24,7 @@ In this example we show how to implement the **WordPress Template Hierarchy in A
2424
> [!NOTE]
2525
> When you kill the long running process this will not shutdown the local WP instance, only Angular. You must run `npm run example:stop` to kill the local WP server.
2626
27-
## Trouble Shooting 🛠️
27+
## Trouble Shooting
2828
2929
1. I get "Page Not Found. Sorry, the page you are looking for does not exist. Please check the URL." when opening the Angular app and trying to navigate through it.
3030
- Run `npm run backend:start` and verify that **http://localhost:3000/api/templates** returns correct data.

examples/astro/previews/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Astro Headless WordPress Previews Example"
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+
# Astro Headless WordPress Previews Example
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

@@ -25,6 +25,6 @@ In this example, we show how to implement **Headless WordPress Previews in Astro
2525
3. Edit any draft post.
2626
4. In the editor, click the **"Preview"** button. The post should open in the Astro frontend, displaying the draft content.
2727

28-
## Trouble Shooting 🛠️
28+
## Trouble Shooting
2929

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

examples/next/apollo-client-data-fetch/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Example: Fetching data from WordPress with Apollo Client in Next.js"
2+
title: "Fetching data from WordPress with Apollo Client in Next.js"
33
description: "This example demonstrates various approaches to integrate WordPress as a headless CMS with a Next.js frontend using Apollo Client. It showcases different data fetching strategies, state management techniques, and modern web development patterns in a real-world application context."
44
---
55

examples/next/client-app-router-fetch-data/README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
---
2-
title: "Example: Next.js App Router using the Fetch API"
2+
title: "Next.js App Router using the Fetch API"
33
description: "An example headless WordPress application using Next.js App Router and the fetch API to fetch data from WordPress using WPGraphQL It showcases different data fetching strategies, state management techniques, and modern web development patterns in a real-world application context. This also contains a full example using wp-env and sample data."
44
---
55

66
# Example: Next.js App Router using the Fetch API
77

8-
# Table of Contents
9-
10-
- [Overview](#overview)
11-
- [Prerequisites](#prerequisites)
12-
- [Project Structure](#project-structure)
13-
- [Features](#features)
14-
- [Screenshots](#screenshots)
15-
16-
- [Running the Example with wp-env](#running-the-example-with-wp-env)
17-
- [Prerequisites](#prerequisites-1)
18-
- [Setup Repository and Packages](#setup-repository-and-packages)
19-
- [Build and Start the Application](#build-and-start-the-application)
20-
- [Command Reference](#command-reference)
21-
- [Database Access](#database-access)
22-
23-
# Overview
24-
258
An example headless WordPress application using Next.js App Router and the fetch API to fetch data from WordPress using WPGraphQL It showcases different data fetching strategies, state management techniques, and modern web development patterns in a real-world application context. This also contains a full example using wp-env and sample data.
269

2710
## Prerequisites

examples/next/client-multisite-app-router-fetch-data/README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
---
2-
title: "Example: Multisite Next.js App Router using the Fetch API"
2+
title: "Multisite Next.js App Router using the Fetch API"
33
description: "An example mulitsite headless WordPress application using Next.js App Router and the fetch API to fetch data from WordPress using WPGraphQL. It showcases different data fetching strategies, state management techniques, and modern web development patterns in a real-world application context. This also contains a full example using wp-env and sample data."
44
---
55

66
# Example: Multisite Next.js App Router using the Fetch API
77

8-
# Table of Contents
9-
- [Overview](#overview)
10-
- [Prerequisites](#prerequisites)
11-
- [Project Structure](#project-structure)
12-
- [Features](#features)
13-
- [Screenshots](#screenshots)
14-
- [Running the Example with wp-env](#running-the-example-with-wp-env)
15-
- [Prerequisites](#prerequisites-1)
16-
- [Setup Repository and Packages](#setup-repository-and-packages)
17-
- [Build and Start the Application](#build-and-start-the-application)
18-
- [Command Reference](#command-reference)
19-
- [Database Access](#database-access)
20-
- [Adding More Sites to the Multisite Examples](#adding-more-sites-to-the-multisite-examples)
21-
22-
23-
# Overview
24-
258
An example mulitsite headless WordPress application using Next.js App Router and the fetch API to fetch data from WordPress using WPGraphQL. It showcases different data fetching strategies, state management techniques, and modern web development patterns in a real-world application context. This also contains a full example using wp-env and sample data.
269

2710
## Prerequisites

examples/next/custom-sitemap-apollo/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
2-
title: "Example: Create a custom WordPress sitemap with WPGraphQL and Apollo Client"
2+
title: "Create a custom WordPress sitemap with WPGraphQL and Apollo Client"
33
description: "This example demonstrates how to generate a custom sitemap in a headless WordPress application using the Next.js framework. The example app fetches data from WordPress using Apollo Client and WPGraphQL. Since WPGraphQL doesn't support sitemaps natively, we are extending it with a custom plugin, which is included in this example as well. This plugin exposes new fields to fetch the sitemap index, with data identical to what's rendered on the native WordPress sitemap. Another field exposed by this plugin allows you to request sitemap subpages by specifying the types and pages. The plugin also adds featured image data, enabling you to create [Image Sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps)."
44
---
55

66
# Example: Create a custom WordPress sitemap with WPGraphQL and Apollo Client
77

8-
## Overview
9-
108
This example demonstrates how to generate a custom sitemap in a headless WordPress application using the Next.js framework. The example app fetches data from WordPress using Apollo Client and WPGraphQL. Since WPGraphQL doesn't support sitemaps natively, we are extending it with a custom plugin, which is included in this example as well. This plugin exposes new fields to fetch the sitemap index, with data identical to what's rendered on the native WordPress sitemap. Another field exposed by this plugin allows you to request sitemap subpages by specifying the types and pages. The plugin also adds featured image data, enabling you to create [Image Sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps).
119

1210
The example includes a wp-env setup, which will allow you to build and start this example quickly. With this wp-env setup, you don't need to have a separate WordPress instance or demo data to inspect the example.

examples/next/custom-sitemap-vanilla-wpgraphql/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
2-
title: "Example: Create a custom WordPress sitemap with vanilla WPGraphQL and Apollo Client"
2+
title: "Create a custom WordPress sitemap with vanilla WPGraphQL and Apollo Client"
33
description: "This example demonstrates how to generate a custom sitemap in a headless WordPress application using the Next.js framework. The example app fetches data from WordPress using Apollo Client and WPGraphQL. This example is using only the existing WPGraphQL endpoints, without extending it."
44
---
55

66
# Example: Create a custom WordPress sitemap with vanilla WPGraphQL and Apollo Client
77

8-
## Overview
9-
108
This example demonstrates how to generate a custom sitemap in a headless WordPress application using the Next.js framework. The example app fetches data from WordPress using Apollo Client and WPGraphQL. This example is using only the existing WPGraphQL endpoints, without extending it.
119

1210
The example includes a wp-env setup, which will allow you to build and start this example quickly. With this wp-env setup, you don't need to have a separate WordPress instance or demo data to inspect the example.

examples/next/hybrid-sitemap-apollo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "A Next.js application that fetches and transforms WordPress sitema
44
---
55

66
# WordPress to Next.js Sitemap Integration
7-
## Overview
7+
88
A Next.js application that fetches and transforms WordPress sitemaps with clean URL formatting, providing a seamless integration between WordPress content and Next.js frontend.
99

1010
## Features

0 commit comments

Comments
 (0)