diff --git a/website/data/eleventyComputed.js b/website/data/eleventyComputed.js index 8720000..59397df 100644 --- a/website/data/eleventyComputed.js +++ b/website/data/eleventyComputed.js @@ -1,3 +1,5 @@ +const path = require('path'); + module.exports = { eleventyNavigation: { key: data => data.title, @@ -12,6 +14,6 @@ module.exports = { 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}`, + pageSourceUrl: data => `${data.meta.repoUrl}/blob/main/${path.relative(process.cwd(), data.page.inputPath)}`, }, }; diff --git a/website/data/github.js b/website/data/github.js index 04c78d3..7ab41e3 100644 --- a/website/data/github.js +++ b/website/data/github.js @@ -7,7 +7,7 @@ module.exports = async function() { return { stars: json.stargazers_count || 0 }; } catch (error) { - console.error('ERROR | Could not fetch GitHub stars:', error); + console.error('Error: could not fetch GitHub stars:', error); return { stars: 0 }; } }