DocBook based CSS conversion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

DocBook based CSS conversion

sebersole
We are in the process of migrating the Hibernate ORM documentation from DocBook to Asciidoc(tor).  One hang up is the styling/branding.  We have spent a lot of time developing the CSS used to style the DocBook output over the years and would like to apply at least some of those stylizations to the Asciidoctor rendered output as well.  We know asciidoc->docbook->html is an option, though obviously less than ideal.  So any pointers on converting CSS developed for DocBook to AsciiDoctor/Foundation?
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

LightGuardjp
How big is the CSS file? I'm guessing its larger than one would like to migrate by hand. 

On Wednesday, December 2, 2015, sebersole [via Asciidoctor :: Discussion] <[hidden email]> wrote:
We are in the process of migrating the Hibernate ORM documentation from DocBook to Asciidoc(tor).  One hang up is the styling/branding.  We have spent a lot of time developing the CSS used to style the DocBook output over the years and would like to apply at least some of those stylizations to the Asciidoctor rendered output as well.  We know asciidoc->docbook->html is an option, though obviously less than ideal.  So any pointers on converting CSS developed for DocBook to AsciiDoctor/Foundation?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/DocBook-based-CSS-conversion-tp4002.html
To start a new topic under Asciidoctor :: Discussion, email <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;ml-node%2Bs49171n1h37@n6.nabble.com&#39;);" target="_blank">ml-node+s49171n1h37@...
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Sent from Gmail Mobile
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

sebersole
More it's just that I have no idea about the style class mapping.  And on top of that I am completely unfamiliar with this Foundation thing.
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

LightGuardjp
It may not totally help, and maybe you've already seen it, but there's http://asciidoctor.org/docs/produce-custom-themes-using-asciidoctor-stylesheet-factory/ for info on creating a new theme, http://themes.asciidoctor.org/ with links to the github source of different themes and a way to preview those themes. I don't recall which version of foundation was being used but here's links to <a href="http://foundation.zurb.com/sites/docs/v/4.3.2/index.html[Foundation">http://foundation.zurb.com/sites/docs/v/4.3.2/index.html[Foundation 4] and <a href="http://foundation.zurb.com/sites/docs/v/5.5.3/index.html[Foundation">http://foundation.zurb.com/sites/docs/v/5.5.3/index.html[Foundation 5]. Foundation is similar to Bootstrap in that it's a CSS component library. In the html output for asciidoctor it's used as a base, mostly being used for typography, spacing, code samples, etc. Asciidoctor doesn't output any of the component things like button groups, navigation widgets, or tabs.

On Wed, Dec 2, 2015 at 6:52 AM, sebersole [via Asciidoctor :: Discussion] <[hidden email]> wrote:
More it's just that I have no idea about the style class mapping.  And on top of that I am completely unfamiliar with this Foundation thing.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/DocBook-based-CSS-conversion-tp4002p4004.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

mojavelinux
Administrator
In reply to this post by sebersole

Steve,

I'm glad to hear Hibernate ORM is joining the Asciidoctor revolution. As the heart of Hibernate, I know this migration is a big deal.

As you mentioned, you could go through DocBook and reuse all the same styling you already have. But obviously, it's nice to cut out steps if possible.

There's no special requirement to create CSS for Asciidoctor HTML output. It's entirely possible just to start from scratch and hand code all the CSS.

Of course, since no one wants to do that, we start with Bootstrap, Foundation or similar. It normalizes browser styles, sets sane defaults and provides a bunch of helpers.

We chose Foundation for the default stylesheet and the stylesheet factory in Asciidoctor, but that's not a hard requirement. Some people use Bootstrap instead.

Any technical designer should have no trouble porting the existing look you have with DocBook to the Asciidoctor HTML in one day, and maybe a few more for refinements. I know because I've done it dozens of times. It's just a code rewrite.

I recommend to the designer to use the stylesheet factory as a reference, but don't feel bound to using it.

-Dan

Le 2 déc. 2015 7:01 AM, "sebersole [via Asciidoctor :: Discussion]" <[hidden email]> a écrit :
More it's just that I have no idea about the style class mapping.  And on top of that I am completely unfamiliar with this Foundation thing.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/DocBook-based-CSS-conversion-tp4002p4004.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

sebersole
FWIW We have been using Asciidoctor for some things for quite some time.  It's just that now we are in the midst of a major reference manual revamp and decided to move that content to Asciidoctor as well since we are re-writing it all from scratch anyway.

Our requirements seem pretty common.. of course everyone says this I realize :)  We have some standard headers (images) we'd like to apply; we have a specific color pallette we'd like to apply;  etc.

Anyway, I've reached out to our friend James to see if he would be able to help here.

On a related note, any ideas on an ETA for https://github.com/asciidoctor/asciidoctor/issues/626 ?
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

mojavelinux
Administrator
Yep, I'm aware that Hiberate has had its foot in Asciidoctor since almost the beginning, but still getting the main entry point migrated (the user guide) is big.

> I've reached out to our friend James to see if he would be able to help here. 

I'd be glad to help James out and answer any questions he has. Of course, if we need code changes, I can make sure those happen too.

> On a related note, any ideas on an ETA for https://github.com/asciidoctor/asciidoctor/issues/626

That reminds me I have a prototype I need to push to GitHub. I added it to the top of my list. I'll post once it's up. Technically, it's possible to do it with the APIs that are available today. It just isn't "magic" yet and it requires a few small hacks. What's important, though, is that it's achievable.

Cheers,

-Dan

On Wed, Dec 2, 2015 at 11:00 AM, sebersole [via Asciidoctor :: Discussion] <[hidden email]> wrote:
FWIW We have been using Asciidoctor for some things for quite some time.  It's just that now we are in the midst of a major reference manual revamp and decided to move that content to Asciidoctor as well since we are re-writing it all from scratch anyway.

Our requirements seem pretty common.. of course everyone says this I realize :)  We have some standard headers (images) we'd like to apply; we have a specific color pallette we'd like to apply;  etc.

Anyway, I've reached out to our friend James to see if he would be able to help here.

On a related note, any ideas on an ETA for https://github.com/asciidoctor/asciidoctor/issues/626 ?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/DocBook-based-CSS-conversion-tp4002p4007.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: DocBook based CSS conversion

mojavelinux
Administrator
In reply to this post by sebersole

On Wed, Dec 2, 2015 at 11:00 AM, sebersole [via Asciidoctor :: Discussion] <[hidden email]> wrote:
On a related note, any ideas on an ETA for https://github.com/asciidoctor/asciidoctor/issues/626 ?

The converter is now available in the extensions-lab. It still has a ways to go, but hopefully that provides a framework on which to build. It's a tricky engineering problem (which requires time), but very solvable.

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen