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 2018/03/29 16:53:21 UTC
pdfbox-docs git commit: PDFBOX-3330: move common code to includes
Repository: pdfbox-docs
Updated Branches:
refs/heads/master 58e292c37 -> 386f163ba
PDFBOX-3330: move common code to includes
Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/386f163b
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/386f163b
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/386f163b
Branch: refs/heads/master
Commit: 386f163ba9e51309ecf478ac2437f6a786237305
Parents: 58e292c
Author: Maruan Sahyoun <sa...@fileaffairs.de>
Authored: Thu Mar 29 18:52:14 2018 +0200
Committer: Maruan Sahyoun <sa...@fileaffairs.de>
Committed: Thu Mar 29 18:52:14 2018 +0200
----------------------------------------------------------------------
content/_includes/footer.html | 13 ++++
content/_includes/footer_scripts.html | 38 ++++++++++++
content/_includes/head.html | 25 ++++++++
content/_includes/header.html | 16 +++++
content/_layouts/default.html | 97 +++---------------------------
content/blog.md | 28 +++++++++
content/css/site.css | 37 +++++++++++-
7 files changed, 163 insertions(+), 91 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/_includes/footer.html
----------------------------------------------------------------------
diff --git a/content/_includes/footer.html b/content/_includes/footer.html
new file mode 100644
index 0000000..99a4be9
--- /dev/null
+++ b/content/_includes/footer.html
@@ -0,0 +1,13 @@
+<footer class="footer">
+ <div class="container">
+ <div class="row">
+ <div class="span3">
+ <!-- nothing in here on purpose -->
+ </div>
+ <div class="span9">
+ <p>Copyright © 2009–{{ site.time | date: '%Y' }} <a href="https://www.apache.org/">The Apache Software Foundation</a>. Licensed under the <a href="https://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>
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/_includes/footer_scripts.html
----------------------------------------------------------------------
diff --git a/content/_includes/footer_scripts.html b/content/_includes/footer_scripts.html
new file mode 100644
index 0000000..30a3388
--- /dev/null
+++ b/content/_includes/footer_scripts.html
@@ -0,0 +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 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>
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/_includes/head.html
----------------------------------------------------------------------
diff --git a/content/_includes/head.html b/content/_includes/head.html
new file mode 100644
index 0000000..ea83f4a
--- /dev/null
+++ b/content/_includes/head.html
@@ -0,0 +1,25 @@
+<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="{{site.description}}">
+
+ <title>Apache PDFBox | {% if page.title %}{{ page.title }}{% endif %}</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">
+
+ {% if headers.atom %}
+ <link rel="alternate" href="{{ headers.atom.url }}" type="application/atom+xml" title="{{ headers.atom.title }}" />
+ {% endif %}
+
+ {% if headers.base %}
+ <base href="{{ headers.base }}" />
+ {% endif %}
+
+ {% if headers.notice %}
+ <!-- {{ headers.notice }} -->
+ {% endif %}
+
+</head>
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/_includes/header.html
----------------------------------------------------------------------
diff --git a/content/_includes/header.html b/content/_includes/header.html
new file mode 100644
index 0000000..3d9c22d
--- /dev/null
+++ b/content/_includes/header.html
@@ -0,0 +1,16 @@
+<header class="main-header">
+ <div class="main-header-logo">
+ <a href="/">
+ {% include images/pdfbox-toolbox.svg %}
+ {% include images/pdfbox-text.svg %}
+ </a>
+ </div>
+ <nav class="wrapper">
+ <input type="checkbox" id="menu-toggle" />
+ <label for="menu-toggle" class="label-toggle"></label>
+ <ul>
+ <li><a href="/blog">Blog</a></li>
+ </ul>
+ </nav>
+ </container>
+</header>
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/_layouts/default.html
----------------------------------------------------------------------
diff --git a/content/_layouts/default.html b/content/_layouts/default.html
index f2f50e4..65e0cb9 100644
--- a/content/_layouts/default.html
+++ b/content/_layouts/default.html
@@ -19,46 +19,11 @@
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="{{site.description}}">
-
- <title>Apache PDFBox | {% if page.title %}{{ page.title }}{% endif %}</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">
-
- {% if headers.atom %}
- <link rel="alternate" href="{{ headers.atom.url }}" type="application/atom+xml" title="{{ headers.atom.title }}" />
- {% endif %}
-
- {% if headers.base %}
- <base href="{{ headers.base }}" />
- {% endif %}
-
- {% if headers.notice %}
- <!-- {{ headers.notice }} -->
- {% endif %}
-
-</head>
+{% include head.html %}
<body>
- <nav class="navbar navbar-default navbar-top">
- <div class="container">
- <div class="navbar-header">
- <a href="/">
- {% include images/pdfbox-toolbox.svg %}
- {% include images/pdfbox-text.svg %}
- </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>
+
+ {% include header.html %}
<div class="container">
@@ -145,58 +110,10 @@
</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–{{ site.time | date: '%Y' }} <a href="https://www.apache.org/">The Apache Software Foundation</a>. Licensed under the <a href="https://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.min.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>
+ {% include footer.html %}
+
+ {% include footer_scripts.html %}
+
</body>
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/blog.md
----------------------------------------------------------------------
diff --git a/content/blog.md b/content/blog.md
new file mode 100644
index 0000000..4bb6c57
--- /dev/null
+++ b/content/blog.md
@@ -0,0 +1,28 @@
+---
+license: 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.
+
+layout: default
+title: Blog
+---
+
+# Blog
+
+{% for post in site.posts %}
+<h2>{{ post.title }}<br><small>{{ post.date | date: "%Y-%m-%d"}}</small></h2>
+{{ post.content }}
+{% endfor %}
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/386f163b/content/css/site.css
----------------------------------------------------------------------
diff --git a/content/css/site.css b/content/css/site.css
index 513c1ae..e93f482 100644
--- a/content/css/site.css
+++ b/content/css/site.css
@@ -22,10 +22,11 @@
*/
/* 01 Import Fonts */
+@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600');
@import url("https://fonts.googleapis.com/css?family=Inconsolata:400,700");
body {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
+ font-family: "Open Sans", sans-serif;
font-size: 16px;
line-height: 1.5;
color: rgb(0,0,0);
@@ -35,6 +36,40 @@ body > .container {
padding-top: 20px;
}
+.main-header {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ padding: 0.5em 1em;
+ background-color: #34a5da;
+ border: none;
+ border-radius: 0;
+}
+
+.main-header nav {
+ align-self: center;
+ margin: 0 0.8em 0 0;
+}
+
+.main-header ul {
+ display: flex;
+ justify-content: space-between;
+ list-style-type: none;
+ width: 50%;
+}
+
+.main-header li > a {
+ color: white;
+ font-weight: 600;
+ display: inline-block;
+ text-transform: uppercase;
+}
+
+#menu-toggle {display: none;}
+.label-toggle {display: none;}
+
+
+
.navbar-default {
background-color: #34a5da;
border: none;