Skip to content

Commit 86c629f

Browse files
committed
update fix paths
1 parent 180bd07 commit 86c629f

File tree

12 files changed

+27
-23
lines changed

12 files changed

+27
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,20 @@ jobs:
121121
- name: Clean cache on stage
122122
if: needs.set-state.outputs.clean_cache == 'true' && needs.set-state.outputs.deploy_stage == 'true'
123123
run: |
124-
bash .github/scripts/process-mds.sh cache stage ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
124+
bash .github/scripts/process-mds.sh cache stage ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
125125
126126
- name: Clean cache on prod
127127
if: needs.set-state.outputs.clean_cache == 'true' && needs.set-state.outputs.deploy_prod == 'true'
128128
run: |
129-
bash .github/scripts/process-mds.sh cache prod ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
129+
bash .github/scripts/process-mds.sh cache prod ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
130130
131131
- name: Deploy to stage
132132
if: needs.set-state.outputs.deploy_stage == 'true'
133133
run: |
134-
bash .github/scripts/process-mds.sh preview stage ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
134+
bash .github/scripts/process-mds.sh preview stage ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
135135
136136
- name: Deploy to prod
137137
if: needs.set-state.outputs.deploy_prod == 'true'
138-
run: |
139-
bash .github/scripts/process-mds.sh preview prod ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
140-
bash .github/scripts/process-mds.sh live prod ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
138+
run: |
139+
bash .github/scripts/process-mds.sh preview prod ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"
140+
bash .github/scripts/process-mds.sh live prod ${{ needs.set-state.outputs.branch_short_ref }} "${{ needs.set-state.outputs.path_prefix }}"

normalizeLinks.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,24 @@ function normalizeLinksInMarkdownFile(file, files) {
1717
let data = fs.readFileSync(file, 'utf8');
1818
const links = matchAll(data, new RegExp(linkPattern, "gm"));
1919
[...links].forEach(link => {
20-
21-
// ensure link includes file name and extension
20+
const optionalPrefix = link[2] ?? '';
2221
const from = link[3] ?? '';
2322
let to = from;
24-
if(link[2]?.endsWith('/') && to === '') {
25-
to = 'index.md';
26-
}
27-
if(to.endsWith('/')) {
23+
24+
// ensure link includes file name and extension
25+
if(to.endsWith('/') || optionalPrefix.endsWith('/') && !to) {
2826
to = `${to}index.md`
2927
}
30-
if(!to.endsWith('.md')) {
28+
if(!to.endsWith('.md') && to) {
3129
to = `${to}.md`;
3230
}
3331

32+
// ensure simplest relative path
33+
// this removes trailing slash, so need to do this after the file name and extension checks above
34+
const absolute = path.resolve(relativeToDir, to);
35+
const relative = path.relative(relativeToDir, absolute);
36+
to = relative;
37+
3438
// ensure the link we constructed above exists
3539
const toExists = relativeFiles.find(file => to === file);
3640

src/pages/guides/authentication/ServerToServerAuthentication/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Read our OAuth Server-to-server credential implementation guide -
4848

4949
<InlineAlert slots="text"/>
5050

51-
The Service Account (JWT) credentials have been deprecated in favor of the OAuth Server-to-Server credentials. Your applications using the Service Account (JWT) credentials will stop working after Jun 30, 2025. You must migrate to the new credential by **Jun 30, 2025**, to ensure your application continues functioning. [Learn more](../ServerToServerAuthentication/migration.md).
51+
The Service Account (JWT) credentials have been deprecated in favor of the OAuth Server-to-Server credentials. Your applications using the Service Account (JWT) credentials will stop working after Jun 30, 2025. You must migrate to the new credential by **Jun 30, 2025**, to ensure your application continues functioning. [Learn more](migration.md).
5252

5353
Service Account (JWT) credentials rely on the JWT token exchange mechanism to generate access tokens. This credential's details include two secrets a `client_secret` and a `private.key` (part of a public certificate private key pair).
5454

src/pages/guides/authentication/UserAuthentication/implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# User Authentication Implementation Guide
22

3-
The following guide goes over finer implementation details for user authentication credentials. At the end of this guide is a list of recommended industry-standard OAuth2 libraries. Before proceeding, we recommend you familiarize yourself with the 3-legged OAuth flow in our [user authentication guide](../UserAuthentication/index.md).
3+
The following guide goes over finer implementation details for user authentication credentials. At the end of this guide is a list of recommended industry-standard OAuth2 libraries. Before proceeding, we recommend you familiarize yourself with the 3-legged OAuth flow in our [user authentication guide](index.md).
44

55
## User authentication credential types
66

src/pages/guides/plugins/plugin-distribution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This guide provides instructions for distributing a Plugin created in Adobe Developer Console.
44

5-
For information on how to build a plugin, please being by reading the [plugin overview](../plugins/index.md).
5+
For information on how to build a plugin, please being by reading the [plugin overview](index.md).
66

77
## Select plugin project
88

src/pages/guides/services/services-add-api-key.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To learn more about insights, begin by reading the [insights overview](../insigh
6060

6161
## Next steps
6262

63-
With an API successfully added, you can follow the same workflow steps to add additional APIs, or return to the [services overview](../services/index.md) to select another type of service to add to your project.
63+
With an API successfully added, you can follow the same workflow steps to add additional APIs, or return to the [services overview](index.md) to select another type of service to add to your project.
6464

6565
If you have completed development on your project and are ready to submit your application for approval, please read the [project approval guide](../projects/approval.md) to get started.
6666

src/pages/guides/services/services-add-api-oauth-s2-s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ To learn more about insights, begin by reading the [insights overview](../insigh
9999

100100
## Next steps
101101

102-
With an API successfully added, you can follow the same workflow steps to add additional APIs, or return to the [services overview](../services/index.md) to select another type of service to add to your project.
102+
With an API successfully added, you can follow the same workflow steps to add additional APIs, or return to the [services overview](index.md) to select another type of service to add to your project.
103103

104104
If you have completed development on your project and are ready to submit your application for approval, please read the [project approval guide](../projects/approval.md) to get started.

src/pages/guides/services/services-add-api-oauth-user-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ To learn more about insights, begin by reading the [insights overview](../insigh
129129

130130
## Next steps
131131

132-
With an API successfully added, you can follow the same workflow steps to add additional APIs or return to the [services overview](../services/index.md) to select another type of service to add to your project.
132+
With an API successfully added, you can follow the same workflow steps to add additional APIs or return to the [services overview](index.md) to select another type of service to add to your project.
133133

134134
If you have completed development on your project and are ready to submit your application for approval, please read the [project approval guide](../projects/approval.md) to get started.
135135

src/pages/guides/services/services-add-api-oauth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
<InlineAlert slots="text"/>
44

5-
The new version of this guide is now available here - [Add API to project using OAuth User Authentication credentials](../services/services-add-api-oauth-user-authentication.md).
5+
The new version of this guide is now available here - [Add API to project using OAuth User Authentication credentials](services-add-api-oauth-user-authentication.md).

src/pages/guides/services/services-add-event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ The *Debug Tracing* tab shows details related to recent requests and responses r
7878

7979
## Next steps
8080

81-
Now that you have successfully added events to your project or workspace, you can follow this workflow again to add additional event registrations, or return to the [services overview](../services/index.md) to select another type of service to add to your project.
81+
Now that you have successfully added events to your project or workspace, you can follow this workflow again to add additional event registrations, or return to the [services overview](index.md) to select another type of service to add to your project.
8282

8383
If you have completed development on your project and are ready to submit your application for approval, please read the [project approval guide](../projects/approval.md) to get started.

0 commit comments

Comments
 (0)