willesreis commented on pull request #670:
URL: https://github.com/apache/tomee/pull/670#issuecomment-662219499
Coming with updates about the rendering of tables in ".adoc" files through
JBake.
I tested the asciidoctor plugin v1.5.4 with a simple converter from adoc
file (with syntax to generate a table) to html page
```
import org.asciidoctor.Asciidoctor;
import java.io.File;
import java.util.HashMap;
public class TestAsciidoc {
public static void main(String[] args) {
Asciidoctor asciidoctor = Asciidoctor.Factory.create();
String html = asciidoctor.convertFile(
new
File("repos/tomee-8.0/docs/client-server-transports.adoc"),
new HashMap<String, Object>()
);
}
}
```
... and I noticed that html tables parsed by asciidoctor use some style
classes that belongs to a specific stylesheet, that is inside the asciidoctor
plugin package.
- client-server-transports.html
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 1.5.4">
<title>Client-Server Transports</title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
<link rel="stylesheet" href="./asciidoctor.css">
```
To achieve this, it should be updated the template header.gsp adding the
link tag that target to this specific stylesheet, but could to shock with
current stylesheets in tomee site.
Maybe I am mistake, but looks like do not worth it to make so much changes
to adjust JBake, because this is only a formatting matters.
Perhaps someone else can have other insights...
However, simultaneously I have been working with the proposal of the Antora
to process documentation pages.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]