Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,23 @@ const GridBlock = CompLibrary.GridBlock;

const siteConfig = require(process.cwd() + '/siteConfig.js');

function imgUrl(img) {
function imgUrl(img) {
return siteConfig.baseUrl + 'img/' + img;
}

function docUrl(doc, language) {
const overrideIds = [ "model-vocabulary", "model-namespaces",
"model-classes", "model-enums", "model-properties",
"model-relationships", "model-decorators"];

if (overrideIds.includes(doc)) {
return "https://concerto.accordproject.org/docs/intro/";
}

return siteConfig.baseUrl + 'docs/' + (language ? language + '/' : '') + doc;
}


function pageUrl(page, language) {
return siteConfig.baseUrl + (language ? language + '/' : '') + page;
}
Expand Down