~shulhan/asciidoctor-go

346500242a3541bf9f7d8ce008dcf2ef6950e9a0 — Shulhan 9 months ago bc54ecb
all: replace module "share" with "pakakeh.go"
M CHANGELOG => CHANGELOG +1 -1
@@ 34,7 34,7 @@ all: replace "lib/parser" with "strings/parser"::
+
The lib/parser has been deprecated in share module.

all: remove dependency to "github.com/shuLhan/share/lib/debug"::
all: remove dependency to "git.sr.ht/~shulhan/pakakeh.go/lib/debug"::

all: replace linter golangci-lint with revive and shadow::
+

M asciidoctor.go => asciidoctor.go +1 -1
@@ 7,7 7,7 @@
// [AsciiDoc markup]: https://asciidoctor.org/docs/what-is-asciidoc
package asciidoctor

import "github.com/shuLhan/share/lib/math/big"
import "git.sr.ht/~shulhan/pakakeh.go/lib/math/big"

const (
	// Version of this module.

M asciidoctor_test.go => asciidoctor_test.go +1 -1
@@ 7,7 7,7 @@ import (
	"bytes"
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

const (

M attribute_class.go => attribute_class.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"strings"

	libstrings "github.com/shuLhan/share/lib/strings"
	libstrings "git.sr.ht/~shulhan/pakakeh.go/lib/strings"
)

type attributeClass []string

M cell_format.go => cell_format.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"strconv"

	"github.com/shuLhan/share/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
)

type cellFormat struct {

M cell_format_test.go => cell_format_test.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestParseCellFormat(t *testing.T) {

M column_format.go => column_format.go +2 -2
@@ 6,8 6,8 @@ package asciidoctor
import (
	"strings"

	"github.com/shuLhan/share/lib/ascii"
	"github.com/shuLhan/share/lib/math/big"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/math/big"
)

const (

M column_format_test.go => column_format_test.go +2 -2
@@ 6,8 6,8 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/math/big"
	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/math/big"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestParseColumnFormat(t *testing.T) {

M document_parser.go => document_parser.go +1 -1
@@ 8,7 8,7 @@ import (
	"fmt"
	"io"

	"github.com/shuLhan/share/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
)

const debugLevel = 0

M document_test.go => document_test.go +1 -1
@@ 7,7 7,7 @@ import (
	"os"
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestOpen(t *testing.T) {

M element.go => element.go +1 -1
@@ 10,7 10,7 @@ import (
	"net/url"
	"strings"

	"github.com/shuLhan/share/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
)

// element is the building block of asciidoc document.

M element_attribute.go => element_attribute.go +1 -1
@@ 7,7 7,7 @@ import (
	"bytes"
	"strings"

	libstrings "github.com/shuLhan/share/lib/strings"
	libstrings "git.sr.ht/~shulhan/pakakeh.go/lib/strings"
)

type elementAttribute struct {

M element_attribute_test.go => element_attribute_test.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func Test_parseElementAttribute(t *testing.T) {

M element_table.go => element_table.go +2 -2
@@ 8,8 8,8 @@ import (
	"fmt"
	"strings"

	"github.com/shuLhan/share/lib/math/big"
	libstrings "github.com/shuLhan/share/lib/strings"
	"git.sr.ht/~shulhan/pakakeh.go/lib/math/big"
	libstrings "git.sr.ht/~shulhan/pakakeh.go/lib/strings"
)

type elementTable struct {

M element_table_test.go => element_table_test.go +2 -2
@@ 6,8 6,8 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/math/big"
	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/math/big"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestParseAttrCols(t *testing.T) {

M element_test.go => element_test.go +2 -2
@@ 6,8 6,8 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/math/big"
	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/math/big"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestAdocNode_parseListDescriptionItem(t *testing.T) {

M go.mod => go.mod +2 -2
@@ 5,6 5,6 @@ module git.sr.ht/~shulhan/asciidoctor-go

go 1.20

require github.com/shuLhan/share v0.51.0
require git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b

//replace github.com/shuLhan/share => ../share
//replace git.sr.ht/~shulhan/pakakeh.go => ../pakakeh.go

M go.sum => go.sum +2 -2
@@ 1,2 1,2 @@
github.com/shuLhan/share v0.51.0 h1:WPKRNNWnZPaVTi/o6nUdkAePek2Lbjz5baoq8MU1U+I=
github.com/shuLhan/share v0.51.0/go.mod h1:Zn0zwUdSuu7L2BKaYkVOXwbwxd5Kn6Y2bhohD9Tf0Sc=
git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b h1:LtSlSrDg3Zw1ASfUi5enaHqefPWiWsPEDK+IlzSO72g=
git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b/go.mod h1:C43kVQ9Dai9Ol3bCHi8VKeOtYzp+E8617jNBaIsmd8o=

M html_backend.go => html_backend.go +2 -2
@@ 9,8 9,8 @@ import (
	"io"
	"strings"

	libascii "github.com/shuLhan/share/lib/ascii"
	libstrings "github.com/shuLhan/share/lib/strings"
	libascii "git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
	libstrings "git.sr.ht/~shulhan/pakakeh.go/lib/strings"
)

const (

M inline_parser.go => inline_parser.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"bytes"

	"github.com/shuLhan/share/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
)

// inlineParser is the one that responsible to parse text that contains inline

M inline_parser_test.go => inline_parser_test.go +1 -1
@@ 9,7 9,7 @@ import (
	"strings"
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestInlineParser(t *testing.T) {

M macro.go => macro.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"strconv"

	"github.com/shuLhan/share/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
)

// List of macro names.

M parser.go => parser.go +1 -1
@@ 7,7 7,7 @@ import (
	"bytes"
	"strings"

	"github.com/shuLhan/share/lib/ascii"
	"git.sr.ht/~shulhan/pakakeh.go/lib/ascii"
)

const (

M parser_test.go => parser_test.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestGenerateID(t *testing.T) {

M revision_test.go => revision_test.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestParseRevision(t *testing.T) {

M section_counters_test.go => section_counters_test.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestSectionCounters(t *testing.T) {

M table_parser.go => table_parser.go +1 -1
@@ 7,7 7,7 @@ import (
	"bytes"
	"strings"

	libstrings "github.com/shuLhan/share/lib/strings"
	libstrings "git.sr.ht/~shulhan/pakakeh.go/lib/strings"
)

type tableParser struct {

M table_parser_test.go => table_parser_test.go +1 -1
@@ 6,7 6,7 @@ package asciidoctor
import (
	"testing"

	"github.com/shuLhan/share/lib/test"
	"git.sr.ht/~shulhan/pakakeh.go/lib/test"
)

func TestTableParser_new(t *testing.T) {

M testdata/document_tohtml_test.txt => testdata/document_tohtml_test.txt +2 -2
@@ 21,7 21,7 @@ Document body.
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="asciidoctor-go 0.5.0">
<meta name="generator" content="asciidoctor-go 0.5.1">
<meta name="description" content="Multiline description with backslash">
<meta name="keywords" content="multiline, key, words">
<meta name="author" content="John Doe">


@@ 70,7 70,7 @@ Section 2 content.
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="asciidoctor-go 0.5.0">
<meta name="generator" content="asciidoctor-go 0.5.1">
<meta name="author" content="John Doe">
<title>Title</title>
</head>