41 Commits

Author SHA1 Message Date
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
Mark McGranaghan
ee5c86daa9 Merge branch 'master' into clipboard 2019-09-01 15:42:08 -07:00
Shivam Rathore
1943fe0803 arrow keys navigation added | fixes mmcgrana/gobyexample#222 2019-07-08 19:04:14 -07:00
Eli Bendersky
fb2c28e58a When testing on Travis, verify that tools/build was run
This is done by routing the generation of HTML into a temporary directory,
and checking its diff agains the existing public/ when running tests.

Fixes #237
2019-07-01 06:44:09 -07:00
Mark McGranaghan
bee52f22ce Change word 2019-06-08 11:21:40 -04:00
Eli Bendersky
70cb6ffb45 Add printout when sending a request to play.golang.org 2019-06-07 06:26:27 -07:00
Eli Bendersky
cb0f0a3056 Tweak logged text 2019-06-07 06:17:26 -07:00
Eli Bendersky
cdbdae9715 Do progress reporting during parsing/processing stage, not HTML render stage 2019-06-07 06:12:30 -07:00
Eli Bendersky
3d0bde4f8f Add verbose guard in parseExamples 2019-06-05 10:17:09 -07:00
Eli Bendersky
5487e88919 Add VERBOSE option to tools/build and generate.go
VERBOSE will be set by TRAVIS (but can also be set by user to diagnose slow
builds). Using an env var so that it automatically propagates to all the
sub-scripts and tools without having to pass it through tools/build explicitly.
2019-06-05 10:15:13 -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
0a96c21881 Allows tools to use Go-standard formatting 2018-02-01 17:07:33 -05:00
Mark McGranaghan
451160492a Check for template errors 2018-02-01 16:09:53 -05:00
Noah Zoschke
08b8a98248 remove unreachable code (go vet) 2018-01-26 08:52:01 -08:00
Noah Zoschke
d5a7560cdc Url should be URL (golint) 2018-01-26 08:51:01 -08:00
Noah Zoschke
13a5dea6a7 Id should be ID (golint) 2018-01-26 08:48:48 -08:00
Noah Zoschke
116b4c7341 exported types should have comment (golint) 2018-01-26 08:46:33 -08:00
julien
dc33273d8a added clipboard functionality with your comments 2017-01-03 17:50:49 +01:00
Mark McGranaghan
a334236cc3 Remove todos
We are not planning to address them at this point.
2016-12-27 12:54:04 -08:00
Mark McGranaghan
fd5e6d9ef6 Handle empty spans generated by newer Pygments 2016-12-27 08:28:35 -08:00
Mark McGranaghan
5fa2fcc49b Use https for play.golang.org, now required 2016-06-05 14:28:32 -07: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
afdf0cc2b4 add trailing newlines 2013-10-06 08:50:23 -07:00
Mark McGranaghan
b0b6dbeb1b switch to if 2013-10-06 08:47:52 -07:00
Mark McGranaghan
37028a7f0f simplify parseHashFile 2013-10-06 08:45:36 -07:00
Mark McGranaghan
d61579313a just panic here for now 2013-10-06 08:42:34 -07:00
Mark McGranaghan
056d0aff68 initial generation for play.golang.org linking, ref #37 2013-09-11 08:52:05 -07:00
Mark McGranaghan
0c18c9689a initial changes to generate play buttons, ref #37 2013-09-11 08:40:37 -07:00
Mark McGranaghan
845529c167 use vendored pygmentize 2012-11-17 08:22:49 -08:00
Mark McGranaghan
72b227694f first pass at import 2012-11-17 07:08:12 -08:00
Mark McGranaghan
5110cee76a publish time-formatting-parsing 2012-11-01 15:26:20 -07:00
Adam Moore
a8f665c1de Use whichPygmentize generated path instead! 2012-10-12 12:11:14 +09:00
Adam Moore
23abb4c310 use gofmt tool 2012-10-12 11:57:27 +09:00
Adam Moore
0eddaf3c2c Don't assume pygmentize path (I use pythonbrew!). 2012-10-12 11:48:49 +09:00
Mark McGranaghan
8116d5abe3 explicitly which and check pygmentize bin. ref #15 2012-10-11 18:34:51 -07:00
Mark McGranaghan
c87fc65436 check all the errors. ref #15 2012-10-11 18:30:06 -07:00
Mark McGranaghan
93fb090961 templates 2012-10-11 11:03:52 -07:00
Mark McGranaghan
973ace22a0 use the hex trick here as well 2012-10-10 15:41:19 -07:00
Mark McGranaghan
d3bc797a70 spawning and execing processes 2012-10-10 11:52:34 -07:00
Mark McGranaghan
0c1a7354e5 tighten 2012-10-10 06:54:46 -07:00