1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: fixes to use the "default" fork

I was using my own fork, but its getting
hard to maintain that. Lets use the
default version.
This commit is contained in:
Carlos Alexandro Becker 2017-12-04 09:49:29 -02:00
parent d5c7af1db9
commit 6dc31b53bd
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 6 additions and 11 deletions

View File

@ -8,6 +8,7 @@ setup:
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/pierrre/gotestcover
go get -u golang.org/x/tools/cmd/cover
go get -u github.com/apex/static/cmd/static-docs
dep ensure
gometalinter --install
@ -38,19 +39,13 @@ HIGHLIGHT=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0
# Generate the static documentation
static:
rm -rf ../goreleaser.github.io/theme
@static-docs \
--in docs \
--out ../goreleaser.github.io \
--title GoReleaser \
--subtitle "Deliver Go binaries as fast and easily as possible" \
--google UA-106198408-1 \
--script "$(HIGHLIGHT)/highlight.min.js" \
--script "$(HIGHLIGHT)/languages/go.min.js" \
--script "$(HIGHLIGHT)/languages/yaml.min.js" \
--script "$(HIGHLIGHT)/languages/dockerfile.min.js" \
--style "$(HIGHLIGHT)/styles/atom-one-dark.min.css" \
--inline-script 'hljs.initHighlightingOnLoad();' \
--inline-style 'pre { padding: 0; }'
--google UA-106198408-1
# Show to-do items per file.
todo:

View File

@ -2,7 +2,7 @@
title: Environment
---
### GitHub Token
## GitHub Token
GoReleaser requires a GitHub API token with the `repo` scope selected to
deploy the artifacts to GitHub.
@ -12,7 +12,7 @@ This token should be added to the environment variables as `GITHUB_TOKEN`.
Here is how to do it with Travis CI:
[Defining Variables in Repository Settings](https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings).
### The dist folder
## The dist folder
By default, GoReleaser will create its artifacts in the `./dist` folder.
If you must, you can change it by setting it in the `.goreleaser.yml` file:
@ -23,7 +23,7 @@ If you must, you can change it by setting it in the `.goreleaser.yml` file:
dist: another-folder-that-is-not-dist
```
### Using the `main.version`
## Using the `main.version`
GoReleaser always sets a `main.version` *ldflag*.
You can use it in your `main.go` file:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB