You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2020/06/30 10:02:27 UTC

[pdfbox-docs] branch master updated (fa4e309 -> cdbc942)

This is an automated email from the ASF dual-hosted git repository.

msahyoun pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git.


    from fa4e309  PDFBOX-4848: remove no longer needed dummy yaml header
     new d48ae60  PDFBOX-3330: remove jquery and bootsrap.js dependency
     new cdbc942  PDFBOX-4848: update node.js dependency to latest LTS version

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 content/_includes/footer_scripts.html | 64 +++++++++++++++++------------------
 pom.xml                               |  2 +-
 2 files changed, 33 insertions(+), 33 deletions(-)


[pdfbox-docs] 02/02: PDFBOX-4848: update node.js dependency to latest LTS version

Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

msahyoun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git

commit cdbc942532b0538d743d0fbd4c531887c55887ab
Author: Maruan Sahyoun <sa...@fileaffairs.de>
AuthorDate: Tue Jun 30 12:00:51 2020 +0200

    PDFBOX-4848: update node.js dependency to latest LTS version
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 5b464f6..6153d1b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
             <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
             <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
             <git.scmContentUrl>git:https://gitbox.apache.org/repos/asf/pdfbox-docs.git</git.scmContentUrl>
-            <node.version>v10.15.3</node.version>
+            <node.version>v12.18.1</node.version>
         </properties>
 
         <build>


[pdfbox-docs] 01/02: PDFBOX-3330: remove jquery and bootsrap.js dependency

Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

msahyoun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git

commit d48ae6001bb89b822b0b3533884b9033445edc94
Author: Maruan Sahyoun <sa...@fileaffairs.de>
AuthorDate: Tue Jun 30 11:58:35 2020 +0200

    PDFBOX-3330: remove jquery and bootsrap.js dependency
---
 content/_includes/footer_scripts.html | 64 +++++++++++++++++------------------
 1 file changed, 32 insertions(+), 32 deletions(-)

diff --git a/content/_includes/footer_scripts.html b/content/_includes/footer_scripts.html
index 5242307..6416916 100644
--- a/content/_includes/footer_scripts.html
+++ b/content/_includes/footer_scripts.html
@@ -1,38 +1,38 @@
-<!-- Twitter Bootstrap and jQuery after this line. -->
-<script src="//code.jquery.com/jquery-latest.min.js"></script>
-<script src="/bootstrap/js/bootstrap.min.js"></script>
-<script >
+<script>
 
-    $(document).ready(function () {
-            $('[data-toggle="offcanvas"]').click(function () {
-            $('.row-offcanvas').toggleClass('active')
-        });
-    });
+    function addCollapsed(el) {
+        el.classList.add('collapsed');
+    }
 
-    $(function() {
-        // collapse tree nodes dynamically to support noscript
-        $('.sidebar-node').addClass('collapsed');
+    function toggleCollapsed(ev) {
+        ev.target.parentNode.classList.toggle('collapsed');
+        ev.preventDefault();
+    }
 
+    function addClickEvent(el) {
+        console.log(el);
+        el.addEventListener('click', toggleCollapsed);
+    }
 
-        // toggle expand/collapse
-        $('.sidebar-node > a').click(function(e) {
-            $(this).parent().toggleClass('collapsed');
-            e.preventDefault();
-        });
+    document.querySelectorAll('.sidebar-node').forEach(addCollapsed);
+    document.querySelectorAll('.sidebar-node > a').forEach(addClickEvent);
 
-        // preserve expand/collapse across page navigation
-        var path = document.location.pathname;
-        if (path.indexOf('/1.8') == 0) {
-            $('#v1-8').removeClass('collapsed');
-            if (path.indexOf('/1.8/cookbook') == 0) {
-                $('#v1-8-cookbook').removeClass('collapsed');
-            }
-        } else {
-            $('#v2-0').removeClass('collapsed');
-            if (path.indexOf('/2.0/cookbook') == 0) {
-                $('#v2-0-cookbook').removeClass('collapsed');
-            }
+    // preserve expand/collapse across page navigation
+    var path = document.location.pathname;
+    if (path.indexOf('/1.8') == 0) {
+        var el = document.getElementById("#v1-8");
+        el.classList.toggle("collapsed");
+        if (path.indexOf('/1.8/cookbook') == 0) {
+            el = document.getElementById('v1-8-cookbook');
+            el.classList.remove('collapsed');
         }
-
-    });
-</script>
+    } else {
+        var el = document.getElementById("v2-0");
+        console.log(el);
+        el.classList.remove("collapsed");
+        if (path.indexOf('/2.0/cookbook') == 0) {
+            el = document.getElementById('#v2-0-cookbook');
+            el.classList.remove('collapsed');
+        }
+    }
+</script>
\ No newline at end of file