summaryrefslogtreecommitdiff
path: root/docs/_static
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-07-07 15:04:41 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-07-09 20:07:25 -0500
commit7be287ec477e38b3611e35ab23123d8b00d10593 (patch)
tree3aa10e3957d7065f8c23cb7d5a750e326f247071 /docs/_static
parentb4766ff2c2b5c6cf637cac163b39d7adc499faaa (diff)
downloadrequests-cache-7be287ec477e38b3611e35ab23123d8b00d10593.tar.gz
Convert docs from rST to MyST, and switch to Furo theme
Diffstat (limited to 'docs/_static')
-rw-r--r--docs/_static/.empty0
-rw-r--r--docs/_static/collapsible_container.css2
-rw-r--r--docs/_static/collapsible_container.js11
3 files changed, 12 insertions, 1 deletions
diff --git a/docs/_static/.empty b/docs/_static/.empty
deleted file mode 100644
index e69de29..0000000
--- a/docs/_static/.empty
+++ /dev/null
diff --git a/docs/_static/collapsible_container.css b/docs/_static/collapsible_container.css
index 65542e2..bcad629 100644
--- a/docs/_static/collapsible_container.css
+++ b/docs/_static/collapsible_container.css
@@ -1,7 +1,7 @@
/* Taken from: https://github.com/plone/training/blob/master/_static/custom.css */
.toggle {
- background: none repeat scroll 0 0 #e7f2fa;
+ /* background: none repeat scroll 0 0 #e7f2fa; */
padding: 12px;
line-height: 24px;
margin-bottom: 24px;
diff --git a/docs/_static/collapsible_container.js b/docs/_static/collapsible_container.js
new file mode 100644
index 0000000..022508f
--- /dev/null
+++ b/docs/_static/collapsible_container.js
@@ -0,0 +1,11 @@
+// Taken from: https://github.com/plone/training/blob/master/_templates/page.html
+
+$(document).ready(function() {
+ $(".toggle > *").hide();
+ $(".toggle .admonition-title").show();
+ $(".toggle .admonition-title").click(function() {
+ $(this).parent().children().not(".admonition-title").toggle(400);
+ $(this).parent().children(".admonition-title").toggleClass("open");
+ })
+});
+