Repository: pdfbox-docs Updated Branches: refs/heads/asf-site b6b6b4ad9 -> fb9807945
Site checkin for project Apache PDFBox Website Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/fb980794 Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/fb980794 Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/fb980794 Branch: refs/heads/asf-site Commit: fb9807945edff8c270815f8a078402a6d88f94b3 Parents: b6b6b4a Author: Maruan Sahyoun <sahy...@fileaffairs.de> Authored: Fri Dec 16 17:32:35 2016 +0100 Committer: Maruan Sahyoun <sahy...@fileaffairs.de> Committed: Fri Dec 16 17:32:35 2016 +0100 ---------------------------------------------------------------------- content/download.html | 86 ++++---- content/index.html | 27 ++- .../news/2016/12/16/pdfbox-2.0.4-released.html | 200 +++++++++++++++++++ 3 files changed, 255 insertions(+), 58 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/fb980794/content/download.html ---------------------------------------------------------------------- diff --git a/content/download.html b/content/download.html index 6a24b7b..2d8b26f 100644 --- a/content/download.html +++ b/content/download.html @@ -136,7 +136,7 @@ <p>There are several ways to obtain the PDFBox binaries or sources:</p> <ul> - <li><a href="#20x">PDFBox 2.0.3 release</a></li> + <li><a href="#20x">PDFBox 2.0.4 release</a></li> <li><a href="#18x">PDFBox 1.8.13 release</a></li> <li><a href="#oldreleases">Previous releases</a></li> <li><a href="#scm">Latest source from version control</a></li> @@ -165,72 +165,72 @@ Alternatively, <a href="http://www.apache.org/mirrors/">view the complete list o </form> <a name="20x"></a> -<h3>PDFBox 2.0.3</h3> +<h3>PDFBox 2.0.4</h3> <p>This is an incremental feature release based on the earlier `2.0.x` releases. - See the <a href="http://www.apache.org/dist/pdfbox/2.0.3/RELEASE-NOTES.txt">Release Notes</a> for more details. + See the <a href="http://www.apache.org/dist/pdfbox/2.0.4/RELEASE-NOTES.txt">Release Notes</a> for more details. </p> <ul> <li> - <a href="[preferred]pdfbox/2.0.3/pdfbox-2.0.3-src.zip">pdfbox-2.0.3-src.zip</a> 14MB, source archive - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-2.0.3-src.zip.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-2.0.3-src.zip.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-2.0.3-src.zip.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/pdfbox-2.0.4-src.zip">pdfbox-2.0.4-src.zip</a> 14MB, source archive + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-2.0.4-src.zip.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-2.0.4-src.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-2.0.4-src.zip.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/pdfbox-app-2.0.3.jar">pdfbox-app-2.0.3.jar</a> 7.9MB, pre-built PDFBox standalone binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-app-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-app-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-app-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/pdfbox-app-2.0.4.jar">pdfbox-app-2.0.4.jar</a> 7.9MB, pre-built PDFBox standalone binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-app-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-app-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-app-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/preflight-app-2.0.3.jar">preflight-app-2.0.3.jar</a> 8.5MB, pre-built Preflight standalone binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/preflight-app-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/preflight-app-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/preflight-app-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/preflight-app-2.0.4.jar">preflight-app-2.0.4.jar</a> 8.5MB, pre-built Preflight standalone binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/preflight-app-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/preflight-app-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/preflight-app-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/debugger-app-2.0.3.jar">debugger-app-2.0.3.jar</a> 7.9MB, pre-built Debugger standalone binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/debugger-app-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/debugger-app-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/debugger-app-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/debugger-app-2.0.4.jar">debugger-app-2.0.4.jar</a> 7.9MB, pre-built Debugger standalone binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/debugger-app-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/debugger-app-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/debugger-app-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/pdfbox-2.0.3.jar">pdfbox-2.0.3.jar</a> 2.4MB, pre-built binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/pdfbox-2.0.4.jar">pdfbox-2.0.4.jar</a> 2.4MB, pre-built binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/fontbox-2.0.3.jar">fontbox-2.0.3.jar</a> 1.5MB, pre-built binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/fontbox-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/fontbox-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/fontbox-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/fontbox-2.0.4.jar">fontbox-2.0.4.jar</a> 1.5MB, pre-built binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/fontbox-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/fontbox-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/fontbox-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/preflight-2.0.3.jar">preflight-2.0.3.jar</a> 242KB, pre-built binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/preflight-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/preflight-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/preflight-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/preflight-2.0.4.jar">preflight-2.0.4.jar</a> 242KB, pre-built binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/preflight-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/preflight-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/preflight-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/xmpbox-2.0.3.jar">xmpbox-2.0.3.jar</a> 131KB, pre-built binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/xmpbox-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/xmpbox-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/xmpbox-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/xmpbox-2.0.4.jar">xmpbox-2.0.4.jar</a> 131KB, pre-built binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/xmpbox-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/xmpbox-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/xmpbox-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/pdfbox-tools-2.0.3.jar">pdfbox-tools-2.0.3.jar</a> 68KB, pre-built binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-tools-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-tools-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-tools-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/pdfbox-tools-2.0.4.jar">pdfbox-tools-2.0.4.jar</a> 68KB, pre-built binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-tools-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-tools-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-tools-2.0.4.jar.sha">SHA1</a> </li> <li> - <a href="[preferred]pdfbox/2.0.3/pdfbox-debugger-2.0.3.jar">pdfbox-debugger-2.0.3.jar</a> 218KB, pre-built binary - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-debugger-2.0.3.jar.asc">PGP</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-debugger-2.0.3.jar.md5">MD5</a> - <a href="http://www.apache.org/dist/pdfbox/2.0.3/pdfbox-debugger-2.0.3.jar.sha">SHA1</a> + <a href="[preferred]pdfbox/2.0.4/pdfbox-debugger-2.0.4.jar">pdfbox-debugger-2.0.4.jar</a> 218KB, pre-built binary + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-debugger-2.0.4.jar.asc">PGP</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-debugger-2.0.4.jar.md5">MD5</a> + <a href="http://www.apache.org/dist/pdfbox/2.0.4/pdfbox-debugger-2.0.4.jar.sha">SHA1</a> </li> </ul> http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/fb980794/content/index.html ---------------------------------------------------------------------- diff --git a/content/index.html b/content/index.html index a7e60b1..fa3697d 100644 --- a/content/index.html +++ b/content/index.html @@ -140,13 +140,13 @@ Apache PDFBox also includes several command line utilities. Apache PDFBox is published under the Apache License v2.0.</p> -<h2>Apache PDFBox 1.8.13 released (2016-12-09)</h2> +<h2>Apache PDFBox 2.0.4 released (2016-12-16)</h2> <p>The Apache PDFBox community is pleased to announce the release of -Apache PDFBox version 1.8.13.</p> +Apache PDFBox version 2.0.4. It is available for download at:</p> -<p>The release is available for download at: <a href="http://pdfbox.apache.org/download.cgi">http://pdfbox.apache.org/download.cgi</a></p> +<p><a href="http://pdfbox.apache.org/download.cgi">http://pdfbox.apache.org/download.cgi</a></p> -<p>See the <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12335586">full release notes</a> for details about this release.</p> +<p>See the <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12336070">full release notes</a> for details about this release.</p> <h2 id="getting-help">Getting Help</h2> @@ -199,6 +199,14 @@ skills. Subscribe to the <a href="/mailinglists.html">Mailing Lists</a> and find <h2 id="news">News</h2> +<h3>Apache PDFBox 1.8.13 released (2016-12-09) </h3> +<p>The Apache PDFBox community is pleased to announce the release of +Apache PDFBox version 1.8.13.</p> + +<p>The release is available for download at: <a href="http://pdfbox.apache.org/download.cgi">http://pdfbox.apache.org/download.cgi</a></p> + +<p>See the <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12335586">full release notes</a> for details about this release.</p> + <h3>Apache PDFBox 2.0.3 released (2016-09-17) </h3> <p>The Apache PDFBox community is pleased to announce the release of Apache PDFBox version 2.0.3. It is available for download at:</p> @@ -232,17 +240,6 @@ Apache PDFBox version 1.8.12 and 2.0.1. They are available for download at:</p> <p>See the full release notes <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12334652">1.8.12</a> and <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12335342">2.0.1</a> for details about this release.</p> -<h3>Apache PDFBox 2.0.0 released (2016-03-18) </h3> -<p>After more than 3 years of development the Apache PDFBox community is pleased to -announce the release of Apache PDFBox version 2.0.0. It is available for download at:</p> - -<p><a href="http://pdfbox.apache.org/download.cgi">http://pdfbox.apache.org/download.cgi</a></p> - -<p>The <a href="http://pdfbox.apache.org/2.0/migration.html">Migration Guide</a> shall give users coming from -PDFBox 1.8 or earlier an overview about things to look at when switching over. More details to come.</p> - -<p>See the <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12319281">full release notes</a> for details about this release.</p> - </div> </div> http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/fb980794/content/news/2016/12/16/pdfbox-2.0.4-released.html ---------------------------------------------------------------------- diff --git a/content/news/2016/12/16/pdfbox-2.0.4-released.html b/content/news/2016/12/16/pdfbox-2.0.4-released.html new file mode 100644 index 0000000..3716c6a --- /dev/null +++ b/content/news/2016/12/16/pdfbox-2.0.4-released.html @@ -0,0 +1,200 @@ +<!DOCTYPE html> +<html lang="en"> + +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE- 2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> + +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content="The Apache PDFBox⢠library is an open source Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. Apache PDFBox also includes several command line utilities. Apache PDFBox is published under the Apache License v2.0. +"> + + <title>Apache PDFBox | Apache PDFBox 2.0.4 released</title> + + <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet"> + <link href="/css/pygments-github.css" rel="stylesheet"> + + <link href="/css/site.css" rel="stylesheet"> + + + + + + + +</head> + +<body> + <nav class="navbar navbar-default navbar-top"> + <div class="container"> + <div class="navbar-header"> + <a href="/index.html"> + <img class="logo" src="/images/logo-head.gif"> + </a> + <p class="pull-right visible-xs"> + <button type="button" class="btn btn-primary btn-sm" data-toggle="offcanvas">Menu</button> + </p> + </div> + </div> + </nav> + + <div class="container"> + + <div class="row row-offcanvas row-offcanvas-left"> + <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar"> + + <ul class="sidebar"> + <li class="sidebar-header">Apache PDFBox</li> + <li><a href="/index.html">Overview</a></li> + <li><a href="/download.cgi">Downloads</a></li> + + <li class="sidebar-header">Community</li> + <li><a href="/support.html">Support</a></li> + <li><a href="/mailinglists.html">Mailing Lists</a></li> + <li><a href="/team.html">Project Team</a></li> + + <li class="sidebar-header">Documentation</li> + <li class="sidebar-node" id="v2-0"> + <a href="#">2.0</a> + <ul> + <li><a href="/2.0/migration.html">Migration Guide</a></li> + <li><a href="/2.0/getting-started.html">Getting Started</a></li> + <li><a href="/2.0/examples.html">Examples</a></li> + <li><a href="/2.0/dependencies.html">Dependencies</a></li> + <li class="sidebar-node" id="v2-0-cookbook"> + <a href="#">Cookbook</a> + <ul> + <li><a href="/2.0/cookbook/encryption.html">Document Encryption</a></li> + </ul> + </li> + <li><a href="/2.0/commandline.html">Command Line Tools</a></li> + <li><a href="/2.0/faq.html">FAQ</a></li> + <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li> + </ul> + </li> + <li class="sidebar-node" id="v1-8"> + <a href="#">1.8</a> + <ul> + <li><a href="/1.8/architecture.html">Architecture</a></li> + <li><a href="/1.8/dependencies.html">Dependencies</a></li> + <li class="sidebar-node" id="v1-8-cookbook"> + <a href="#">Cookbook</a> + <ul> + <li><a href="/1.8/cookbook/documentcreation.html">Document Creation</a></li> + <li><a href="/1.8/cookbook/textextraction.html">Text Extraction</a></li> + <li><a href="/1.8/cookbook/encryption.html">Document Encryption</a></li> + <li><a href="/1.8/cookbook/workingwithfonts.html">Working with Fonts</a></li> + <li><a href="/1.8/cookbook/workingwithmetadata.html">Working with Metadata</a></li> + <li><a href="/1.8/cookbook/workingwithattachments.html">Working with Attachments</a></li> + <li><a href="/1.8/cookbook/pdfavalidation.html">PDF/A Validation</a></li> + <li><a href="/1.8/cookbook/pdfacreation.html">Creating a PDF/A document</a></li> + </ul> + </li> + <li><a href="/1.8/commandline.html">Command Line Tools</a></li> + <li><a href="/docs/1.8.12/javadocs/">API Docs</a></li> + <li><a href="/1.8/faq.html">FAQ</a></li> + </ul> + </li> + + <li class="sidebar-header">Development</li> + <li><a href="/building.html">Building from Source</a></li> + <li><a href="/codingconventions.html">Coding Conventions</a></li> + <li><a href="/siteupdate.html">Update the Website</a></li> + <li><a href="https://builds.apache.org/view/All/job/PDFBox-trunk/">Jenkins</a></li> + <li><a href="https://travis-ci.org/apache/pdfbox">Travis CI</a></li> + <li><a href="https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor">SonarQube</a></li> + <li><a href="https://issues.apache.org/jira/browse/PDFBOX">JIRA</a></li> + <li><a href="/ideas.html">Ideas</a></li> + <li><a href="/references.html">External Links</a></li> + + <li class="sidebar-header">Apache Software Foundation</li> + <li><a href="http://www.apache.org/">Apache Software Foundation</a></li> + <li><a href="http://www.apache.org/foundation/thanks.html">ASF Sponsors</a></li> + <li><a href="http://www.apache.org/security/">Security</a></li> + </ul> + </div> + <div class="col-xs-12 col-sm-9"> + <p>The Apache PDFBox community is pleased to announce the release of +Apache PDFBox version 2.0.4. It is available for download at:</p> + +<p><a href="http://pdfbox.apache.org/download.cgi">http://pdfbox.apache.org/download.cgi</a></p> + +<p>See the <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310760&version=12336070">full release notes</a> for details about this release.</p> + + </div> + </div> + </div> + + <footer class="footer"> + <div class="container"> + <div class="row"> + <div class="span3"> + <!-- nothing in here on purpose --> + </div> + <div class="span9"> + <p>Copyright © 2009–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>. + <br/>Apache PDFBox, PDFBox, Apache, the Apache feather logo and the Apache PDFBox project logos are trademarks of The Apache Software Foundation.</p> + </div> + </div> + </div> + </footer> + + <!-- Twitter Bootstrap and jQuery after this line. --> + <script src="//code.jquery.com/jquery-latest.js"></script> + <script src="/bootstrap/js/bootstrap.min.js"></script> + <script type="text/javascript"> + + $(document).ready(function () { + $('[data-toggle="offcanvas"]').click(function () { + $('.row-offcanvas').toggleClass('active') + }); + }); + + $(function() { + // collapse tree nodes dynamically to support noscript + $('.sidebar-node').addClass('collapsed'); + + + // toggle expand/collapse + $('.sidebar-node > a').click(function(e) { + $(this).parent().toggleClass('collapsed'); + e.preventDefault(); + }); + + // 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'); + } + } + + }); + </script> + +</body> + +</html> \ No newline at end of file