You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2017/09/08 13:36:19 UTC

[opennlp] branch master updated: OPENNLP-1127 fix CSS for code tags, hide badgets, and update the overall look of the output HTML.

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

joern pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/master by this push:
     new e0b8c22  OPENNLP-1127 fix CSS for code tags, hide badgets, and update the overall look of the output HTML.
e0b8c22 is described below

commit e0b8c22a73ca3b3deeb2d2c9473631d8dfb938f4
Author: Bruno P. Kinoshita <br...@yahoo.com.br>
AuthorDate: Wed Sep 6 22:57:09 2017 +1200

    OPENNLP-1127 fix CSS for code tags, hide badgets, and update the overall look of the output HTML.
---
 README.md                        | 19 ++++++++-----------
 opennlp-distr/README_FOOTER.html |  2 ++
 opennlp-distr/README_HEADER.html | 29 +++++++++++++++++++++++++----
 opennlp-distr/pom.xml            |  4 ++++
 4 files changed, 39 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index ccd1308..50d4f77 100644
--- a/README.md
+++ b/README.md
@@ -61,22 +61,18 @@ You can also follow our [mailing lists](http://opennlp.apache.org/mailing-lists.
 
 Currently the library has different packages:
 
-`opennlp-tools` : The core toolkit.
-
-`opennlp-uima` : A set of [Apache UIMA](https://uima.apache.org) annotators.
-
-`opennlp-brat-annotator` : A set of annotators for [BRAT](http://brat.nlplab.org/)
-
-`opennlp-morfologik-addon` : An addon for Morfologik
-
-`opennlp-sandbox`: Other projects in progress are found in the [sandbox](https://github.com/apache/opennlp-sandbox)
-
+* `opennlp-tools` : The core toolkit.
+* `opennlp-uima` : A set of [Apache UIMA](https://uima.apache.org) annotators.
+* `opennlp-brat-annotator` : A set of annotators for [BRAT](http://brat.nlplab.org/)
+* `opennlp-morfologik-addon` : An addon for Morfologik
+* `opennlp-sandbox`: Other projects in progress are found in the [sandbox](https://github.com/apache/opennlp-sandbox)
 
 ## Getting Started
 
 You can import the core toolkit directly from Maven, SBT or Gradle:
 
 #### Maven
+
 ```
 <dependency>
     <groupId>org.apache.opennlp</groupId>
@@ -86,16 +82,17 @@ You can import the core toolkit directly from Maven, SBT or Gradle:
 ```
 
 #### SBT
+
 ```
 libraryDependencies += "org.apache.opennlp" % "opennlp-tools" % "${opennlp.version}"
 ```
 
 #### Gradle
+
 ```
 compile group: "org.apache.opennlp", name: "opennlp-tools", version: "${opennlp.version}"
 ```
 
-
 For more details please check our [documentation](http://opennlp.apache.org/docs/)
 
 ## Building OpenNLP
diff --git a/opennlp-distr/README_FOOTER.html b/opennlp-distr/README_FOOTER.html
new file mode 100644
index 0000000..308b1d0
--- /dev/null
+++ b/opennlp-distr/README_FOOTER.html
@@ -0,0 +1,2 @@
+</body>
+</html>
diff --git a/opennlp-distr/README_HEADER.html b/opennlp-distr/README_HEADER.html
index 7d3b0e2..14a9669 100644
--- a/opennlp-distr/README_HEADER.html
+++ b/opennlp-distr/README_HEADER.html
@@ -20,9 +20,30 @@ limitations under the License.
 <head>
     <title>Apache OpenNLP Readme</title>
     <style>
-        [href='https://travis-ci.org/apache/opennlp']{ display: none }
-        [href='https://coveralls.io/github/apache/opennlp?branch=master']{ display: none }
-        [href='https://maven-badges.herokuapp.com/maven-central/org.apache.opennlp/opennlp']{ display: none }
-        [href='http://opennlp.apache.org/docs/index.html']{ display: none }
+/*
+Change default font.
+*/
+html {
+  font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;
+}
+/*
+Format code.
+*/
+code,kbd,pre,samp {
+  font-family:Menlo,Monaco,Consolas,"Courier New",monospace;
+}
+code {
+  padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0;
+}
+code {
+  padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px;
+}
+/*
+This hides the first paragraph in the page, which contains badges.
+*/
+p > a > img {
+  display: none;
+}
     </style>
 </head>
+<body>
diff --git a/opennlp-distr/pom.xml b/opennlp-distr/pom.xml
index e9a848e..73137b6 100644
--- a/opennlp-distr/pom.xml
+++ b/opennlp-distr/pom.xml
@@ -74,6 +74,10 @@
 					<inputDirectory>${basedir}/../</inputDirectory>
 					<outputDirectory>${basedir}/target</outputDirectory>
 					<headerHtmlFile>${basedir}/README_HEADER.html</headerHtmlFile>
+					<footerHtmlFile>${basedir}/README_FOOTER.html</footerHtmlFile>
+					<pegdownExtensions>TABLES,FENCED_CODE_BLOCKS,AUTOLINKS</pegdownExtensions>
+					<!-- needed for the opennlp.version property -->
+					<applyFiltering>true</applyFiltering>
 				</configuration>
 			</plugin>
 			<plugin>

-- 
To stop receiving notification emails like this one, please contact
['"commits@opennlp.apache.org" <co...@opennlp.apache.org>'].