Skip to content

Commit

Permalink
We don't use anymore the 'A' namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 committed May 21, 2023
1 parent fd19fab commit 1d9a1b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mwoffliner.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ async function execute(argv: any) {
}

function createMainPageRedirect() {
logger.log(`Create main page redirection from [index] to [${'A/' + mainPage}]`)
logger.log(`Create main page redirection from [index] to [${mainPage}]`)
return zimCreator.addRedirection('index', mainPage, mainPage, { FRONT_ARTICLE: 1 })
}

Expand Down
2 changes: 1 addition & 1 deletion src/util/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export function deDup<T>(_arr: T[], getter: (o: T) => any) {
})
}

export function getRelativeFilePath(parentArticleId: string, fileBase: string, resourceNamespace: 'I' | 'A' | 'M' | '-') {
export function getRelativeFilePath(parentArticleId: string, fileBase: string, resourceNamespace: 'I' | 'M' | '-') {
const slashesInUrl = parentArticleId.split('/').length - 1
const upStr = '../'.repeat(slashesInUrl + 1)
const newUrl = `${upStr}${resourceNamespace}/` + fileBase
Expand Down

0 comments on commit 1d9a1b1

Please sign in to comment.