Skip to content

Commit c8df1f6

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents 72a069d + d74e54d commit c8df1f6

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/old-versions-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function getNewVersionedPath (oldPath, languageCode = '') {
6767
const restOfString = oldPath.replace(patterns.oldEnterprisePath, '')
6868

6969
// Add the language and new version to the product part of the string
70-
return path.join('/', languageCode, newVersion, restOfString)
70+
return path.posix.join('/', languageCode, newVersion, restOfString)
7171
}
7272

7373
module.exports = {

lib/permalink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Permalink {
1515

1616
const permalinkSuffix = this.constructor.relativePathToSuffix(relativePath)
1717

18-
this.href = removeFPTFromPath(path.join('/', languageCode, pageVersion, permalinkSuffix))
18+
this.href = removeFPTFromPath(path.posix.join('/', languageCode, pageVersion, permalinkSuffix))
1919
.replace(patterns.trailingSlash, '$1')
2020

2121
this.pageVersionTitle = allVersions[pageVersion].versionTitle

lib/redirects/get-docs-path-from-developer-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports = function getDocsPathFromDeveloperPath (oldDeveloperPath, allRed
7474

7575
// old developer routes that include 'enterprise-admin' should always redirect to enterprise server
7676
if (fragment && newPath.includes('/rest/reference/enterprise-admin') && !patterns.enterpriseServer.test(newPath)) {
77-
newPath = path.join('/en', `enterprise-server@${latest}`, getPathWithoutLanguage(getPathWithoutVersion(newPath)))
77+
newPath = path.posix.join('/en', `enterprise-server@${latest}`, getPathWithoutLanguage(getPathWithoutVersion(newPath)))
7878
}
7979

8080
// show an error if the page to be redirected to doesn't exist

lib/redirects/permalinks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function generateRedirectsForPermalinks (permalinks, redirectFr
3636
}
3737

3838
// get the old path for the current permalink version
39-
let versionedFrontmatterOldPath = path.join('/', permalink.languageCode, getNewVersionedPath(frontmatterOldPath))
39+
let versionedFrontmatterOldPath = path.posix.join('/', permalink.languageCode, getNewVersionedPath(frontmatterOldPath))
4040
const versionFromPath = getVersionStringFromPath(versionedFrontmatterOldPath)
4141
versionedFrontmatterOldPath = removeFPTFromPath(versionedFrontmatterOldPath.replace(versionFromPath, permalink.pageVersion))
4242

lib/rewrite-local-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function getNewHref (link, languageCode, version) {
5252
const hrefWithoutLang = getPathWithoutLanguage(href)
5353

5454
// normalize any legacy links so they conform to new link structure
55-
newHref = path.join('/', languageCode, getNewVersionedPath(hrefWithoutLang))
55+
newHref = path.posix.join('/', languageCode, getNewVersionedPath(hrefWithoutLang))
5656

5757
// get the current version from the link
5858
const versionFromHref = getVersionStringFromPath(newHref)

lib/site-tree.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = async function buildSiteTree (pageMap, site, redirects) {
3737
return
3838
}
3939

40-
product.href = path.join('/', languageCode, item.href)
40+
product.href = path.posix.join('/', languageCode, item.href)
4141

4242
// find the product TOC page so we have access to the TOC items
4343
const page = findPage(item.href, pageMap, redirects)
@@ -71,7 +71,7 @@ function buildCategoriesTree (tocItems, versionedProductHref, pageMap, redirects
7171
tocItems.forEach(item => {
7272
const category = {}
7373

74-
category.href = path.join(versionedProductHref, item.href)
74+
category.href = path.posix.join(versionedProductHref, item.href)
7575

7676
// find the category TOC page and get its TOC items
7777
const page = findPage(category.href, pageMap, redirects)
@@ -115,7 +115,7 @@ function buildMaptopicsTree (tocItems, versionedCategoryHref, pageMap, redirects
115115
.forEach(item => {
116116
const maptopic = {}
117117

118-
maptopic.href = path.join(versionedCategoryHref, item.href)
118+
maptopic.href = path.posix.join(versionedCategoryHref, item.href)
119119

120120
// find the category TOC page and get its TOC items
121121
const page = findPage(maptopic.href, pageMap, redirects)
@@ -150,7 +150,7 @@ function buildArticlesTree (tocItems, versionedCategoryHref, pageMap, redirects,
150150
tocItems.forEach(item => {
151151
const article = {}
152152

153-
article.href = path.join(versionedCategoryHref, item.href)
153+
article.href = path.posix.join(versionedCategoryHref, item.href)
154154

155155
// find the category TOC page and get its TOC items
156156
const page = findPage(article.href, pageMap, redirects)

0 commit comments

Comments
 (0)