feat: add support for vanity imports
diff --git a/docs/cli/README b/docs/cli/README new file mode 100644 index 0000000..08ae0c9 --- /dev/null +++ b/docs/cli/README
@@ -0,0 +1,4 @@ +This directory is just here to support our vanity URLs. + +When a user (or their editor) runs `go get aspect.build/cli` it will request the +index.html in this folder, telling it to get the actual sources from github.
diff --git a/docs/cli/index.html b/docs/cli/index.html new file mode 100644 index 0000000..c5b05d0 --- /dev/null +++ b/docs/cli/index.html
@@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8" /> + <title>aspect.build/cli</title> + <meta + name="go-import" + content="aspect.build/cli git https://github.com/aspect-dev/aspect-cli" + /> + <meta + name="go-source" + content="aspect.build/cli https://github.com/aspect-dev/aspect-cli https://github.com/aspect-dev/aspect-cli/tree/master{/dir} https://github.com/aspect-dev/aspect-cli/blob/master{/dir}/{file}#L{line}" + /> + <style> + * { + font-family: sans-serif; + } + body { + margin-top: 0; + } + .content { + display: inline-block; + } + code { + display: block; + font-family: monospace; + font-size: 1em; + background-color: #d5d5d5; + padding: 1em; + margin-bottom: 16px; + } + ul { + margin-top: 16px; + margin-bottom: 16px; + } + </style> + </head> + <body> + <div class="content"> + <h2>aspect.build/cli</h2> + <code>go get aspect.build/cli</code> + <code>import "aspect.build/cli"</code> + Home: + <a href="https://godoc.org/aspect.build/cli" + >https://godoc.org/aspect.build/cli</a + ><br /> + Source: + <a href="https://github.com/aspect-dev/aspect-cli" + >https://github.com/aspect-dev/aspect-cli</a + ><br /> + </div> + </body> +</html>