diff --git a/docs/js/custom.js b/docs/js/custom.js deleted file mode 100644 index bdaab5f0ef547f97482724085b35b58c304b0a80..0000000000000000000000000000000000000000 --- 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 f0b37be53f8740980ca3937dd700d58924f0f66c..664c33a8d3c5b61617ecd1b505ec6363da2f18be 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