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

18 lines
594 B
JavaScript

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/${data.page.inputPath}`,
},
};