-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: initial refactor for 11ty based site building
- Loading branch information
1 parent
bb29236
commit 65fb3c6
Showing
13 changed files
with
6,100 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/bin/ | ||
/node_modules/ | ||
dist | ||
_site |
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 @@ | ||
v20.12.2 |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
require("dotenv").config(); | ||
|
||
module.exports = function () { | ||
return { | ||
originUrl: process.env.GOBLIN_ORIGIN_URL || "http://goblin.run", | ||
}; | ||
}; |
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 was deleted.
Oops, something went wrong.
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,9 +1,13 @@ | ||
--- | ||
layout: layout.njk | ||
--- | ||
|
||
## Usage | ||
|
||
Install `package` with optional `@version` and `options`: | ||
|
||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/<package>[@version] | [...options] sh | ||
curl -sf {{ meta.originUrl }}/<package>[@version] | [...options] sh | ||
``` | ||
|
||
## API | ||
|
@@ -58,25 +62,25 @@ gopkg.in/yaml.v2 | |
Install the latest version: | ||
|
||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/github.com/rakyll/hey | sh | ||
curl -sf {{ meta.originUrl }}/github.com/rakyll/hey | sh | ||
``` | ||
|
||
Specify package version: | ||
|
||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/github.com/barelyhuman/[email protected] | sh | ||
curl -sf {{ meta.originUrl }}/github.com/barelyhuman/[email protected] | sh | ||
``` | ||
|
||
Or use commit hashes: | ||
|
||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/github.com/barelyhuman/commitlog@bba8d7a63d622e4f12dbea9722b647cd985be8ad | sh | ||
curl -sf {{ meta.originUrl }}/github.com/barelyhuman/commitlog@bba8d7a63d622e4f12dbea9722b647cd985be8ad | sh | ||
``` | ||
|
||
Use alternative sources: | ||
|
||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/golang.org/x/tools/godoc | sh | ||
curl -sf {{ meta.originUrl }}/golang.org/x/tools/godoc | sh | ||
``` | ||
|
||
Specify nested packages | ||
|
@@ -85,11 +89,11 @@ Specify nested packages | |
> call. If you use something like `spf13/cobra` then check the 2nd example. | ||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/vito/bass/cmd/bass | sh | ||
curl -sf {{ meta.originUrl }}/vito/bass/cmd/bass | sh | ||
``` | ||
|
||
```command | ||
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/gnorm.org/gnorm | CMD_PATH="/cli" PREFIX=./bin sh | ||
curl -sf {{ meta.originUrl }}/gnorm.org/gnorm | CMD_PATH="/cli" PREFIX=./bin sh | ||
``` | ||
|
||
## How does it work? | ||
|
@@ -105,7 +109,7 @@ operating system, architecture, package version, and the binary's name—using G | |
**Example response** | ||
|
||
```sh | ||
{{.Data.env.GOBLIN_ORIGIN_URL}}/binary/github.com/rakyll/hey?os=darwin&arch=amd64&version=v0.1.3&out=hey | ||
{{ meta.originUrl }}/binary/github.com/rakyll/hey?os=darwin&arch=amd64&version=v0.1.3&out=hey | ||
``` | ||
|
||
_Note: compilation is limited to 200 seconds due to timeout restrictions._ | ||
_Note: compilation is limited to 200 seconds due to timeout restrictions._ |
Oops, something went wrong.