commit | 7f11c87315815a78eb3554e4d5c76e059c350f60 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Tue Jan 15 05:10:42 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 15 05:10:42 2019 |
tree | cb6fc0b0addb4e33b3c352d16b530e034ee547e6 | |
parent | e22dfba782fbedc56bca4ed0818f2113cc3f914f [diff] |
[lucicfg] docgen: Add docstring parser. It parses a docstring into a main body, a list of arguments and a list of additional sections, like "Returns". All extracted strings are properly deindented and cleaned up, ready to be inserted into e.g. markdown. This is surprisingly non-trivial, complicated by careful handling of indentation, since it is syntactically significant in this case. R=tandrii@chromium.org BUG=833946 Change-Id: I38c1f99cb71331e2f6617196415b4e914e15614e Reviewed-on: https://chromium-review.googlesource.com/c/1408602 Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
Contributing uses the same flow as Chromium contributions.