Commit 714b69a2 authored by ogiorgis's avatar ogiorgis
Browse files

Bug 1824659 - replace sphinx panel by sphinx design...

Bug 1824659 - replace sphinx panel by sphinx design r=firefox-source-docs-reviewers,perftest-reviewers,sylvestre,sparky

Differential Revision: https://phabricator.services.mozilla.com/D173680
parent e3e07779
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ a.dropdown-link {
    visibility: hidden;
}

details.dropdown:hover a.dropdown-link {
details.sd-dropdown:hover a.dropdown-link {
    visibility: visible;
}

+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
(function() {
  "use strict";

  var dropdownClassName = "dropdown";
  var dropdownClassName = "sd-dropdown";

  function getDropdownElement() {
    var dropdownId = window.location.hash;
@@ -39,7 +39,7 @@
      aTag.innerHTML = "";

      var summaryElement = dropdowns[i].getElementsByClassName(
        "summary-title"
        "sd-summary-title"
      )[0];
      summaryElement.insertBefore(
        aTag,
+8 −5
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ extensions = [
    "sphinxcontrib.mermaid",
    "sphinx_copybutton",
    "sphinx_markdown_tables",
    "sphinx_panels",
    "sphinx_design",
    "bzlink",
]

@@ -102,6 +102,9 @@ html_favicon = os.path.join(topsrcdir, "browser/branding/nightly/firefox.ico")

exclude_patterns = ["_build", "_staging", "_venv"]
pygments_style = "sphinx"
# generate label “slugs” for header anchors so that
# we can reference them from markdown links.
myst_heading_anchors = 5

# We need to perform some adjustment of the settings and environment
# when running on Read The Docs.
@@ -137,12 +140,12 @@ html_show_copyright = False
autosectionlabel_maxdepth = 1


def install_sphinx_panels(app, pagename, templatename, context, doctree):
def install_sphinx_design(app, pagename, templatename, context, doctree):
    if "perfdocs" in pagename:
        app.add_js_file("sphinx_panels.js")
        app.add_css_file("sphinx_panels.css")
        app.add_js_file("sphinx_design.js")
        app.add_css_file("sphinx_design.css")


def setup(app):
    app.add_css_file("custom_theme.css")
    app.connect("html-page-context", install_sphinx_panels)
    app.connect("html-page-context", install_sphinx_design)
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ pypi:livereload==2.6.3
pypi:Markdown==3.3.4
pypi:MarkupSafe==2.0.1
pypi:mock==5.0.1
pypi:myst-parser==0.16.1
pypi:myst-parser==0.17
pypi:mdit-py-plugins==0.3.0
pypi:parsimonious==0.10.0
pypi:pyasn1==0.4.8
@@ -39,7 +39,7 @@ pypi:singledispatch==4.0.0
pypi:snowballstemmer==2.2.0
pypi:Sphinx==4.5
pypi:sphinx-copybutton==0.5.1
pypi:sphinx-panels==0.6.0
pypi:sphinx-design==0.3.0
pypi:sphinx-js==3.2.1
pypi:sphinx-markdown-tables==0.0.15
pypi:sphinx-rtd-theme==1.2.0
+4 −4
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ Awsy tests


.. dropdown:: base (FF)
   :container: + anchor-id-base-Awsy-tests
   :class-container: anchor-id-base-Awsy-tests

   **Owner**: :mccr8 and Perftest Team

@@ -54,7 +54,7 @@ Awsy tests


.. dropdown:: dmd (FF)
   :container: + anchor-id-dmd-Awsy-tests
   :class-container: anchor-id-dmd-Awsy-tests

   **Owner**: :mccr8 and Perftest Team

@@ -93,7 +93,7 @@ Awsy tests


.. dropdown:: tp5 (FF)
   :container: + anchor-id-tp5-Awsy-tests
   :class-container: anchor-id-tp5-Awsy-tests

   **Owner**: :mccr8 and Perftest Team

@@ -116,7 +116,7 @@ Awsy tests


.. dropdown:: tp6 (FF)
   :container: + anchor-id-tp6-Awsy-tests
   :class-container: anchor-id-tp6-Awsy-tests

   **Owner**: :mccr8 and Perftest Team

Loading