Skip to content

Commit 5a574cd

Browse files
committed
set up full site with header using plain asciidoc
Signed-off-by: Jeen Broekstra <jeen.broekstra@gmail.com>
1 parent 2c9c12c commit 5a574cd

13 files changed

Lines changed: 59 additions & 13 deletions

File tree

build-html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22
asciidoctor -n -D html doc/index.adoc
33
asciidoctor -n -D html/server-workbench-console doc/server-workbench-console/index.adoc
4-
# cp -r doc/server-workbench-console/images html/server-workbench-console
54
asciidoctor -n -D html/migration doc/migration/index.adoc
65
asciidoctor -n -D html/programming doc/programming/index.adoc
7-
cp -r doc/programming/images html/programming
6+
cp -r doc/images html/
87
cp -r doc/css html/

doc/css/images/rdf4j-logo.png

2.29 KB
Loading

doc/css/rdf4j.css

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,41 @@ b.button:after { content: "]"; padding: 0 2px 0 3px; }
306306
#header:before, #header:after, #content:before, #content:after, #footnotes:before, #footnotes:after, #footer:before, #footer:after { content: " "; display: table; }
307307
#header:after, #content:after, #footnotes:after, #footer:after { clear: both; }
308308

309-
#content { margin-top: 1.25em; }
310-
311309
#content:before { content: none; }
312310

313-
#header > h1:first-child { color: black; margin-top: 2.25rem; margin-bottom: 0; }
311+
/* formatting for the header menu bar specifically */
312+
div#content>table:nth-child(2) {
313+
border: none;
314+
border-collapse: collapse;
315+
}
316+
317+
div#content>table:nth-child(2) td {
318+
border: none;
319+
background-color: #484848;
320+
}
321+
322+
div#content>table:nth-child(2) p,
323+
div#content>table:nth-child(2) a:link,
324+
div#content>table:nth-child(2) a:visited {
325+
display: block;
326+
width: 100%;
327+
color: white;
328+
}
329+
330+
div#content>table:nth-child(2) td:hover:nth-child(2) {
331+
background-color: #eaeaea;
332+
}
333+
334+
div#content>table:nth-child(2) td:hover a:link,
335+
div#content>table:nth-child(2) td:hover a:hover,
336+
div#content>table:nth-child(2) td:hover a:visited {
337+
color: black;
338+
display: block;
339+
text-decoration: none;
340+
width: 100%;
341+
}
342+
343+
#header > h1:first-child { color: black; padding-left: 140px; margin-top: 2.25rem; margin-bottom: 0; }
314344
#header > h1:first-child + #toc { margin-top: 8px; border-top: 1px solid #dddddd; }
315345
#header > h1:only-child, body.toc2 #header > h1:nth-last-child(2) { border-bottom: 1px solid #dddddd; padding-bottom: 8px; }
316346
#header .details { border-bottom: 1px solid #dddddd; line-height: 1.45; padding-top: 0.25em; padding-bottom: 0.25em; padding-left: 0.25em; color: #555555; display: -ms-flexbox; display: -webkit-flex; display: flex; -ms-flex-flow: row wrap; -webkit-flex-flow: row wrap; flex-flow: row wrap; }

doc/header.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
image:rdf4j-logo.png[role="left",link="http://rdf4j.org/"]
2+
[cols="1, 2, 2, 2, 2, 6"]
3+
|================
4+
| | link:/[Home] | | | |
5+
|================

doc/images/rdf4j-logo.png

2.29 KB
Loading

doc/index.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
= Eclipse RDF4J Documentation
1+
:imagesdir: images/
22
:stylesdir: css/
33
:stylesheet: rdf4j.css
44
:linkcss:
5+
include::header.adoc[]
6+
7+
== Eclipse RDF4J Documentation
58

69
Welcome to the Eclipse RDF4J documentation site. This is a work in progress.
710

doc/migration/index.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
= Sesame to RDF4J Migration Guide
21
include::../shared-settings.adoc[]
32
:toclevels: 4
3+
include::../header.adoc[]
4+
5+
== Sesame to RDF4J Migration Guide
46

57
Eclipse RDF4J is the successor of the OpenRDF Sesame project. The RDF4J framework and tools offer the same functionality, and will continue to be maintained and improved by the same team of developers as Sesame was, under Eclipse stewardship. For any users who wish to migrate their existing projects from Sesame to RDF4J (and we certainly urge you to do so quickly), here’s an overview of what has changed.
68

doc/programming/02-model-api.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
= The RDF Model API
2-
:imagesdir: images
32

43
The RDF Model API is the core of the RDF4J framework. It provides the basic building blocks for manipulating RDF data in Java. In this chapter, we introduce these basic building blocks and show some example on hot to use them.
54

doc/programming/docinfo.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@
2626
.tocify-focus > a {
2727
color: #7a2518;
2828
}
29+
2930
</style>
3031

3132
<script type="text/javascript">
33+
$( document ).ready(function() {
34+
$('#project-bar').insertBefore('#header');
35+
});
3236
$(function () {
3337
// Add a new container for the tocify toc into the existing toc so we can re-use its
3438
// styling

0 commit comments

Comments
 (0)