This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from goreleaser/site
feat: added website
- Loading branch information
Showing
25 changed files
with
571 additions
and
54 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
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,38 @@ | ||
#!/bin/sh -ex | ||
|
||
# use gfind on osx | ||
if which gfind >/dev/null 2>&1; then | ||
alias find=gfind | ||
fi | ||
|
||
# add ./bin to PATH as well | ||
export PATH="./bin:$PATH" | ||
|
||
# clean up | ||
rm -rf ./www/public | ||
rm -rf ./www/static/github.com | ||
rm -rf ./www/data/projects | ||
mkdir -p ./www/data/projects | ||
|
||
# generate the sh files | ||
./godownloader --tree=tree ./www/static/ | ||
|
||
# lint generated files | ||
# SC2034 is unused variable | ||
# some generated scripts contain 1 or more variables with aren't used | ||
# sometimes. | ||
find ./www/static -name '*.sh' | while read -r f; do | ||
shellcheck -e SC2034 -s sh "$f" | ||
shellcheck -e SC2034 -s bash "$f" | ||
shellcheck -e SC2034 -s dash "$f" | ||
shellcheck -e SC2034 -s ksh "$f" | ||
done | ||
|
||
# generate the hugo data files | ||
find tree -name '*.yaml' -printf '%P\n' | while read -r f; do | ||
ff="$(echo "$f" | sed -e 's/\.yaml//' -e 's/\./-/g' -e 's/\//-/g')" | ||
echo "path: $f" | sed 's/\.yaml//' > ./www/data/projects/"$ff.yaml" | ||
done | ||
|
||
# generate the site | ||
hugo -s www -d public |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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 @@ | ||
public/ |
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,5 @@ | ||
baseURL = "http://install.goreleaser.com/" | ||
languageCode = "en-us" | ||
title = "Install | GoReleaser" | ||
pygmentsCodeFences = true | ||
pygmentsStyle = "dracula" |
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,23 @@ | ||
--- | ||
title: Add your project | ||
weight: 10 | ||
--- | ||
|
||
This will guide you on how to add your own project to this site. | ||
|
||
If you use [GoReleaser], all you need to do is to add an empty YAML | ||
file to the [GoDownloader] `tree` folder, under the right path. | ||
|
||
For example, if your project lives under `https://github.com/foo/bar`, you | ||
may create the YAML file at `tree/github.com/foo/bar.yaml`. | ||
|
||
After that, you just need to open a pull request, and everything will happen | ||
magically. | ||
|
||
If you do not use [GoReleaser], additional steps will be required. | ||
<!-- TODO: document additional steps here --> | ||
|
||
[GoReleaser]: https://goreleaser.com | ||
[GoDownloader]: https://github.com/goreleaser/godownloader | ||
|
||
You can see the list of all projects being served [here](/projects). |
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,10 @@ | ||
--- | ||
title: Introduction | ||
weight: 1 | ||
--- | ||
|
||
Install scripts generated by godownloader! | ||
|
||
This page contains scripts generated using [godownloader]. | ||
|
||
[godownloader]: https://github.com/goreleaser/godownloader |
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,10 @@ | ||
--- | ||
title: Projects | ||
weight: 100 | ||
layout: projects | ||
hide: true | ||
--- | ||
|
||
This is the list of all projects being served in this site. | ||
|
||
You can see both the project path and the one-liner to install it here. |
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 @@ | ||
projects/*.yaml |
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,15 @@ | ||
{{ partial "head" . }} | ||
<body> | ||
<div class="Wrapper"> | ||
<div class="Container"> | ||
{{ partial "header" . }} | ||
<div class="Content-wrapper"> | ||
{{ partial "menu" . }} | ||
<div class="Content"> | ||
{{ block "main" . }}{{ end }} | ||
{{ partial "footer" . }} | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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,11 @@ | ||
{{ define "main" }} | ||
{{ .Content }} | ||
{{ range .Data.Pages.ByWeight }} | ||
{{ if not .Params.hide }} | ||
<div class="Page" id="{{ .Title }}"> | ||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> | ||
{{ .Content }} | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} |
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,6 @@ | ||
{{ define "main" }} | ||
<div class="Page" id="{{ .Slug }}"> | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
</div> | ||
{{ end }} |
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,9 @@ | ||
{{ define "main" }} | ||
{{ .Content }} | ||
{{ range sort .Site.Data.projects "path" "asc" }} | ||
<div class="Page"> | ||
<h1><a href="https://{{.path}}">{{ .path }}</a></h1> | ||
<pre><code>curl -sfL https://install.goreleaser.com/{{ .path }}.sh | bash</code></pre> | ||
</div> | ||
{{ end }} | ||
{{ end }} |
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,4 @@ | ||
<div class="Footer"> | ||
Made with ❤️ by GoReleaser contributors. | ||
</div> | ||
<script src="theme/apex/js/index.js"></script> |
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,14 @@ | ||
|
||
<!DOCTYPE HTML> | ||
|
||
<html> | ||
<head> | ||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }} | ||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} | ||
{{ with .Site.LanguageCode }}<meta http-equiv="content-language" content="{{ . }}" />{{ end }} | ||
{{ .Hugo.Generator }} | ||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/index.css"> | ||
</head> |
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,8 @@ | ||
<div class="Header"> | ||
<a href="{{ .Site.BaseURL }}"> | ||
<div class="Title center"> | ||
<span class="text">{{.Site.Title}}</span> | ||
<span class="subtext">GoReleaser</span> | ||
</div> | ||
</a> | ||
</div> |
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,9 @@ | ||
<div class="Sidebar"> | ||
<div class="Menu"> | ||
{{ range .Pages }} | ||
<div class="item"> | ||
<a href="{{ .Permalink }}">{{ .Title }}</a> | ||
</div> | ||
{{ end }} | ||
</div> | ||
</div> |
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 @@ | ||
github.com/ |
Oops, something went wrong.