From 1d9a1b12601492afdd32e8285fed92f29bfad94c Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Sun, 21 May 2023 14:16:46 +0200 Subject: [PATCH] We don't use anymore the 'A' namespace --- src/mwoffliner.lib.ts | 2 +- src/util/misc.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mwoffliner.lib.ts b/src/mwoffliner.lib.ts index eef4b6d01..18781ab41 100644 --- a/src/mwoffliner.lib.ts +++ b/src/mwoffliner.lib.ts @@ -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 }) } diff --git a/src/util/misc.ts b/src/util/misc.ts index d25566587..2ef4d6ee1 100644 --- a/src/util/misc.ts +++ b/src/util/misc.ts @@ -313,7 +313,7 @@ export function deDup(_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