v1.1.6 added homepageUrl argument

This commit is contained in:
2024-07-17 21:18:14 -05:00
parent 9c4fe7d3ea
commit 8247860806
8 changed files with 27 additions and 11 deletions

View File

@@ -1,12 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getAllPaths({ baseUrl, supportUrl, remoteBranch, inBase, outBase, }) {
function getAllPaths({ baseUrl, supportUrl, homepageUrl, remoteBranch, inBase, outBase, }) {
// generate links for remote git server
const homeUrl = baseUrl;
if (baseUrl != '' && remoteBranch != '') {
if (supportUrl == '') {
supportUrl = `${baseUrl}/issues`;
}
if (homepageUrl == '') {
homepageUrl = baseUrl;
}
baseUrl = `${baseUrl}/raw/branch/${remoteBranch}/${outBase}`;
}
return {
@@ -15,7 +17,7 @@ function getAllPaths({ baseUrl, supportUrl, remoteBranch, inBase, outBase, }) {
out: outBase,
},
url: {
home: homeUrl,
home: homepageUrl,
base: baseUrl,
support: supportUrl,
},