Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Use "Document Structure" feature from asciidoctorJ #1

Open
mgreau opened this issue Nov 13, 2013 · 1 comment
Open

Use "Document Structure" feature from asciidoctorJ #1

mgreau opened this issue Nov 13, 2013 · 1 comment
Assignees

Comments

@mgreau
Copy link
Owner

mgreau commented Nov 13, 2013

Instead of handle an author input text, it will be interested to extract those information from asciidoc source.

Then all those information could be shown on the "output side" of the webpage in order to inform all others writers.

= Sample Document
Doc Writer <doc.writer@asciidoc.org>; John Smith <john.smith@asciidoc.org>
v1.0, 2013-05-20: First draft
:title: Sample Document
:tags: [document, example]
DocumentHeader header = asciidoctor.readDocumentHeader(...);

System.out.println(header.getDocumentTitle());      

Author author = header.getAuthor();                 
System.out.println(author.getEmail());              
System.out.println(author.getFullName());           

RevisionInfo revisionInfo = header.getRevisionInfo();
@ghost ghost assigned mgreau Nov 13, 2013
@lordofthejars
Copy link

i think this information will be interesting to be shown to the writer, but it may suffer some changes due the changes on Asciidoctor API. You can use it but may be deprecated in future versions on front of a new implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants