Skip to content

Commit

Permalink
docs(v1.x): fix incorrect display of route path (#9383)
Browse files Browse the repository at this point in the history
Fix for route paths, such as `/store/shipping-options/{cart_id}` where displayed as `/store/shipping-options/{cart\_id}`.

(Fix copied from `develop` branch)

Closes #9374
  • Loading branch information
shahednasser authored Oct 16, 2024
1 parent 4b5a1f0 commit 067ee96
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/apps/api-reference/utils/get-paths-of-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default async function getPathsOfTag(
return {
...fileContent,
operationPath: `/${file
.replaceAll("_", "/")
.replaceAll(/(?<!\{[^}]*)_(?![^{]*\})/g, "/")
.replace(/\.[A-Za-z]+$/, "")}`,
}
})
Expand Down
6 changes: 3 additions & 3 deletions www/apps/docs/content/development/entities/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ To update a record of an entity, use the `save` method of the repository:

```ts
const data = {
title: 'some_title'
title: "some_title",
}

const post = await postRepository.findOne({
where: {
id: '1'
}
id: "1",
},
})

Object.assign(post, data)
Expand Down
6 changes: 5 additions & 1 deletion www/apps/docs/content/plugins/search/meilisearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ const plugins = [
settings: {
products: {
indexSettings: {
searchableAttributes: ["title", "description", "variant_sku"],
searchableAttributes: [
"title",
"description",
"variant_sku"
],
displayedAttributes: [
"title",
"description",
Expand Down

0 comments on commit 067ee96

Please sign in to comment.