Skip to content

Commit 71fa431

Browse files
committed
added sponsor box
1 parent 6507a5d commit 71fa431

File tree

18 files changed

+112
-62
lines changed

18 files changed

+112
-62
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mvni.sh text eol=lf
2+
loop.sh text eol=lf

loop.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java ~/skunk/scripts/src/main/java/ch/qos/FileWatcher.java src/site/pages c:/cygwin64/bin/bash -c "source mvni.sh"

mvni.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
function scpLogback() {
3+
4+
echo ${ARGS}
5+
SOURCE=/home/ceki/slf4j-site/target/site
6+
7+
pushd $SOURCE
8+
#i=0;
9+
for file in ${ARGS}
10+
do
11+
echo "scp ${file} yvo.qos.ch:/var/www/logback.qos.ch/htdocs/${file}";
12+
scp ${file} yvo.qos.ch:/var/www/www.slf4j.org/htdocs/${file};
13+
#i=$((i + 1));
14+
done
15+
popd
16+
}
17+
18+
function doRsync() {
19+
ssh root@ge.qos.ch "rsync -r -p -z -l --exclude=log/ --delete rsync://yvo.qos.ch/www/www.slf4j.org /var/www"
20+
}
21+
22+
23+
ARGS="${@}"
24+
25+
#echo "a0=${0}"
26+
#echo "a1=${1}"
27+
#echo "a2=${2}"
28+
echo "ARGS=${ARGS}"
29+
30+
echo "This is triggered command. Triggered by ${ARGS}"
31+
32+
echo "JAVA_HOME=$JAVA_HOME"
33+
echo "MAVEN_HOME=${MAVEN_HOME}" #=/java/maven-3.5.2/
34+
35+
36+
MVN_COMMAND=${MAVEN_HOME}/bin/mvn
37+
38+
pushd ~/slf4j-site
39+
40+
echo "======================"
41+
${MVN_COMMAND} install
42+
scpLogback;
43+
doRsync;
44+
45+
popd
46+
47+
exit
48+
49+
50+

src/site/pages/codes.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212

1313
<script src="templates/header3.js" type="text/javascript"></script>
1414

15-
<div id="content">
15+
<div id="content">
16+
<script type="text/javascript" src="templates/sponsoredBy.js" ></script>
1617

17-
<center>
18-
<h2>SLF4J warning or error messages and their meanings</h2>
18+
<h2>SLF4J warning or error messages and their meanings</h2>
1919

20-
</center>
21-
20+
2221

2322
<!-- ====================================================== -->
2423

src/site/pages/css/site3.css

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -83,31 +83,14 @@ img.sponsorIcon {
8383
height: var(--sponsor-icon-height);
8484
}
8585

86-
/** works kind of OK */
87-
/*pre code {*/
88-
/* white-space: pre-wrap!important;*/
89-
/* word-wrap: break-word;*/
90-
/* overflow-x: auto;*/
91-
/*}*/
92-
93-
94-
/*.example, pre, code {*/
95-
96-
/* white-space: pre-wrap;*/
97-
/* overflow-x: scroll;*/
98-
/* overflow: scroll;*/
99-
/* overflow-wrap: break-word; !* synonymous to word-wrap *!*/
100-
/*}*/
101-
102-
10386
pre, div.bodyTable {
10487
overflow: auto;
10588
overflow-wrap: normal;
10689
}
10790
.example, pre > code {
108-
word-break: normal;
91+
/*word-break: normal;*/
10992
white-space: pre;
110-
overflow: visible;
93+
overflow: auto;
11194
min-height: 2ex;
11295
/*overflow-wrap: normal; !* synonymous to word-wrap *!*!*/
11396
/*white-space: pre;*/
@@ -182,17 +165,19 @@ div#ad,
182165

183166
div#sponsor {
184167
float: right;
168+
display: flex;
169+
flex-direction: column;
170+
justify-content: flex-start;
171+
172+
max-width: 10rem;
173+
185174
border-color: #F00;
186175
margin: 0px;
187176
margin-top: 1rem;
188177
margin-left: 1rem;
189178
padding: 0px;
190179
}
191180

192-
div.pub {
193-
margin: 0px;
194-
padding: 0px;
195-
}
196181
p.sponsoredBy {
197182
padding: 2px;
198183
margin: 0px;
@@ -202,7 +187,9 @@ p.sponsoredBy {
202187
border-top: solid 1px #CCCCCC;
203188
border-bottom: solid 1px #CCCCCC;
204189
}
205-
190+
div.spotify {
191+
background-color: #FFEEDD;
192+
}
206193
img.spotify {
207194
max-height: calc(var(--main-logo-height));
208195
}
@@ -211,7 +198,6 @@ img.exoscale {
211198
max-height: calc(var(--main-logo-height) * 0.8);
212199
}
213200

214-
215201
#content {
216202
/*grid-area: contentArea;*/
217203
}
@@ -386,7 +372,7 @@ div.license {
386372
background: #f5f5f5;
387373
}
388374
.source, .command, .console {
389-
white-space: pre-wrap !important;
375+
white-space: pre;
390376
overflow-x: auto;
391377
border-top: 1px solid #DDDDDD;
392378
border-bottom: 1px solid #DDDDDD;

src/site/pages/docs.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<script src="templates/header3.js" type="text/javascript"></script>
1313

1414
<div id="content">
15+
<script type="text/javascript" src="templates/sponsoredBy.js" ></script>
1516

1617
<h1>Documentation</h1>
1718

@@ -25,9 +26,9 @@ <h1>Documentation</h1>
2526
<li><a href="legacy.html">Bridging legacy APIs</a></li>
2627
<li><a href="migrator.html">SLF4J Migrator</a></li>
2728
<li><a href="log4shell.html">Comments on the CVE-2021-44228 vulnerability</a></li>
28-
<li><a href="extensions.html">SLF4J extensions</a></li>
29+
<!--<li><a href="extensions.html">SLF4J extensions</a></li> -->
2930

30-
<li><a href="localization.html">Localization/Internalization support</a></li>
31+
<!--<li><a href="localization.html">Localization/Internalization support</a></li> -->
3132

3233
<li><a href="apidocs/index.html">javadocs</a></li>
3334
<li>

src/site/pages/download.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<script src="templates/header3.js" type="text/javascript"></script>
1515

1616
<div id="content">
17+
<script type="text/javascript" src="templates/sponsoredBy.js" ></script>
1718

1819
<h2>STABLE version</h2>
1920

src/site/pages/extensions.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212

1313
<script src="templates/header3.js" type="text/javascript"></script>
1414

15-
1615
<div id="content">
17-
16+
<script type="text/javascript" src="templates/sponsoredBy.js" ></script>
1817
<h1>SLF4J extensions</h1>
1918

2019
<p>SLF4J extensions are packaged within <em>slf4j-ext.jar</em>

src/site/pages/faq.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<script src="templates/header3.js" type="text/javascript"></script>
1414

1515

16-
<div id="content">
16+
<div id="content">
17+
<script type="text/javascript" src="templates/sponsoredBy.js" ></script>
1718

1819
<h2><a name="top">Frequently Asked Questions about SLF4J</a></h2>
1920

src/site/pages/legacy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515

1616
<div id="content">
17-
1817

18+
<script type="text/javascript" src="templates/sponsoredBy.js" ></script>
1919
<h2>Bridging legacy APIs</h2>
2020

2121
<p>Often, some of the components you depend on rely on a logging

0 commit comments

Comments
 (0)