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