21 Commits

Author SHA1 Message Date
Eli Bendersky
b4568f3025 Refactor page footer to separate template
Fixes #387
2021-09-02 10:26:17 -07:00
Eli Bendersky
7a5cb99b84
Add myself to footer (#386)
* Add myself to footer

* Add myself to the example template as well, and rebuild
2021-08-26 15:50:29 -07:00
Blake Bourque
58e66a8103
Use chroma (#346)
Use Chroma for syntax highlighting and remove vendor'd Pygments
2021-02-27 06:30:00 -08:00
Hana
9e216da9ef go.mod: add go.mod and move pygments to third_party
After go1.16, go will use module mode by default,
even when the repository is checked out under GOPATH
or in a one-off directory. Add go.mod, go.sum to keep
this repo buildable without opting out of the module
mode.

> go mod init github.com/mmcgrana/gobyexample
> go mod tidy
> go mod vendor

In module mode, the 'vendor' directory is special
and its contents will be actively maintained by the
go command. pygments aren't the dependency the go will
know about, so it will delete the contents from vendor
directory. Move it to `third_party` directory now.

And, vendor the blackfriday package.

Note: the tutorial contents are not affected by the
change in go1.16 because all the examples in this
tutorial ask users to run the go command with the
explicit list of files to be compiled (e.g.
`go run hello-world.go` or `go build command-line-arguments.go`).
When the source list is provided, the go command does
not have to compute the build list and whether it's
running in GOPATH mode or module mode becomes irrelevant.
2021-02-15 16:45:26 -05:00
Mark McGranaghan
a1fd3bf037 Regenerate 2020-04-10 17:49:18 -07:00
Oleg Butuzov
646c8b39da bugfix (mmcgrana/gobyexample#294) sha1 sum calculator
This bugfix implements correct way to calculate source sha1 hash, before it will changed,
by propagation of unchanged sources.

This commit will also include regenerated static files and *.hash files.
2019-10-22 14:27:02 +03:00
Mark McGranaghan
78e1fd61ec Clean up merge 2019-09-01 16:09:36 -07:00
Shivam Rathore
1943fe0803 arrow keys navigation added | fixes mmcgrana/gobyexample#222 2019-07-08 19:04:14 -07:00
Eli Bendersky
baf22e84e7 Move <img> for play.golang.org to separate line in the template
This will make future diffs easier to read because code changes modify the
hash/link, but the image data stays the same.

Note that there are whitespace diffs in the generated files where there
is no image. This is because there was a stray tab in the template before,
and now it's replaced by spaces.

Fixes #235
2019-06-04 19:03:37 -07:00
Eli Bendersky
7c160440be Use tabs as the canonical source indentation in git
Space conversion is done during generation only. Fixes #192
2019-06-04 07:30:58 -07:00
Mark McGranaghan
cf4b676292 Use data uri to avoid requesting tiny image 2019-05-30 07:42:20 -07:00
Mark McGranaghan
616ddedf59 Build for GA removal 2019-05-30 06:55:38 -07:00
Mark McGranaghan
cdd115dfc8 Update author links 2019-03-20 11:28:21 -07:00
Mark McGranaghan
2835629767 Rebuild to reflect meta change 2015-09-14 08:50:18 -07:00
Mark McGranaghan
8e97559c03 Rebuild 2014-01-10 06:31:15 -08:00
Carson McDonald
3e50762f31 Change succesfully to successfully 2013-12-23 16:58:58 -05:00
Mark McGranaghan
6da8afaa7c Change Twitter link 2013-11-17 08:43:04 -08:00
Mark McGranaghan
49870a9701 place gopher run link in top-right of rendered go source 2013-10-06 09:25:48 -07:00
Mark McGranaghan
a8bd1b25da move image placement styling to css 2013-10-06 09:08:06 -07:00
Mark McGranaghan
056d0aff68 initial generation for play.golang.org linking, ref #37 2013-09-11 08:52:05 -07:00
Mark McGranaghan
72b227694f first pass at import 2012-11-17 07:08:12 -08:00