Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/playground/playground.js.map
/playground/compile.js.map
.DS_Store
/sourcey/node_modules/
Binary file added docs/_og/api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/package-root.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-build-cache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-build-versionhack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-astutil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-errlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-gopherjspkg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-incjs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-linkname.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-natives.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-prelude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-sources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler-typesutil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-compiler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-js.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/api/pkg-nosync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_og/introduction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions docs/api.html

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions docs/api/package-root.html

Large diffs are not rendered by default.

148 changes: 148 additions & 0 deletions docs/api/pkg-build-cache.html

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions docs/api/pkg-build-versionhack.html

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions docs/api/pkg-build.html

Large diffs are not rendered by default.

163 changes: 163 additions & 0 deletions docs/api/pkg-compiler-astutil.html

Large diffs are not rendered by default.

80 changes: 80 additions & 0 deletions docs/api/pkg-compiler-errlist.html

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions docs/api/pkg-compiler-filter.html

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions docs/api/pkg-compiler-gopherjspkg.html

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions docs/api/pkg-compiler-incjs.html

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions docs/api/pkg-compiler-linkname.html

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions docs/api/pkg-compiler-natives.html

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions docs/api/pkg-compiler-prelude.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/api/pkg-compiler-sources.html

Large diffs are not rendered by default.

212 changes: 212 additions & 0 deletions docs/api/pkg-compiler-typesutil.html

Large diffs are not rendered by default.

275 changes: 275 additions & 0 deletions docs/api/pkg-compiler.html

Large diffs are not rendered by default.

277 changes: 277 additions & 0 deletions docs/api/pkg-js.html

Large diffs are not rendered by default.

251 changes: 251 additions & 0 deletions docs/api/pkg-nosync.html

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions docs/index.html

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions docs/introduction.html

Large diffs are not rendered by default.

159 changes: 159 additions & 0 deletions docs/llms-full.txt

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions docs/llms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# GopherJS

> Reference documentation for the GopherJS compiler and its public Go packages.

## Overview

- [GopherJS documentation](/docs/introduction.html): Reference documentation for the GopherJS compiler and its public Go packages.

## API Reference

- [github.com/gopherjs/gopherjs](/docs/api/package-root.html): github.com/gopherjs/gopherjs
- [build](/docs/api/pkg-build.html): Package build implements GopherJS build system.
- [build/cache](/docs/api/pkg-build-cache.html): Package cache solves one of the hardest computer science problems in application to GopherJS compiler outputs.
- [build/versionhack](/docs/api/pkg-build-versionhack.html): Package versionhack makes sure go/build doesn't disable module support whenever GopherJS is compiled by a different Go version than it's targeted Go version.
- [compiler](/docs/api/pkg-compiler.html): Package compiler implements GopherJS compiler logic.
- [compiler/astutil](/docs/api/pkg-compiler-astutil.html): github.com/gopherjs/gopherjs/compiler/astutil
- [compiler/errlist](/docs/api/pkg-compiler-errlist.html): github.com/gopherjs/gopherjs/compiler/errlist
- [compiler/filter](/docs/api/pkg-compiler-filter.html): github.com/gopherjs/gopherjs/compiler/filter
- [compiler/gopherjspkg](/docs/api/pkg-compiler-gopherjspkg.html): Package gopherjspkg provides core GopherJS packages via a virtual filesystem.
- [compiler/incjs](/docs/api/pkg-compiler-incjs.html): github.com/gopherjs/gopherjs/compiler/incjs
- [compiler/linkname](/docs/api/pkg-compiler-linkname.html): github.com/gopherjs/gopherjs/compiler/linkname
- [compiler/natives](/docs/api/pkg-compiler-natives.html): Package natives provides native packages via a virtual filesystem.
- [compiler/prelude](/docs/api/pkg-compiler-prelude.html): github.com/gopherjs/gopherjs/compiler/prelude
- [compiler/sources](/docs/api/pkg-compiler-sources.html): github.com/gopherjs/gopherjs/compiler/sources
- [compiler/typesutil](/docs/api/pkg-compiler-typesutil.html): github.com/gopherjs/gopherjs/compiler/typesutil
- [js](/docs/api/pkg-js.html): Package js provides functions for interacting with native JavaScript APIs.
- [nosync](/docs/api/pkg-nosync.html): github.com/gopherjs/gopherjs/nosync
- [API Reference](/docs/api.html): github.com/gopherjs/gopherjs
1 change: 1 addition & 0 deletions docs/search-index.json

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Sourcey https://sourcey.com -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://gopherjs.github.io/docs/introduction.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/package-root.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-build.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-build-cache.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-build-versionhack.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-astutil.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-errlist.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-filter.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-gopherjspkg.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-incjs.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-linkname.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-natives.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-prelude.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-sources.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-compiler-typesutil.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-js.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api/pkg-nosync.html</loc></url>
<url><loc>https://gopherjs.github.io/docs/api.html</loc></url>
</urlset>
2,474 changes: 2,474 additions & 0 deletions docs/sourcey.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/sourcey.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<html>
<head>
<meta http-equiv="refresh" content="0;url=https://github.com/gopherjs/gopherjs">
<meta http-equiv="refresh" content="0;url=./docs/">
</head>
<body>
<ul>
<li>Read the <a href="./docs/">GopherJS documentation</a></li>
<li>See <a href="https://github.com/gopherjs/gopherjs">GopherJS on GitHub</a></li>
<li>See <a href="./playground">GopherJS Playground</a></li>
</ul>
</body>
</html>
</html>
35 changes: 35 additions & 0 deletions sourcey/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Sourcey documentation build

This directory contains the reproducible source for the static documentation
served from `/docs/`.

The committed `godoc.json` snapshot was generated from
`gopherjs/gopherjs@490705b1d6fc7d5bd9202ac41888e146183328eb`. The Sourcey build uses snapshot
mode, so publishing the committed site does not require a Go toolchain.

## Build

From this directory:

```sh
npm install
npm run build
```

The build writes the static site to `../docs/`. Its postbuild step also fixes a
Sourcey 3.6.5 API landing link and normalizes public copy.

## Refresh the snapshot

Clone the GopherJS source at the intended commit next to this repository, then
run:

```sh
sourcey godoc \
--module ../gopherjs \
--packages "./..." \
--exclude "github.com/gopherjs/gopherjs/internal,github.com/gopherjs/gopherjs/tests,github.com/gopherjs/gopherjs/compiler/internal" \
--out godoc.json
```

Update `sourceCommit` in `sourcey.config.ts` and rebuild in the same change.
Loading