From 5b801d48695058a64f99e863848dc6f2d1a95374 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Sat, 24 Feb 2024 18:03:00 +0800 Subject: [PATCH] rm-make --- Makefile | 17 ----------------- README.md | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 17 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index ffe1285..0000000 --- a/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -docs: - cat testdata/treemap.cover | ./go-cover-treemap > docs/go-cover-treemap-stdin.svg - ./go-cover-treemap -coverprofile testdata/treemap.cover > docs/go-cover-treemap.svg - ./go-cover-treemap -coverprofile testdata/go-featureprocessing.cover > docs/go-featureprocessing.svg - ./go-cover-treemap -coverprofile testdata/gin.cover > docs/gin.svg - ./go-cover-treemap -coverprofile testdata/chi.cover > docs/chi.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover > docs/hugo.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -w 1080 -h 360 > docs/hugo-1080x360.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -w 1080 -h 180 > docs/hugo-1080x180.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -statements=false > docs/hugo-files.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -collapse-root=false > docs/hugo-long-root.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -collapse-root=false -w 1080 -h 360 > docs/hugo-long-root-1080x360.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -collapse-root=false -w 1080 -h 180 > docs/hugo-long-root-1080x180.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover -only-folders > docs/hugo-only-folders.svg - ./go-cover-treemap -coverprofile testdata/hugo.cover --color-blind > docs/hugo-color-blind.svg - -.PHONY: docs diff --git a/README.md b/README.md index 5f3a617..1db53ec 100644 --- a/README.md +++ b/README.md @@ -126,3 +126,22 @@ normal color-blind ![example-hugo-color-blind](docs/hugo-color-blind.svg) + +### Docs + +```bash +$ cat testdata/treemap.cover | ./go-cover-treemap > docs/go-cover-treemap-stdin.svg +$ ./go-cover-treemap -coverprofile testdata/treemap.cover > docs/go-cover-treemap.svg +$ ./go-cover-treemap -coverprofile testdata/go-featureprocessing.cover > docs/go-featureprocessing.svg +$ ./go-cover-treemap -coverprofile testdata/gin.cover > docs/gin.svg +$ ./go-cover-treemap -coverprofile testdata/chi.cover > docs/chi.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover > docs/hugo.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -w 1080 -h 360 > docs/hugo-1080x360.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -w 1080 -h 180 > docs/hugo-1080x180.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -statements=false > docs/hugo-files.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -collapse-root=false > docs/hugo-long-root.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -collapse-root=false -w 1080 -h 360 > docs/hugo-long-root-1080x360.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -collapse-root=false -w 1080 -h 180 > docs/hugo-long-root-1080x180.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover -only-folders > docs/hugo-only-folders.svg +$ ./go-cover-treemap -coverprofile testdata/hugo.cover --color-blind > docs/hugo-color-blind.svg +```