Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,20 @@ article .md-typeset__table {
border-color:var(--md-accent-fg-color);
}

/* coolify preview banner */
.preview-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
text-align: center;
z-index: 999;
}

.preview-banner-style {
display: inline-block;
background: black;
color: white;
padding: 6px 12px;
border-radius: 6px;
}
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ extra:
- icon: simple/liberadotchat
link: https://web.libera.chat/#monero-docs
name: IRC via Libera.chat
isCoolifyPreview: !ENV [COOLIFY_PREVIEW, ""]
sourceCommit: !ENV [SOURCE_COMMIT, ""]
coolifyBranch: !ENV [COOLIFY_BRANCH, ""]
coolifyRepo: !ENV [COOLIFY_REPO, ""]

repo_name: 'monero-project/monero-docs'
repo_url: 'https://github.com/monero-project/monero-docs'
Expand Down
10 changes: 10 additions & 0 deletions overrides/partials/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@
</a>
{% endif %}
</div>

{% if config.extra.isCoolifyPreview %}
<div class="preview-banner">
<span class="preview-banner-style">
<a href="{{ config.extra.coolifyRepo }}/pull/{{ config.extra.coolifyBranch.split('/')[1] }}/changes/{{ config.extra.sourceCommit }}"
>{{ config.extra.sourceCommit[:7]}}</a
> Preview powered by <a href="https://coolify.io/">Coolify</a>
</span>
</div>
{% endif %}
Loading