-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: generate docs for reference automatically #4377
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4377 +/- ##
=======================================
Coverage 49.46% 49.46%
=======================================
Files 283 283
Lines 30909 30909
=======================================
Hits 15289 15289
Misses 13457 13457
Partials 2163 2163
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 6cbb0b9 into e52ae78 - view on LGTM.com new alerts:
|
74a645a
to
3956ab9
Compare
8c0925a
to
e962ebc
Compare
2719ff6
to
ba49c4f
Compare
79bd447
to
6a7af6f
Compare
905794a
to
d7d6e1b
Compare
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Feat: refactor hardcode example to embd.FS Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: refactor doc gen for general types Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: update generate format Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: generate terraform reference docs Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Feat: add definition reference generate script Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: refine output format Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: remove dup annotation Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: update doc Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: add i18n support Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Feat: add translation Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Feat: add policy definition gen Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: add compatibility for lable Annotation change Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: add more tests Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Feat: allow mark example doc url on annotation Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> Fix: align vela show with vela def doc-gen, add vela def show equals with vela show Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Signed-off-by: Jianbo Sun jianbo.sjb@alibaba-inc.com
Description of your changes
enhance
vela def doc-gen
, support for:add scripts for generate vela built-in reference docs, add some rules for generated docs
https://github.com/kubevela/kubevela.io/pull/857/files#diff-83f8c791b2a42df6f97d94ab7ca7559d6ede1a6dbaa6bc27b2acc2e23e6a37cc
Refactor the code, align with
vela show
trim prefix of definition annoatations/label if it has oam.dev suffix, affected labels:
A definition annoation ("definition.oam.dev/example-url") was added, it can be used to describe the definition example file.
Now, a definition can describe itself, for example:
It contains the description as field, examples loaded from that url and parameter specification generated fromtemplate.paramer.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer