diff --git a/.goreleaser.yml b/.goreleaser.yml
index f6c27dec..4db4c419 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -43,7 +43,7 @@ changelog:
exclude:
- '^docs:'
- '^test:'
- - 'README.md'
+ - 'README'
- Merge pull request
- Merge branch
diff --git a/.travis.yml b/.travis.yml
index 54177899..36df5842 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,7 @@ language: go
go:
- 1.9.x
- 1.10.x
-script: make test
+script: make check_generated test
after_success:
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
diff --git a/Makefile b/Makefile
index 0f6d4424..9c5263de 100644
--- a/Makefile
+++ b/Makefile
@@ -7,4 +7,13 @@ test:
golangci-lint run --fast --no-config -v ./test/testdata/typecheck.go
go test -v -race ./...
+assets:
+ svg-term --cast=183662 --out docs/demo.svg --window --width 110 --height 30 --from 2000 --to 20000 --profile Dracula --term iterm2
+
+readme:
+ go run ./scripts/gen_readme/main.go
+
+check_generated:
+ make readme && git diff --exit-code # check no changes
+
.PHONY: test
\ No newline at end of file
diff --git a/README.md b/README.md
index 5646976c..04546742 100644
--- a/README.md
+++ b/README.md
@@ -9,8 +9,8 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
- * [Install](#install)
* [Demo](#demo)
+ * [Install](#install)
* [Quick Start](#quick-start)
* [Comparison](#comparison)
* [golangci-lint vs gometalinter](#golangci-lint-vs-gometalinter)
@@ -31,6 +31,14 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
* [Future Plans](#future-plans)
* [Contact Information](#contact-information)
+# Demo
+
+
+
+
+Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
+[](https://asciinema.org/a/183662)
+
# Install
Recommended way to install is:
```bash
@@ -49,12 +57,6 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version.
-# Demo
-Example of output:
-
-
-Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
-[](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah)
# Quick Start
To run golangci-lint execute:
diff --git a/README.md.tmpl b/README.md.tmpl
index 5666bb74..60bca190 100644
--- a/README.md.tmpl
+++ b/README.md.tmpl
@@ -9,8 +9,8 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
- * [Install](#install)
* [Demo](#demo)
+ * [Install](#install)
* [Quick Start](#quick-start)
* [Comparison](#comparison)
* [golangci-lint vs gometalinter](#golangci-lint-vs-gometalinter)
@@ -31,6 +31,14 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
* [Future Plans](#future-plans)
* [Contact Information](#contact-information)
+# Demo
+
+
+
+
+Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
+[](https://asciinema.org/a/183662)
+
# Install
Recommended way to install is:
```bash
@@ -49,12 +57,6 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version.
-# Demo
-Example of output:
-
-
-Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
-[](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah)
# Quick Start
To run golangci-lint execute:
diff --git a/docs/demo.svg b/docs/demo.svg
new file mode 100644
index 00000000..da93b49d
--- /dev/null
+++ b/docs/demo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/run_screenshot.png b/docs/run_screenshot.png
deleted file mode 100644
index 15063b77..00000000
Binary files a/docs/run_screenshot.png and /dev/null differ