1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2024-11-28 10:22:24 +01:00
rolens/website/data/eleventyComputed.js

20 lines
655 B
JavaScript
Raw Normal View History

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`,
pageSourceUrl: data => `${data.meta.repoUrl}/blob/main/${path.relative(process.cwd(), data.page.inputPath)}`,
2023-06-01 22:06:51 +02:00
},
};