-
Notifications
You must be signed in to change notification settings - Fork 12
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 #228 from lxfontes/lxfontes/go-imports
docs: vanity url top directory
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# go.bytecodealliance.org Go import paths | ||
|
||
This directory hosts the configuration for Go vanity URLs under `go.bytecodealliance.org` domain. | ||
|
||
More information about vanity URLs can be found in the [Go documentation](https://golang.org/cmd/go/#hdr-Remote_import_paths). | ||
|
||
## Adding a new vanity URL | ||
|
||
If you want to create a vanity URL `go.bytecodealliance.org/foo` pointing to `github.com/bytecodealliance/go-foo`: | ||
|
||
- Create directory `docs/foo` | ||
- Create file `docs/foo/index.html` with the following content: | ||
|
||
```html | ||
<html> | ||
<head> | ||
<meta name="go-import" content="go.bytecodealliance.org/foo git https://github.com/bytecodealliance/go-foo" /> | ||
</head> | ||
</html> | ||
``` | ||
|
||
NOTE: Vanity URLs must be unique and not shadow existing package names in this repository. For example: Creating a vanity URL `go.bytecodealliance.org/cm` would shadow the `cm` package in this repository. |
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 @@ | ||
<html> | ||
<head> | ||
<meta name="go-import" content="go.bytecodealliance.org git https://github.com/bytecodealliance/go-modules" /> | ||
</head> | ||
</html> |