Add some documentation & split Document into Configuration+Document
This commit is contained in:
parent
c98cdea4f0
commit
56ecb2d401
9 changed files with 77 additions and 44 deletions
|
@ -9,7 +9,7 @@ func TestHTMLWriter(t *testing.T) {
|
|||
for _, path := range orgTestFiles() {
|
||||
expected := fileString(path[:len(path)-len(".org")] + ".html")
|
||||
reader, writer := strings.NewReader(fileString(path)), NewHTMLWriter()
|
||||
actual, err := NewDocument().Silent().SetPath(path).Parse(reader).Write(writer)
|
||||
actual, err := New().Silent().Parse(reader, path).Write(writer)
|
||||
if err != nil {
|
||||
t.Errorf("%s\n got error: %s", path, err)
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue