Bug 1698567 - [perfdocs] Provide a way to link directly to individual Raptor tests r=sparky,perftest-reviewers,firefox-source-docs-reviewers,ahal

Differential Revision: https://phabricator.services.mozilla.com/D110779
This commit is contained in:
Myeongjun Go
2021-04-27 18:19:03 +00:00
parent 47d8479e3f
commit 56369120cf
5 changed files with 162 additions and 1 deletions

View File

@@ -116,6 +116,12 @@ html_show_copyright = False
autosectionlabel_maxdepth = 1
def install_sphinx_panels(app, pagename, templatename, context, doctree):
if "raptor" in pagename:
app.add_js_file("sphinx_panels.js")
app.add_css_file("sphinx_panels.css")
def setup(app):
app.add_config_value(
"recommonmark_config",
@@ -129,3 +135,4 @@ def setup(app):
)
app.add_stylesheet("custom_theme.css")
app.add_transform(AutoStructify)
app.connect("html-page-context", install_sphinx_panels)