mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 22:18:03 +00:00
Documentation website
This commit is contained in:
17
website/data/eleventyComputed.js
Normal file
17
website/data/eleventyComputed.js
Normal file
@ -0,0 +1,17 @@
|
||||
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}`,
|
||||
},
|
||||
};
|
13
website/data/github.js
Normal file
13
website/data/github.js
Normal file
@ -0,0 +1,13 @@
|
||||
const { default: fetch } = require("node-fetch")
|
||||
|
||||
module.exports = async function() {
|
||||
try {
|
||||
const res = await fetch('https://api.github.com/repos/garraflavatra/alphabets');
|
||||
const json = await res.json();
|
||||
return { stars: json.stargazers_count || 0 };
|
||||
}
|
||||
catch (error) {
|
||||
console.error('ERROR | Could not fetch GitHub stars:', error);
|
||||
return { stars: 0 };
|
||||
}
|
||||
}
|
4
website/data/meta.json
Normal file
4
website/data/meta.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"siteUrl": "https://garraflavatra.github.io/rolens",
|
||||
"repoUrl": "https://github.com/garraflavatra/rolens"
|
||||
}
|
14
website/data/shortcuts.json
Normal file
14
website/data/shortcuts.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"collections": [
|
||||
{ "description": "Open Stats panel", "option": true, "ctrl": true, "symbol": "H", "link": "/user-guide/collections/stats/" },
|
||||
{ "description": "Open Find panel", "option": true, "ctrl": true, "symbol": "F", "link": "/user-guide/collections/find/" },
|
||||
{ "description": "Open Insert panel", "option": true, "ctrl": true, "symbol": "I", "link": "/user-guide/collections/insert/" },
|
||||
{ "description": "Open Update panel", "option": true, "ctrl": true, "symbol": "U", "link": "/user-guide/collections/update/" },
|
||||
{ "description": "Open Remove panel", "option": true, "ctrl": true, "symbol": "R", "link": "/user-guide/collections/remove/" },
|
||||
{ "description": "Open Indexes panel", "option": true, "ctrl": true, "symbol": "X", "link": "/user-guide/collections/indexes/" },
|
||||
{ "description": "Open Aggregate panel", "option": true, "ctrl": true, "symbol": "A", "link": "/user-guide/collections/aggregate/" }
|
||||
],
|
||||
"preferences": [
|
||||
{ "description": "Open preferences", "ctrl": true, "symbol": ",", "link": "/user-guide/preferences/" }
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user