From b940a16098ce83ae2cf895832281bb5450847d53 Mon Sep 17 00:00:00 2001
From: Sean Madsen <sean@seanmadsen.com>
Date: Fri, 3 Feb 2017 21:15:18 -0700
Subject: [PATCH] removing custom js that we used for the readthedocs theme

---
 docs/js/custom.js | 26 --------------------------
 mkdocs.yml        |  2 --
 2 files changed, 28 deletions(-)
 delete mode 100644 docs/js/custom.js

diff --git a/docs/js/custom.js b/docs/js/custom.js
deleted file mode 100644
index bdaab5f0..00000000
--- a/docs/js/custom.js
+++ /dev/null
@@ -1,26 +0,0 @@
-$(function() {
-
-  // Automatically scroll the navigation menu to the active element
-  //   https://github.com/civicrm/civicrm-dev-docs/issues/21
-  $.fn.isFullyWithinViewport = function(){
-      var viewport = {};
-      viewport.top = $(window).scrollTop();
-      viewport.bottom = viewport.top + $(window).height();
-      var bounds = {};
-      bounds.top = this.offset().top;
-      bounds.bottom = bounds.top + this.outerHeight();
-      return ( ! (
-        (bounds.top <= viewport.top) ||
-        (bounds.bottom >= viewport.bottom)
-      ) );
-  };
-  if( !$('li.toctree-l1.current').isFullyWithinViewport() ) {
-    $('.wy-nav-side')
-      .scrollTop(
-        $('li.toctree-l1.current').offset().top -
-        $('.wy-nav-side').offset().top -
-        60
-      );
-  }
-
-});
diff --git a/mkdocs.yml b/mkdocs.yml
index f0b37be5..664c33a8 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -3,8 +3,6 @@ repo_url: https://github.com/civicrm/civicrm-dev-docs
 site_description: A guide for CiviCRM developers.
 site_author: The CiviCRM community
 theme: material
-extra_javascript:
-  - js/custom.js
 markdown_extensions:
   - attr_list
   - admonition
-- 
GitLab