Skip to content

Commit f05353d

Browse files
authored
Merge pull request #272 from HarperDB/root-redir
conditional root redirect to the base path
2 parents 50b55c6 + 2a97f65 commit f05353d

File tree

7 files changed

+25
-17
lines changed

7 files changed

+25
-17
lines changed

docusaurus.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const config: Config = {
9393
remarkPlugins: [[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }]],
9494
},
9595
],
96-
96+
9797
// Release Notes documentation
9898
[
9999
'@docusaurus/plugin-content-docs',
@@ -110,15 +110,15 @@ const config: Config = {
110110
},
111111
},
112112
],
113-
113+
114114
// Theme
115115
[
116116
'@docusaurus/theme-classic',
117117
{
118118
customCss: './src/css/custom.css',
119119
},
120120
],
121-
121+
122122
// Redirects
123123
[
124124
'@docusaurus/plugin-client-redirects',

redirects.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ type RedirectRule = {
88

99
// Release notes redirects (not affected by base path)
1010
function generateReleaseNotesRedirects(): RedirectRule[] {
11-
return [
12-
];
11+
return [];
1312
}
1413

1514
// Documentation redirects
@@ -20,7 +19,17 @@ function generateDocsRedirects(basePath: string): RedirectRule[] {
2019
return basePath === '/' ? path : `${basePath}${path}`;
2120
};
2221

23-
return [
22+
const redirects: RedirectRule[] = [];
23+
24+
// Only add root redirect if docs are not at root
25+
if (basePath !== '/') {
26+
redirects.push({
27+
from: '/',
28+
to: basePath,
29+
});
30+
}
31+
32+
redirects.push(
2433
// Operations API
2534
{
2635
from: withBase('/developers/operations-api/utilities'),
@@ -145,16 +154,15 @@ function generateDocsRedirects(basePath: string): RedirectRule[] {
145154
{ from: withBase('/api'), to: withBase('/developers/operations-api/') },
146155

147156
// File rename redirect
148-
{ from: withBase('/administration/logging/logging'), to: withBase('/administration/logging/standard-logging') },
149-
];
157+
{ from: withBase('/administration/logging/logging'), to: withBase('/administration/logging/standard-logging') }
158+
);
159+
160+
return redirects;
150161
}
151162

152163
// Combine all redirects
153164
export function generateRedirects(basePath: string): RedirectRule[] {
154-
return [
155-
...generateReleaseNotesRedirects(),
156-
...generateDocsRedirects(basePath),
157-
];
165+
return [...generateReleaseNotesRedirects(), ...generateDocsRedirects(basePath)];
158166
}
159167

160168
// For backward compatibility, export a default set with empty base path

release-notes/v4-tucker/4.6.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 4.6.4
66

77
8/1/2025
88

9-
- Fix for sending blobs on-demand without deleting before sent
9+
- Fix for sending blobs on-demand without deleting before sent
1010
- Fix for copying blobs in full table copy in a clone
1111
- Freeze records in new resource mode
1212
- Improvement in connection handling with disconnections

release-notes/v4-tucker/4.6.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ title: 4.6.5
88

99
- Add more analytics for replication, including transfer for blobs
1010
- Avoid attempts to connect to oneself for missing data
11-
- Adjustments to logging
11+
- Adjustments to logging

release-notes/v4-tucker/4.6.6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ title: 4.6.6
99
- Fix the auditing of hdb_nodes on install to ensure full connection of nodes when joining
1010
- Copy blob buffers to ensure that small buffers are not replaced with frequent usage
1111
- Separate replication subscription connections from on-demand connection retrieval
12-
- Fix for fail over connection handling
12+
- Fix for fail over connection handling

release-notes/v4-tucker/4.7.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ title: 4.7.0
99
- A new component status monitoring collects status from each component from loading and any registered notification of status changes.
1010
- OCSP is now supported, and can be used to invalidate TLS certificates used for replication and HTTP through an OCSP server.
1111
- New analytics and licensing functionality has been added for integration with Fabric services.
12-
- Further improvements to the plugin API
12+
- Further improvements to the plugin API

sidebarsReleaseNotes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ const sidebarsReleaseNotes: SidebarsConfig = {
4646
],
4747
};
4848

49-
export default sidebarsReleaseNotes;
49+
export default sidebarsReleaseNotes;

0 commit comments

Comments
 (0)