From d1af2e62bf852c364443fd1bcf58576f70fc5ce6 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 19 Mar 2024 07:41:24 +0000 Subject: [PATCH] Add githubPath to rendered content --- App/FeatureSet/Docs/Index.ts | 1 + App/FeatureSet/Docs/Views/Index.ejs | 1 + .../Views/Partials/OpenSourceCommitment.ejs | 22 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 App/FeatureSet/Docs/Views/Partials/OpenSourceCommitment.ejs diff --git a/App/FeatureSet/Docs/Index.ts b/App/FeatureSet/Docs/Index.ts index c62261cee1..8645fa19eb 100755 --- a/App/FeatureSet/Docs/Index.ts +++ b/App/FeatureSet/Docs/Index.ts @@ -67,6 +67,7 @@ app.get( content: renderedContent, category: currentCategory, link: currrentNavLink, + githubPath: fullPath }); } catch (err) { logger.error(err); diff --git a/App/FeatureSet/Docs/Views/Index.ejs b/App/FeatureSet/Docs/Views/Index.ejs index 93ec2602dd..f718433927 100644 --- a/App/FeatureSet/Docs/Views/Index.ejs +++ b/App/FeatureSet/Docs/Views/Index.ejs @@ -149,6 +149,7 @@
<%- include('./Partials/Content.ejs', { category: category, link: link, content: content }) %> + <%- include('./Partials/OpenSourceCommitment.ejs', { githubPath: githubPath }) %>
diff --git a/App/FeatureSet/Docs/Views/Partials/OpenSourceCommitment.ejs b/App/FeatureSet/Docs/Views/Partials/OpenSourceCommitment.ejs new file mode 100644 index 0000000000..f6121b1076 --- /dev/null +++ b/App/FeatureSet/Docs/Views/Partials/OpenSourceCommitment.ejs @@ -0,0 +1,22 @@ +
Our Commitment to Open Source +
+ +
+ +
\ No newline at end of file