Skip to content

Commit 34c3388

Browse files
authored
Fix deprecation warning box in docs (#831)
1 parent c718f3a commit 34c3388

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

docs/_static/custom.css

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.admonition.warning {
2+
background-color: #fff8dc; /* Match warning background */
3+
border: 1px solid #f0ad4e;
4+
}
5+
6+
.admonition.warning > .admonition-title {
7+
color: #8a6d3b;
8+
}

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,5 @@
170170
'Miscellaneous'),
171171
]
172172

173-
174-
173+
def setup(app):
174+
app.add_css_file("custom.css")

docs/tests/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
:caption: Tests Contents:
44

55
format.rst
6+
suites.rst
67
run.rst
78
build.rst
8-
suites.rst
99
env.rst
1010
permutations.rst
1111
values.rst

docs/tests/suites.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ the previous section. Note the difference in file name between the two organizat
4141
first, the name of the file is the name of the suite; in the second, the file name is the generic
4242
`suite.yaml`, and Pavilion derives the suite name from its containing directory.
4343

44-
.. warning:: Deprecation Warning
44+
.. admonition:: Deprecation Warning
45+
:class: warning
46+
4547
Pavilion 2.4 uses the `tests` and `test_src` subdirectories to store suite configs and test
4648
source code respectively. As of the latest release, these directories are deprecated in favor
4749
of the single `suites` directory, and support for them will eventually be removed.

0 commit comments

Comments
 (0)