Skip to content

Commit e0b8c22

Browse files
kinowkottmann
authored andcommitted
OPENNLP-1127 fix CSS for code tags, hide badgets, and update the overall look of the output HTML.
1 parent 9eda182 commit e0b8c22

File tree

4 files changed

+39
-15
lines changed

4 files changed

+39
-15
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,18 @@ You can also follow our [mailing lists](http://opennlp.apache.org/mailing-lists.
6161

6262
Currently the library has different packages:
6363

64-
`opennlp-tools` : The core toolkit.
65-
66-
`opennlp-uima` : A set of [Apache UIMA](https://uima.apache.org) annotators.
67-
68-
`opennlp-brat-annotator` : A set of annotators for [BRAT](http://brat.nlplab.org/)
69-
70-
`opennlp-morfologik-addon` : An addon for Morfologik
71-
72-
`opennlp-sandbox`: Other projects in progress are found in the [sandbox](https://github.com/apache/opennlp-sandbox)
73-
64+
* `opennlp-tools` : The core toolkit.
65+
* `opennlp-uima` : A set of [Apache UIMA](https://uima.apache.org) annotators.
66+
* `opennlp-brat-annotator` : A set of annotators for [BRAT](http://brat.nlplab.org/)
67+
* `opennlp-morfologik-addon` : An addon for Morfologik
68+
* `opennlp-sandbox`: Other projects in progress are found in the [sandbox](https://github.com/apache/opennlp-sandbox)
7469

7570
## Getting Started
7671

7772
You can import the core toolkit directly from Maven, SBT or Gradle:
7873

7974
#### Maven
75+
8076
```
8177
<dependency>
8278
<groupId>org.apache.opennlp</groupId>
@@ -86,16 +82,17 @@ You can import the core toolkit directly from Maven, SBT or Gradle:
8682
```
8783

8884
#### SBT
85+
8986
```
9087
libraryDependencies += "org.apache.opennlp" % "opennlp-tools" % "${opennlp.version}"
9188
```
9289

9390
#### Gradle
91+
9492
```
9593
compile group: "org.apache.opennlp", name: "opennlp-tools", version: "${opennlp.version}"
9694
```
9795

98-
9996
For more details please check our [documentation](http://opennlp.apache.org/docs/)
10097

10198
## Building OpenNLP

opennlp-distr/README_FOOTER.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
</body>
2+
</html>

opennlp-distr/README_HEADER.html

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,30 @@
2020
<head>
2121
<title>Apache OpenNLP Readme</title>
2222
<style>
23-
[href='https://travis-ci.org/apache/opennlp']{ display: none }
24-
[href='https://coveralls.io/github/apache/opennlp?branch=master']{ display: none }
25-
[href='https://maven-badges.herokuapp.com/maven-central/org.apache.opennlp/opennlp']{ display: none }
26-
[href='http://opennlp.apache.org/docs/index.html']{ display: none }
23+
/*
24+
Change default font.
25+
*/
26+
html {
27+
font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;
28+
}
29+
/*
30+
Format code.
31+
*/
32+
code,kbd,pre,samp {
33+
font-family:Menlo,Monaco,Consolas,"Courier New",monospace;
34+
}
35+
code {
36+
padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0;
37+
}
38+
code {
39+
padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px;
40+
}
41+
/*
42+
This hides the first paragraph in the page, which contains badges.
43+
*/
44+
p > a > img {
45+
display: none;
46+
}
2747
</style>
2848
</head>
49+
<body>

opennlp-distr/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
<inputDirectory>${basedir}/../</inputDirectory>
7575
<outputDirectory>${basedir}/target</outputDirectory>
7676
<headerHtmlFile>${basedir}/README_HEADER.html</headerHtmlFile>
77+
<footerHtmlFile>${basedir}/README_FOOTER.html</footerHtmlFile>
78+
<pegdownExtensions>TABLES,FENCED_CODE_BLOCKS,AUTOLINKS</pegdownExtensions>
79+
<!-- needed for the opennlp.version property -->
80+
<applyFiltering>true</applyFiltering>
7781
</configuration>
7882
</plugin>
7983
<plugin>

0 commit comments

Comments
 (0)