Updated pandoc task.
This commit is contained in:
parent
26e5afa5d3
commit
90dd1dfc5d
2 changed files with 27 additions and 53 deletions
78
README.html
78
README.html
|
@ -6,76 +6,54 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
<title></title>
|
<title></title>
|
||||||
<style type="text/css">code{white-space: pre;}</style>
|
<style type="text/css">code{white-space: pre;}</style>
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
div.sourceCode { overflow-x: auto; }
|
|
||||||
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
|
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
|
||||||
margin: 0; padding: 0; vertical-align: baseline; border: none; }
|
margin: 0; padding: 0; vertical-align: baseline; border: none; }
|
||||||
table.sourceCode { width: 100%; line-height: 100%; }
|
table.sourceCode { width: 100%; line-height: 100%; }
|
||||||
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
|
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
|
||||||
td.sourceCode { padding-left: 5px; }
|
td.sourceCode { padding-left: 5px; }
|
||||||
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
|
code > span.kw { color: #007020; font-weight: bold; }
|
||||||
code > span.dt { color: #902000; } /* DataType */
|
code > span.dt { color: #902000; }
|
||||||
code > span.dv { color: #40a070; } /* DecVal */
|
code > span.dv { color: #40a070; }
|
||||||
code > span.bn { color: #40a070; } /* BaseN */
|
code > span.bn { color: #40a070; }
|
||||||
code > span.fl { color: #40a070; } /* Float */
|
code > span.fl { color: #40a070; }
|
||||||
code > span.ch { color: #4070a0; } /* Char */
|
code > span.ch { color: #4070a0; }
|
||||||
code > span.st { color: #4070a0; } /* String */
|
code > span.st { color: #4070a0; }
|
||||||
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
|
code > span.co { color: #60a0b0; font-style: italic; }
|
||||||
code > span.ot { color: #007020; } /* Other */
|
code > span.ot { color: #007020; }
|
||||||
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
|
code > span.al { color: #ff0000; font-weight: bold; }
|
||||||
code > span.fu { color: #06287e; } /* Function */
|
code > span.fu { color: #06287e; }
|
||||||
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
|
code > span.er { color: #ff0000; font-weight: bold; }
|
||||||
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
|
|
||||||
code > span.cn { color: #880000; } /* Constant */
|
|
||||||
code > span.sc { color: #4070a0; } /* SpecialChar */
|
|
||||||
code > span.vs { color: #4070a0; } /* VerbatimString */
|
|
||||||
code > span.ss { color: #bb6688; } /* SpecialString */
|
|
||||||
code > span.im { } /* Import */
|
|
||||||
code > span.va { color: #19177c; } /* Variable */
|
|
||||||
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
|
|
||||||
code > span.op { color: #666666; } /* Operator */
|
|
||||||
code > span.bu { } /* BuiltIn */
|
|
||||||
code > span.ex { } /* Extension */
|
|
||||||
code > span.pp { color: #bc7a00; } /* Preprocessor */
|
|
||||||
code > span.at { color: #7d9029; } /* Attribute */
|
|
||||||
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
|
|
||||||
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
|
|
||||||
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
|
|
||||||
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
|
|
||||||
</style>
|
</style>
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="httpstatus-jsp-tag-library">HttpStatus JSP Tag Library</h1>
|
<h1 id="httpstatus-jsp-tag-library">HttpStatus JSP Tag Library</h1>
|
||||||
<p><a href="http://opensource.org/licenses/BSD-3-Clause"><img src="https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square" alt="License (3-Clause BSD)" /></a> <a href="https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a"><img src="https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a/badge.svg?style=flat" alt="Dependency Status" /></a> <a href="https://travis-ci.org/ethauvin/HttpStatus"><img src="https://travis-ci.org/ethauvin/HttpStatus.svg?branch=master" alt="Build Status" /></a> <a href="https://ci.appveyor.com/project/ethauvin/httpstatus"><img src="https://ci.appveyor.com/api/projects/status/w5j4kul3w2rkigxb?svg=true" alt="Build status" /></a> <a href="https://github.com/ethauvin/httpstatus/releases/latest"><img src="http://github-release-version.herokuapp.com/github/ethauvin/httpstatus/release.svg?style=flat" alt="release" /></a> <a href="https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus"><img src="https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus/badge.svg" alt="Maven Central" /></a> <a href="https://bintray.com/ethauvin/maven/HttpStatus/_latestVersion"><img src="https://api.bintray.com/packages/ethauvin/maven/HttpStatus/images/download.svg" alt="Download" /></a></p>
|
<p><a href="http://opensource.org/licenses/BSD-3-Clause"><embed src="https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square" /></a> <a href="https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a"><embed src="https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a/badge.svg?style=flat" /></a> <a href="https://travis-ci.org/ethauvin/HttpStatus"><embed src="https://travis-ci.org/ethauvin/HttpStatus.svg?branch=master" /></a> <a href="https://ci.appveyor.com/project/ethauvin/httpstatus"><img src="https://ci.appveyor.com/api/projects/status/w5j4kul3w2rkigxb?svg=true" alt="Build status" /></a> <a href="https://github.com/ethauvin/httpstatus/releases/latest"><embed src="http://github-release-version.herokuapp.com/github/ethauvin/httpstatus/release.svg?style=flat" /></a> <a href="https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus"><img src="https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus/badge.svg" alt="Maven Central" /></a> <a href="https://bintray.com/ethauvin/maven/HttpStatus/_latestVersion"><img src="https://api.bintray.com/packages/ethauvin/maven/HttpStatus/images/download.svg" alt="Download" /></a></p>
|
||||||
<p>A simple <a href="http://www.oracle.com/technetwork/java/javaee/jsp/index.html">JSP</a> Tag Library to display the <a href="#hscode">code</a>, <a href="#hsreason">reason</a> and/or <a href="#hscode">cause</a> for <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP status codes</a> in JSP error pages.</p>
|
<p>A simple <a href="http://www.oracle.com/technetwork/java/javaee/jsp/index.html">JSP</a> Tag Library to display the <a href="#hscode">code</a>, <a href="#hsreason">reason</a> and/or <a href="#hscode">cause</a> for <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP status codes</a> in JSP error pages.</p>
|
||||||
<hr />
|
<hr />
|
||||||
<p>For example:</p>
|
<p>For example:</p>
|
||||||
<div class="sourceCode"><pre class="sourceCode jsp"><code class="sourceCode jsp"><%@ page<span class="ot"> isErrorPage</span>=<span class="st">"true"</span><span class="ot"> </span>%>
|
<pre class="sourceCode jsp"><code class="sourceCode jsp"><%@ page<span class="ot"> isErrorPage</span>=<span class="st">"true"</span><span class="ot"> </span>%>
|
||||||
<%@ taglib<span class="ot"> prefix</span>=<span class="st">"hs"</span><span class="ot"> uri</span>=<span class="st">"http://erik.thauvin.net/taglibs/httpstatus"</span><span class="ot"> </span>%>
|
<%@ taglib<span class="ot"> prefix</span>=<span class="st">"hs"</span><span class="ot"> uri</span>=<span class="st">"http://erik.thauvin.net/taglibs/httpstatus"</span><span class="ot"> </span>%>
|
||||||
<html><head>
|
<html><head>
|
||||||
<title><span class="kw"><hs:code/></span> <span class="kw"><hs:reason</span><span class="ot"> default</span>=<span class="dt">"Server Error"</span><span class="kw">/></span></title>
|
<title><span class="kw"><hs:code/></span> <span class="kw"><hs:reason</span><span class="ot"> default</span>=<span class="dt">"Server Error"</span><span class="kw">/></span></title>
|
||||||
</head>
|
</head>
|
||||||
<h1><span class="kw"><hs:reason</span><span class="ot"> default</span>=<span class="dt">"Server Error"</span><span class="kw">/></span></h1>
|
<h1><span class="kw"><hs:reason</span><span class="ot"> default</span>=<span class="dt">"Server Error"</span><span class="kw">/></span></h1>
|
||||||
Cause: <pre><span class="kw"><hs:cause</span><span class="ot"> default</span>=<span class="dt">"Unable to complete your request."</span><span class="kw">/></span></pre>
|
Cause: <pre><span class="kw"><hs:cause</span><span class="ot"> default</span>=<span class="dt">"Unable to complete your request."</span><span class="kw">/></span></pre>
|
||||||
...</code></pre></div>
|
...</code></pre>
|
||||||
<p>or</p>
|
<p>or</p>
|
||||||
<div class="sourceCode"><pre class="sourceCode jsp"><code class="sourceCode jsp"><%@ page<span class="ot"> isErrorPage</span>=<span class="st">"true"</span><span class="ot"> import</span>=<span class="st">"net.thauvin.erik.httpstatus.Reasons"</span><span class="ot"> </span>%>
|
<pre class="sourceCode jsp"><code class="sourceCode jsp"><%@ page<span class="ot"> isErrorPage</span>=<span class="st">"true"</span><span class="ot"> import</span>=<span class="st">"net.thauvin.erik.httpstatus.Reasons"</span><span class="ot"> </span>%>
|
||||||
<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %></code></pre></div>
|
<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %></code></pre>
|
||||||
<p>would display on a <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2">501 status code</a>:</p>
|
<p>would display on a <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2">501 status code</a>:</p>
|
||||||
<pre><code>Not Implemented</code></pre>
|
<pre><code>Not Implemented</code></pre>
|
||||||
<hr />
|
<hr />
|
||||||
<h2 id="hscause">hs:cause</h2>
|
<h2 id="hscause">hs:cause</h2>
|
||||||
<p>The <code><hs:cause/></code> tag displays the cause of current HTTP status code, if any. A shorthand for:</p>
|
<p>The <code><hs:cause/></code> tag displays the cause of current HTTP status code, if any. A shorthand for:</p>
|
||||||
<div class="sourceCode"><pre class="sourceCode jsp"><code class="sourceCode jsp"><%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %></code></pre></div>
|
<pre class="sourceCode jsp"><code class="sourceCode jsp"><%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %></code></pre>
|
||||||
<p>Optional attributes are:</p>
|
<p>Optional attributes are:</p>
|
||||||
<table style="width:144%;">
|
<table>
|
||||||
<colgroup>
|
|
||||||
<col style="width: 16%" />
|
|
||||||
<col style="width: 127%" />
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
<th style="text-align: left;">Attribute</th>
|
<th style="text-align: left;">Attribute</th>
|
||||||
|
@ -95,14 +73,10 @@ Cause: <pre><span class="kw"><hs:cause</span><span class="ot"> default<
|
||||||
</table>
|
</table>
|
||||||
<h2 id="hscode">hs:code</h2>
|
<h2 id="hscode">hs:code</h2>
|
||||||
<p>The <code><hs:code/></code> tag displays the current HTTP status code, if any. A shorthand for:</p>
|
<p>The <code><hs:code/></code> tag displays the current HTTP status code, if any. A shorthand for:</p>
|
||||||
<div class="sourceCode"><pre class="sourceCode jsp"><code class="sourceCode jsp"><%= pageContext.getErrorData().getStatusCode() %></code></pre></div>
|
<pre class="sourceCode jsp"><code class="sourceCode jsp"><%= pageContext.getErrorData().getStatusCode() %></code></pre>
|
||||||
<h2 id="hsreason">hs:reason</h2>
|
<h2 id="hsreason">hs:reason</h2>
|
||||||
<p>The <code><hs:reason/></code> tag displays the reason for a HTTP status code, if any. Optional attributes are:</p>
|
<p>The <code><hs:reason/></code> tag displays the reason for a HTTP status code, if any. Optional attributes are:</p>
|
||||||
<table style="width:144%;">
|
<table>
|
||||||
<colgroup>
|
|
||||||
<col style="width: 16%" />
|
|
||||||
<col style="width: 127%" />
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
<th style="text-align: left;">Attribute</th>
|
<th style="text-align: left;">Attribute</th>
|
||||||
|
@ -454,10 +428,10 @@ Cause: <pre><span class="kw"><hs:cause</span><span class="ot"> default<
|
||||||
compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.3'
|
compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.3'
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
<p>or as a Maven artifact:</p>
|
<p>or as a Maven artifact:</p>
|
||||||
<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><dependency></span>
|
<pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><dependency></span>
|
||||||
<span class="kw"><groupId></span>net.thauvin.erik.httpstatus<span class="kw"></groupId></span>
|
<span class="kw"><groupId></span>net.thauvin.erik.httpstatus<span class="kw"></groupId></span>
|
||||||
<span class="kw"><artifactId></span>httpstatus<span class="kw"></artifactId></span>
|
<span class="kw"><artifactId></span>httpstatus<span class="kw"></artifactId></span>
|
||||||
<span class="kw"><version></span>1.0.3<span class="kw"></version></span>
|
<span class="kw"><version></span>1.0.3<span class="kw"></version></span>
|
||||||
<span class="kw"></dependency></span></code></pre></div>
|
<span class="kw"></dependency></span></code></pre>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -223,7 +223,7 @@ task pandoc(type: Exec) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
executable '/usr/local/bin/pandoc'
|
executable 'pandoc'
|
||||||
args pandoc_args
|
args pandoc_args
|
||||||
}
|
}
|
||||||
standardOutput = new ByteArrayOutputStream()
|
standardOutput = new ByteArrayOutputStream()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue