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

20 lines
655 B
JavaScript

const path = require('path');
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)}`,
},
};