Skip to content

Commit 56ec4b9

Browse files
authored
Merge pull request #745 from pradameinhof/25-05-08-ReadTheDocs-Fixes
Fix issues on ReadThe Docs documentation
2 parents e7f15e1 + 192db4a commit 56ec4b9

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

docs/_static/css/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Custom style for 'deprecated' admonitions */
2+
div.admonition.deprecated {
3+
border-left: 4px solid #e03e2d; /* Strong red border */
4+
background-color: #ffeaea; /* Light red background */
5+
}
6+
7+
/* Title bar styling */
8+
div.admonition.deprecated .admonition-title {
9+
background-color: #e03e2d;
10+
color: white;
11+
}

docs/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block extrahead %}
44
{{ super() }}
5-
{% if meta.canonical %}
5+
{% if meta is defined and meta.canonical %}
66
<link rel="canonical" href="{{ meta.canonical }}" />
77
{% endif %}
88
{% endblock %}

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import sphinx_rtd_theme
3434
extensions = [
3535
"sphinx_rtd_theme",
36+
"sphinx.ext.todo",
3637
]
3738

3839
# Add any paths that contain templates here, relative to this directory.
@@ -56,6 +57,8 @@
5657
"canonical_url": "https://bloodhound.specterops.io/"
5758
}
5859

60+
# Static files path
61+
html_static_path = ['_static']
5962

6063
# Load custom CSS so that deprecated notice boxes are displayed in red
6164
def setup(app):
@@ -65,6 +68,5 @@ def setup(app):
6568
# Add any paths that contain custom static files (such as style sheets) here,
6669
# relative to this directory. They are copied after the builtin static files,
6770
# so a file named "default.css" will overwrite the builtin "default.css".
68-
html_static_path = ['_static']
6971

7072
master_doc = 'index'

docs/index.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
.. note::
2-
This documentation applies to Legacy BloodHound and is no longer maintained.
1+
.. admonition:: Deprecated Documentation
2+
:class: deprecated
33

4-
See up-to-date documentation for BloodHound CE here: `BloodHound Support`_
4+
**This documentation refers to deprecated BloodHound Legacy (version 4.3, released in 2023).**
5+
6+
Please use the `current BloodHound CE Documentation <https://bloodhound.specterops.io/>`_.
7+
8+
.. meta::
9+
:canonical: https://bloodhound.specterops.io/
510

6-
.. _BloodHound Support: https://support.bloodhoundenterprise.io/hc/en-us
711

812
BloodHound: Six Degrees of Domain Admin
913
=======================================

0 commit comments

Comments
 (0)