Skip to content

Commit a064c3b

Browse files
authored
Merge pull request #230 from pluginpal/feature/fixes
Feature/fixes
2 parents 1deaf09 + 37cb8b0 commit a064c3b

File tree

25 files changed

+119
-65
lines changed

25 files changed

+119
-65
lines changed

.changeset/bumpy-islands-bet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"docs": patch
3+
---
4+
5+
Fix the broken images on the docs

.changeset/dry-clouds-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"webtools-addon-sitemap": patch
3+
---
4+
5+
Make sure the strapi-sitemap CLI is actually published to the /bin

.changeset/great-worlds-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"docs": patch
3+
---
4+
5+
Update response structures for Strapi v5

.changeset/rare-cups-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"docs": patch
3+
---
4+
5+
Add documentation for the slugify config

.changeset/ripe-crabs-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"strapi-plugin-webtools": minor
3+
---
4+
5+
New config 'slugify' to overwrite the slugify function of the plugin

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"playground:build": "cd playground && yarn build",
1818
"playground:start": "cd playground && yarn start",
1919
"playground:develop": "rm -rf playground/node_modules/.strapi/ && cd playground && yarn develop --watch-admin --bundler=vite",
20+
"docs:start": "cd packages/docs/ && yarn start",
21+
"docs:build": "cd packages/docs/ && yarn build",
2022
"test:e2e": "cypress open",
2123
"test:unit": "ENV_PATH=./playground/.env jest --verbose --runInBand --forceExit",
2224
"test:integration": "ENV_PATH=./playground/.env jest --verbose --runInBand --forceExit --testMatch '**/healthcheck.test.js'"
File renamed without changes.

packages/addons/sitemap/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"files": [
1616
"dist",
1717
"xsl",
18-
"strapi-admin.js",
19-
"strapi-server.js"
18+
"bin"
2019
],
2120
"bin": {
2221
"strapi-sitemap": "./bin/strapi-sitemap"

packages/docs/docs/api/rest.md

Lines changed: 44 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,16 @@ Other than the path parameter this endpoint should behave just like a native fin
3333
{
3434
"data": {
3535
"id": 2,
36-
"attributes": {
37-
"title": "Robust Strapi plugins for your project",
38-
"createdAt": "2023-11-28T21:06:51.727Z",
39-
"updatedAt": "2024-08-10T09:19:43.568Z",
40-
"publishedAt": "2023-12-10T12:54:15.699Z",
41-
"locale": "en",
42-
"body": "Try our open source plugins to enhance your Strapi project for free! For custom solutions please contact our team.",
43-
"contentType": "api::home.home"
44-
}
36+
"documentId": "ke1s1aroaexv8jt03iuxn81g",
37+
"title": "Robust Strapi plugins for your project",
38+
"createdAt": "2025-03-09T16:45:24.886Z",
39+
"updatedAt": "2025-03-13T20:38:43.112Z",
40+
"publishedAt": "2025-03-13T17:06:57.578Z",
41+
"locale": "en",
42+
"body": "Try our open source plugins to enhance your Strapi project for free! For custom solutions please contact our team.",
43+
"contentType": "api::home.home"
4544
},
46-
"meta": {
47-
48-
}
45+
"meta": {}
4946
}
5047

5148
```
@@ -76,58 +73,53 @@ As it's a native findMany endpoint you can use all the parameters you're used to
7673
"data": [
7774
{
7875
"id": 10,
79-
"attributes": {
80-
"url_path": "/articles",
81-
"generated": true,
82-
"contenttype": "api::page.page",
83-
"createdAt": "2024-08-10T09:19:43.348Z",
84-
"updatedAt": "2024-08-10T09:19:44.581Z",
85-
"locale": "en"
86-
}
76+
"documentId": "ke1s1aroaexv8jt03iuxn81g",
77+
"url_path": "/articles",
78+
"generated": true,
79+
"contenttype": "api::page.page",
80+
"createdAt": "2025-03-09T16:45:24.886Z",
81+
"updatedAt": "2025-03-13T20:38:43.112Z",
82+
"locale": "en"
8783
},
8884
{
8985
"id": 14,
90-
"attributes": {
91-
"url_path": "/plugins",
92-
"generated": true,
93-
"contenttype": "api::page.page",
94-
"createdAt": "2024-08-10T09:19:43.808Z",
95-
"updatedAt": "2024-08-10T09:19:44.611Z",
96-
"locale": "en"
97-
}
86+
"documentId": "f4x8aamrfaec0t5oea408n34",
87+
"url_path": "/plugins",
88+
"generated": true,
89+
"contenttype": "api::page.page",
90+
"createdAt": "2025-03-09T16:45:24.886Z",
91+
"updatedAt": "2025-03-13T20:38:43.112Z",
92+
"locale": "en"
9893
},
9994
{
10095
"id": 18,
101-
"attributes": {
102-
"url_path": "/privacy-policy",
103-
"generated": null,
104-
"contenttype": "api::page.page",
105-
"createdAt": "2024-09-01T12:55:04.863Z",
106-
"updatedAt": "2024-09-01T12:55:29.346Z",
107-
"locale": "en"
108-
}
96+
"documentId": "fdg21vh8i5bzbbwjm50dwk60",
97+
"url_path": "/privacy-policy",
98+
"generated": null,
99+
"contenttype": "api::page.page",
100+
"createdAt": "2025-03-09T16:45:24.886Z",
101+
"updatedAt": "2025-03-13T20:38:43.112Z",
102+
"locale": "en"
109103
},
110104
{
111105
"id": 21,
112-
"attributes": {
113-
"url_path": "/terms-and-conditions",
114-
"generated": null,
115-
"contenttype": "api::page.page",
116-
"createdAt": "2024-09-01T13:13:14.364Z",
117-
"updatedAt": "2024-09-01T13:13:30.147Z",
118-
"locale": "en"
119-
}
106+
"documentId": "so0mehxfna6l3o6i0aul75gr",
107+
"url_path": "/terms-and-conditions",
108+
"generated": null,
109+
"contenttype": "api::page.page",
110+
"createdAt": "2025-03-09T16:45:24.886Z",
111+
"updatedAt": "2025-03-13T20:38:43.112Z",
112+
"locale": "en"
120113
},
121114
{
122115
"id": 11,
123-
"attributes": {
124-
"url_path": "/",
125-
"generated": null,
126-
"contenttype": "api::home.home",
127-
"createdAt": "2024-08-10T09:19:43.351Z",
128-
"updatedAt": "2024-09-01T13:44:57.434Z",
129-
"locale": "en"
130-
}
116+
"documentId": "idrdcm7f9cn3w7iex32t2hh3",
117+
"url_path": "/",
118+
"generated": null,
119+
"contenttype": "api::home.home",
120+
"createdAt": "2025-03-09T16:45:24.886Z",
121+
"updatedAt": "2025-03-13T20:38:43.112Z",
122+
"locale": "en"
131123
},
132124
],
133125
"meta": {

packages/docs/docs/configuration/default-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Webtools allows you to create custom URL patterns, specifically tweaked to your
1313
| Key | `default_pattern` |
1414
| Required | false |
1515
| Type | string |
16-
| Default | `/[pluralName]/[id]` |
16+
| Default | `/[pluralName]/[documentId]` |

0 commit comments

Comments
 (0)