Skip to content

Commit

Permalink
Update tests and version
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfercher committed Oct 10, 2023
1 parent 8c58c77 commit 04109aa
Show file tree
Hide file tree
Showing 28 changed files with 103 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ always when a new page appear, in this case, a header may have many rows, lines
* With `go get`:

```bash
go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.37
go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.38
```


Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#template-engines) [![Branch](https://img.shields.io/badge/V2-Branch-pink)](https://github.com/johnfercher/maroto/tree/v2) [![Roadmap](https://img.shields.io/badge/V2-Roadmap-purple)](https://github.com/users/johnfercher/projects/1) [![Discussion](https://img.shields.io/badge/V2-Discussion-blue)](https://github.com/johnfercher/maroto/issues/257) [![Release Notes](https://img.shields.io/badge/Release-Notes-cyan)](https://github.com/johnfercher/maroto/releases) [![Visits Badge](https://badges.pufler.dev/visits/johnfercher/maroto)](https://badges.pufler.dev)

#### Maroto`v2.0.0-alpha.37`is here! Try out:
#### Maroto`v2.0.0-alpha.38`is here! Try out:

* Installation with`go get`:

```bash
go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.37
go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.38
```

The public API was completely redesigned with the aim of enhancing the
Expand Down
6 changes: 4 additions & 2 deletions docs/v2/features/addpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
## Code Example
[filename](../../assets/examples/addpage/v2/main.go ':include :type=code')


## PDF Generated
```pdf
assets/pdf/addpagev2.pdf
```

## Time Execution
[filename](../../assets/text/addpagev2.txt ':include :type=code')
[filename](../../assets/text/addpagev2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/addpage.json ':include :type=code')
6 changes: 4 additions & 2 deletions docs/v2/features/background.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
## Code Example
[filename](../../assets/examples/background/v2/main.go ':include :type=code')


## PDF Generated
```pdf
assets/pdf/backgroundv2.pdf
```

## Time Execution
[filename](../../assets/text/backgroundv2.txt ':include :type=code')
[filename](../../assets/text/backgroundv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/background.json ':include :type=code')
6 changes: 4 additions & 2 deletions docs/v2/features/barcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
## Code Example
[filename](../../assets/examples/barcodegrid/v2/main.go ':include :type=code')


## PDF Generated
```pdf
assets/pdf/barcodegridv2.pdf
```

## Time Execution
[filename](../../assets/text/barcodegridv2.txt ':include :type=code')
[filename](../../assets/text/barcodegridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/barcodegrid.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/cellstyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/cellstylev2.txt ':include :type=code')
[filename](../../assets/text/cellstylev2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/cellstyle.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/compression.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/compressionv2.pdf
```
## Time Execution
[filename](../../assets/text/compressionv2.txt ':include :type=code')
[filename](../../assets/text/compressionv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/compression.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/customdimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/customdimensionsv2.pdf
```
## Time Execution
[filename](../../assets/text/customdimensionsv2.txt ':include :type=code')
[filename](../../assets/text/customdimensionsv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/customdimensions.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/customfont.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/customfontv2.pdf
```
## Time Execution
[filename](../../assets/text/customfontv2.txt ':include :type=code')
[filename](../../assets/text/customfontv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/customfont.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/custompage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/custompagev2.pdf
```
## Time Execution
[filename](../../assets/text/custompagev2.txt ':include :type=code')
[filename](../../assets/text/custompagev2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/custompage.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/datamatrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/datamatrixgridv2.txt ':include :type=code')
[filename](../../assets/text/datamatrixgridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/datamatrixgrid.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/footerv2.txt ':include :type=code')
[filename](../../assets/text/footerv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/footer.json ':include :type=code')
3 changes: 3 additions & 0 deletions docs/v2/features/header.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@

## Time Execution
[filename](../../assets/text/headerv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/header.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/imagegridv2.txt ':include :type=code')
[filename](../../assets/text/imagegridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/imagegrid.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/linegridv2.pdf
```
## Time Execution
[filename](../../assets/text/linegridv2.txt ':include :type=code')
[filename](../../assets/text/linegridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/line.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/listv2.pdf
```
## Time Execution
[filename](../../assets/text/listv2.txt ':include :type=code')
[filename](../../assets/text/listv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/list.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/margins.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/marginsv2.txt ':include :type=code')
[filename](../../assets/text/marginsv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/margins.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/maxgridsum.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/maxgridsumv2.txt ':include :type=code')
[filename](../../assets/text/maxgridsumv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/maxgridsum.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/mergepdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
```

## Time Execution
[filename](../../assets/text/mergepdfv2.txt ':include :type=code')
[filename](../../assets/text/mergepdfv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/mergepdf.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/metadatas.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/metadatasv2.txt ':include :type=code')
[filename](../../assets/text/metadatasv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/metadatas.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/orientation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/orientationv2.txt ':include :type=code')
[filename](../../assets/text/orientationv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/orientation.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/pagenumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/pagenumberv2.txt ':include :type=code')
[filename](../../assets/text/pagenumberv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/pagenumber.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/parallelism.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
[filename](../../assets/text/parallelismv2.txt ':include :type=code')

## Time Execution (100 pages)
[filename](../../assets/text/parallel.txt ':include :type=code')
[filename](../../assets/text/parallel.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/parallelism.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
assets/pdf/protectionv2.pdf
```
## Time Execution
[filename](../../assets/text/protectionv2.txt ':include :type=code')
[filename](../../assets/text/protectionv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/protection.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/qrcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/qrgridv2.txt ':include :type=code')
[filename](../../assets/text/qrgridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/qrgrid.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/signature.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/signaturegridv2.txt ':include :type=code')
[filename](../../assets/text/signaturegridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/signaturegrid.json ':include :type=code')
5 changes: 4 additions & 1 deletion docs/v2/features/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
```

## Time Execution
[filename](../../assets/text/textgridv2.txt ':include :type=code')
[filename](../../assets/text/textgridv2.txt ':include :type=code')

## Test File
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/examples/textgrid.json ':include :type=code')
2 changes: 1 addition & 1 deletion docs/v2/features/unittests.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ will keep the json files to unit test the components tree.
## Code
[filename](../../assets/examples/unittests/v2/main_test.go ':include :type=code')

## Component Tree JSON
## Test file
[filename](https://raw.githubusercontent.com/johnfercher/maroto/v2/test/maroto/example_unit_test.json ':include :type=code')

0 comments on commit 04109aa

Please sign in to comment.