Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
if: github.event_name == 'push'
permissions:
contents: write
env:
SCARF_ENABLED: "true"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ copyright: "Copyright © OWASP Foundation. All Rights Reserved."

theme:
name: material
custom_dir: overrides
logo: assets/images/logo.svg
favicon: assets/images/logo.svg
palette:
Expand Down Expand Up @@ -55,6 +56,7 @@ theme:
- toc.follow

extra:
scarf_pixel: !ENV [SCARF_ENABLED, false]
version:
provider: mike
default: latest
Expand All @@ -69,6 +71,8 @@ extra:
link: https://www.linkedin.com/company/owasp-dependency-track
- icon: fontawesome/brands/mastodon
link: https://infosec.exchange/@DependencyTrack
- icon: fontawesome/brands/youtube
link: https://www.youtube.com/@DependencyTrack

extra_css:
- stylesheets/extra.css
Expand Down
8 changes: 8 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}

{% block extrahead %}
{{ super() }}
{% if config.extra.scarf_pixel %}
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=4e38a992-0670-4e48-a193-edd89b6482d0" alt="" />
{% endif %}
{% endblock %}