Releases: mariotoffia/goasciidoc
Releases · mariotoffia/goasciidoc
Ability to use asciidoc for package documentation
Now it searches for overview.adoc and _design/overview.adoc by default and use those as package documentation instead of go package documentation. Those are included in the document as reference and hence the absolute path must be preserved.
It is possible to override using -d relative-file-path
(support multiple -d
).
Fixed bug in main
Emitted debug log to stdout
Bugfixes and template support
v0.0.8 fixed typo in readme
Better handling of newline when rendering
v0.0.7 render proper newlines
Nested Structs and non primitive type support
Now it supports both nested structs and typedefs where the type is of struct kind like time.Time
.
// MyStruct is a structure of nonsense
type MyStruct struct {
// Inline the struct
Inline struct {
// FooBar is a even more nonsense variable
FooBar int
}
// MyInt is happy to be after Inline
MyInt int
}
This generates the following ASCIIDOC
=== MyStruct
[source, go]
----
type MyStruct struct {
Inline struct
MyInt int
}
----
MyStruct is a structure of nonsense
==== MyInt int
MyInt is happy to be after Inline
=== Inline
[source, go]
----
struct {
FooBar int
}
----
Inline the struct
==== FooBar int
FooBar is a even more nonsense variable
toc is default enabled and sorting of imports
v0.0.5 added sample godoc in readme
Tabify struct & interfaces
Use the tabwriter to align methods and fields to more mimic the golang code autoformatter.
Finalize and made it easy to install goasciidoc
Refactor and instructions to install goasciidoc
is now done.
First release
This is the first release of goasciidoc command.