-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #28
- Loading branch information
Showing
17 changed files
with
413 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
v 1.3 | ||
- New kit theme. #28 | ||
- refac: generate Go code to render themes. #38 | ||
- doc: fix semver in README. #36 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package themes | ||
|
||
//go:generate ../../generator | ||
|
||
import ( | ||
"github.com/matm/gocov-html/pkg/types" | ||
) | ||
|
||
type kitTheme struct{} | ||
|
||
func (t kitTheme) Assets() types.StaticAssets { | ||
return types.StaticAssets{ | ||
Stylesheets: []string{ | ||
// From the official theme. | ||
"app.css", | ||
//"a.css", "b.css", | ||
// Custom rules. | ||
"kit.css", | ||
}, | ||
Scripts: []string{"app.js"}, | ||
Index: "index.html", | ||
} | ||
} | ||
|
||
func (t kitTheme) Name() string { | ||
return "kit" | ||
} | ||
|
||
func (t kitTheme) Description() string { | ||
return "AdminKit theme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Available Themes | ||
|
||
## golang | ||
|
||
This is the default theme: | ||
|
||
```shell | ||
$ gocov test strings | gocov-html -t golang > strings.html | ||
``` | ||
|
||
![golang theme screenshot](golang/screenshot.png) | ||
|
||
## kit | ||
|
||
Uses the [AdminKit](https://adminkit.io) theme: | ||
|
||
```shell | ||
$ gocov test encoding/csv strings | gocov-html -t kit > strings.html | ||
``` | ||
|
||
![kit theme screenshot](kit/screenshot.png) |
Oops, something went wrong.