Commit Graph

5 Commits

Author SHA1 Message Date
Joe Gregorio
29399939c8 [docsy] Lean on Hugo to generate the ToC for each page.
Instead of manually maintaining them, which is error prone.

Change-Id: If78a564e4afe238d195b952fea276154b2e12b06
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/449917
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
2021-09-17 17:47:52 +00:00
Brian Osman
56273c9248 Update SkSL docs slightly
- Use .eval() in all example fiddles
- Add some more explanation of how the parts of a draw/paint contribute
  to the GPU fragment shader.

Bug: skia:12302
Change-Id: Ib69b9af39368c980e1aa9206af585f26498d083e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/445640
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-09-03 19:09:52 +00:00
Brian Osman
7cf34848da Update SkSL fiddles embedded in user documentation
https://skia.org/docs/user/sksl/?cl=428878

Bug: skia:12213
Change-Id: Id85edabd0977942bd7bbd0ab3f0d3ecd85340411
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/428878
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-15 15:12:31 +00:00
Brian Osman
0351d5af88 Add user docs about Skia coordinate spaces
Includes a general explanation of device vs. local, how shaders don't
move with geometry, and how to use canvas transforms. Also shows
localMatrix on an SkShader. Finally, links to that from the SkSL page,
and adds SkSL-specific notes about coordinates.

Bug: skia:11763
Change-Id: I31462aff66ff8514392098b972a10e7c96e4f254
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/393516
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2021-04-09 13:50:19 +00:00
Joe Gregorio
10d45b867f [docysserver] Move to the Hugo/Docsy set of files as the primary documentation.
Bug: skia:11799
Change-Id: Ic9e9bc6a91cf1a7c9166ca1eae4aec6b00eb5e2a
Docs-Preview: https://skia.org/?cl=391436
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/391436
Reviewed-by: Heather Miller <hcm@google.com>
2021-03-31 19:16:09 +00:00