summaryrefslogtreecommitdiff
path: root/doc/_templates
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-08-09 21:44:57 -0700
committerGitHub <noreply@github.com>2022-08-09 21:44:57 -0700
commitb50be98dea148e5cca450a30cf1ae8a7669c2589 (patch)
tree41ee1f75b3e656248035e9bdf81f8aefe80d29d4 /doc/_templates
parent94a7ce096426462a040ad157cb2f86a07514b72b (diff)
downloadnetworkx-b50be98dea148e5cca450a30cf1ae8a7669c2589.tar.gz
Update precommit hooks (#5923)
Diffstat (limited to 'doc/_templates')
-rw-r--r--doc/_templates/dev_banner.html17
-rw-r--r--doc/_templates/eol_banner.html11
-rw-r--r--doc/_templates/layout.html8
-rw-r--r--doc/_templates/version.html31
4 files changed, 40 insertions, 27 deletions
diff --git a/doc/_templates/dev_banner.html b/doc/_templates/dev_banner.html
index 5fd2b535..b90046d3 100644
--- a/doc/_templates/dev_banner.html
+++ b/doc/_templates/dev_banner.html
@@ -1,10 +1,13 @@
{# Creates a banner at the top of the page for development versions. #}
<div class="container-fluid version-alert devbar">
-<div class="row no-gutters">
-<div class="col-12 text-center">
-This page is documentation for a DEVELOPMENT / PRE-RELEASE version.
-<a class="btn version-stable font-weight-bold ml-3 my-3 align-baseline"
-href="https://networkx.org/documentation/stable/">Switch to stable version</a>
-</div>
-</div>
+ <div class="row no-gutters">
+ <div class="col-12 text-center">
+ This page is documentation for a DEVELOPMENT / PRE-RELEASE version.
+ <a
+ class="btn version-stable font-weight-bold ml-3 my-3 align-baseline"
+ href="https://networkx.org/documentation/stable/"
+ >Switch to stable version</a
+ >
+ </div>
+ </div>
</div>
diff --git a/doc/_templates/eol_banner.html b/doc/_templates/eol_banner.html
index 7f607cc8..2f8a1df6 100644
--- a/doc/_templates/eol_banner.html
+++ b/doc/_templates/eol_banner.html
@@ -1,6 +1,11 @@
{# Creates a banner at the top of the page for EOL versions. #}
<div class="admonition note">
-<p class="admonition-title">Note</p>
- <p>This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see <a href="https://networkx.org/documentation/stable/">the current NetworkX documentation</a>.</p>
+ <p class="admonition-title">Note</p>
+ <p>
+ This documents an unmaintained version of NetworkX. Please upgrade to a
+ maintained version and see
+ <a href="https://networkx.org/documentation/stable/"
+ >the current NetworkX documentation</a
+ >.
+ </p>
</div>
-
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
index 45f314b7..b4665f6c 100644
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -1,6 +1,2 @@
-{% extends "!layout.html" %}
-
-{% block content %}
- {% include "dev_banner.html" %}
- {{ super() }}
-{% endblock %}
+{% extends "!layout.html" %} {% block content %} {% include "dev_banner.html" %}
+{{ super() }} {% endblock %}
diff --git a/doc/_templates/version.html b/doc/_templates/version.html
index 877fd146..94b91541 100644
--- a/doc/_templates/version.html
+++ b/doc/_templates/version.html
@@ -1,13 +1,22 @@
<ul class="navbar-nav">
- <li class="mr-2 dropdown">
- <button type="button" class="btn btn-version btn-sm navbar-btn dropdown-toggle" id="dLabelMore" data-toggle="dropdown">
- v{{ release }}
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu" aria-labelledby="dLabelMore">
- {%- for ver, txt in versions_dropdown.items() %}
- <li><a href="https://networkx.org/documentation/{{ ver }}/index.html">{{ txt }}</a></li>
- {%- endfor %}
- </ul>
- </li>
+ <li class="mr-2 dropdown">
+ <button
+ type="button"
+ class="btn btn-version btn-sm navbar-btn dropdown-toggle"
+ id="dLabelMore"
+ data-toggle="dropdown"
+ >
+ v{{ release }}
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" aria-labelledby="dLabelMore">
+ {%- for ver, txt in versions_dropdown.items() %}
+ <li>
+ <a href="https://networkx.org/documentation/{{ ver }}/index.html"
+ >{{ txt }}</a
+ >
+ </li>
+ {%- endfor %}
+ </ul>
+ </li>
</ul>