mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Add githubPath to rendered content
This commit is contained in:
@@ -67,6 +67,7 @@ app.get(
|
||||
content: renderedContent,
|
||||
category: currentCategory,
|
||||
link: currrentNavLink,
|
||||
githubPath: fullPath
|
||||
});
|
||||
} catch (err) {
|
||||
logger.error(err);
|
||||
|
||||
@@ -149,6 +149,7 @@
|
||||
</div>
|
||||
<div class="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16">
|
||||
<%- include('./Partials/Content.ejs', { category: category, link: link, content: content }) %>
|
||||
<%- include('./Partials/OpenSourceCommitment.ejs', { githubPath: githubPath }) %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
22
App/FeatureSet/Docs/Views/Partials/OpenSourceCommitment.ejs
Normal file
22
App/FeatureSet/Docs/Views/Partials/OpenSourceCommitment.ejs
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class=" font-medium leading-6 text-gray-900 mt-24">Our Commitment to Open Source
|
||||
</div>
|
||||
|
||||
<div class="mt-2 text-gray-900">
|
||||
<ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200">
|
||||
<li class="items-center justify-between py-4 pl-4 pr-5 leading-6">
|
||||
<div class="items-center">
|
||||
|
||||
<div class="p-1 space-y-2">
|
||||
|
||||
|
||||
|
||||
<div>Everything we do at OneUptime is 100% open-source. You can contribute and improve this post here <a class="underline"
|
||||
target="_blank"
|
||||
href="https://github.com/OneUptime/oneuptime/tree/master/App/FeatureSet/Docs/Content/<%- githubPath -%>.md">here.</a></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user