6 Commits

Author SHA1 Message Date
Eli Bendersky
4dc83f3ccc Update chroma from v0.8 to v2 (v2.8.0) and fix up formatting 2023-08-21 07:05:01 -07:00
Eli Bendersky
b4f289fe92 Adjust for gofmt changes in 1.19
In 1.19, gofmt slightly changes how comments are formatted; a blank `//` is
inserted before `//go:embed` directives.

To accommodate for that in generate.go, treat empty comment lines as
part of docs segments.
2022-09-08 05:55:05 -07:00
Andreas Deininger
da13e2fbe7
Improving links (http -> https) (#425) 2022-06-06 11:31:46 -07:00
Eli Bendersky
5f2ab6c8a2 More comment tweaks to the new embed-directive 2022-05-24 06:28:18 -07:00
Eli Bendersky
fc88db1814 Fix up embed-directive example and rename files to be shorter 2022-05-24 06:11:22 -07:00
peterzhu1992
7e4533640b
Add embed-directive example (#423)
* Add embed-directive example and rename embedding to struct-embedding

Signed-off-by: peterzhu1992 <peterzhu1992@gmail.com>

* Minor tweaks

Signed-off-by: peterzhu1992 <peterzhu1992@gmail.com>

* Add some improvements

Signed-off-by: peterzhu1992 <peterzhu1992@gmail.com>

* Add isDir() checks for measure.go and generate.go in tools

Signed-off-by: peterzhu1992 <peterzhu1992@gmail.com>
2022-05-24 05:31:13 -07:00