asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
104 stars 101 forks source link

Simple Tree Gen #54

Closed sirinath closed 9 years ago

sirinath commented 9 years ago

I want to add simple tree diagrams to a text. Is possible to add an easy tree generation feature.

E.g.

- level 1 (A)
-- child of level A (B)
---  child of B
-- 2nd child of A
- 2nd child of root
sirinath commented 9 years ago

Better as part of: https://github.com/asciidoctor/asciidoctor-leanpub-converter/issues/46

mojavelinux commented 9 years ago

I'm pretty sure tree diagrams can be accomplished using Asciidoctor Diagram. There's also an HTML-based solution in the extensions lab already using the tree command. It depends on what exactly you're looking for.

mojavelinux commented 9 years ago

See https://twitter.com/mojavelinux/statuses/582567306284388352

sirinath commented 9 years ago

Thanks. This was what I was after. Can you rotate this and also make it into some other hierarchical diagram?

Scalable file trees images w/ Asciidoctor Diagram!

[salt,format=svg]
----
{{T
+ src
++ main
+++ java
+++ test
}}
----
mojavelinux commented 9 years ago

I'm not sure. You'd need to look closer at the capabilities of salt. http://plantuml.sourceforge.net/salt.html