update domain
This commit is contained in:
parent
3e9f230b1f
commit
e20b78d450
|
@ -14,7 +14,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc"
|
"go-mod.ewintr.nl/adoc"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
6
adoc.go
6
adoc.go
|
@ -3,9 +3,9 @@ package adoc
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/formatter"
|
"go-mod.ewintr.nl/adoc/formatter"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewDocument() *document.Document {
|
func NewDocument() *document.Document {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package document
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Document struct {
|
type Document struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CodeBlock []Element
|
type CodeBlock []Element
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodeBlock(t *testing.T) {
|
func TestCodeBlock(t *testing.T) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import "code.ewintr.nl/adoc/token"
|
import "go-mod.ewintr.nl/adoc/token"
|
||||||
|
|
||||||
type Element interface {
|
type Element interface {
|
||||||
Text() string
|
Text() string
|
||||||
|
|
|
@ -3,7 +3,7 @@ package element
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Header struct {
|
type Header struct {
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHeader(t *testing.T) {
|
func TestHeader(t *testing.T) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Link struct {
|
type Link struct {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLink(t *testing.T) {
|
func TestLink(t *testing.T) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type List []ListItem
|
type List []ListItem
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestList(t *testing.T) {
|
func TestList(t *testing.T) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ListItem []Element
|
type ListItem []Element
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Paragraph struct {
|
type Paragraph struct {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParagraph(t *testing.T) {
|
func TestParagraph(t *testing.T) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import "code.ewintr.nl/adoc/token"
|
import "go-mod.ewintr.nl/adoc/token"
|
||||||
|
|
||||||
type Word string
|
type Word string
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import "code.ewintr.nl/adoc/token"
|
import "go-mod.ewintr.nl/adoc/token"
|
||||||
|
|
||||||
type Strong []Element
|
type Strong []Element
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStyles(t *testing.T) {
|
func TestStyles(t *testing.T) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package element
|
package element
|
||||||
|
|
||||||
import "code.ewintr.nl/adoc/token"
|
import "go-mod.ewintr.nl/adoc/token"
|
||||||
|
|
||||||
type SubTitle string
|
type SubTitle string
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSubTitle(t *testing.T) {
|
func TestSubTitle(t *testing.T) {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package formatter
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AsciiDoc struct{}
|
type AsciiDoc struct{}
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/formatter"
|
"go-mod.ewintr.nl/adoc/formatter"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAsciiDoc(t *testing.T) {
|
func TestAsciiDoc(t *testing.T) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package formatter
|
package formatter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Formatter interface {
|
type Formatter interface {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"html"
|
"html"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/go-kit/slugify"
|
"go-mod.ewintr.nl/go-kit/slugify"
|
||||||
)
|
)
|
||||||
|
|
||||||
const htmlPageTemplate = `<!DOCTYPE html>
|
const htmlPageTemplate = `<!DOCTYPE html>
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/formatter"
|
"go-mod.ewintr.nl/adoc/formatter"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHTML(t *testing.T) {
|
func TestHTML(t *testing.T) {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package formatter
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Text struct{}
|
type Text struct{}
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/formatter"
|
"go-mod.ewintr.nl/adoc/formatter"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestText(t *testing.T) {
|
func TestText(t *testing.T) {
|
||||||
|
|
11
go.mod
11
go.mod
|
@ -1,7 +1,8 @@
|
||||||
module code.ewintr.nl/adoc
|
module go-mod.ewintr.nl/adoc
|
||||||
|
|
||||||
go 1.21.5
|
go 1.23.0
|
||||||
|
|
||||||
require code.ewintr.nl/go-kit v0.0.0-20240308074309-a1328c3c44c6
|
require (
|
||||||
|
go-mod.ewintr.nl/go-kit v0.0.0-20240915084633-589e6c3a4b97 // indirect
|
||||||
require golang.org/x/text v0.14.0 // indirect
|
golang.org/x/text v0.14.0 // indirect
|
||||||
|
)
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -1,4 +1,4 @@
|
||||||
code.ewintr.nl/go-kit v0.0.0-20240308074309-a1328c3c44c6 h1:qZwAicZOd18o9qWCU3pSj/QnrSNLCAMAOPJvyLgBQ0U=
|
go-mod.ewintr.nl/go-kit v0.0.0-20240915084633-589e6c3a4b97 h1:vk8KmsDbJOYFD8JrYPRlJ44ll6H2JgiPcYrNZNJccj8=
|
||||||
code.ewintr.nl/go-kit v0.0.0-20240308074309-a1328c3c44c6/go.mod h1:Yk8Mdn1f4/L9tcymurtItqevVkac6P9ljh2Sd3T+FS8=
|
go-mod.ewintr.nl/go-kit v0.0.0-20240915084633-589e6c3a4b97/go.mod h1:JVAoSGJi3oLkkl+nGN0pqRjP6omkPfriCaT3CslW+Ok=
|
||||||
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
|
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
|
||||||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||||
|
|
|
@ -3,9 +3,9 @@ package parser
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Parser struct {
|
type Parser struct {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/document"
|
"go-mod.ewintr.nl/adoc/document"
|
||||||
"code.ewintr.nl/adoc/element"
|
"go-mod.ewintr.nl/adoc/element"
|
||||||
"code.ewintr.nl/adoc/parser"
|
"go-mod.ewintr.nl/adoc/parser"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParser(t *testing.T) {
|
func TestParser(t *testing.T) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.ewintr.nl/adoc/token"
|
"go-mod.ewintr.nl/adoc/token"
|
||||||
"code.ewintr.nl/go-kit/test"
|
"go-mod.ewintr.nl/go-kit/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLexer(t *testing.T) {
|
func TestLexer(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue