2023-06-29 13:58:39 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
2023-06-01 22:06:51 +02:00
|
|
|
module.exports = {
|
|
|
|
eleventyNavigation: {
|
|
|
|
key: data => data.title,
|
|
|
|
parent: data => data.parent,
|
|
|
|
order: data => data.order,
|
|
|
|
},
|
|
|
|
|
|
|
|
navigationOptions: {
|
|
|
|
activeKey: data => data.eleventyNavigation.key,
|
|
|
|
},
|
|
|
|
|
|
|
|
github: {
|
|
|
|
reportDocsIssue: data => `${data.meta.repoUrl}/issues/new?assignees=garraflavatra&labels=documentation&projects=&template=docs.yml&source=${encodeURIComponent(data.meta.siteUrl + data.page.url)}`,
|
|
|
|
licenseUrl: data => `${data.meta.repoUrl}/blob/main/LICENSE`,
|
2023-06-29 13:58:39 +02:00
|
|
|
pageSourceUrl: data => `${data.meta.repoUrl}/blob/main/${path.relative(process.cwd(), data.page.inputPath)}`,
|
2023-06-01 22:06:51 +02:00
|
|
|
},
|
|
|
|
};
|