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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user