-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
docs: migrate README to MkDocs #884
Conversation
Codecov Report
@@ Coverage Diff @@
## main #884 +/- ##
==========================================
- Coverage 68.50% 61.80% -6.70%
==========================================
Files 57 65 +8
Lines 2210 2579 +369
==========================================
+ Hits 1514 1594 +80
- Misses 564 849 +285
- Partials 132 136 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments to start with, but overall
- I suggest that we define a Makefile target to preview the docs locally. See for example https://github.com/aquasecurity/starboard/blob/main/Makefile#L126
- We should use relative links to Markdown sources instead of absolute URLs
- In installation section I think it's worth using macros plugin and define a variable that holds the current release version and refer to that. See for example https://github.com/aquasecurity/starboard/blob/main/mkdocs.yml#L60
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
This PR was already big, so I thought I should add it in another PR. But I've added here.
I didn't know MkDocs also supports relative links. Thanks!
You can see what I did here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Makefile
Outdated
@@ -5,6 +5,9 @@ GOPATH=$(shell go env GOPATH) | |||
GOBIN=$(GOPATH)/bin | |||
GOSRC=$(GOPATH)/src | |||
|
|||
MKDOCS_IMAGE := aquasec/mkdocs-material:starboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT You may want to rename tag to dev or trivy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad... Done 098a322
* docs: slim README * docs: add images * docs: update README * docs: add futher reading * docs: add docs for maintainers * docs: fix links * docs: add notes * Update docs/further.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/further.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/further.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/index.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/index.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/index.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * docs: update mkdocs.yml * chore: add a mkdocs target to Makefile * docs(installation): use git.tag * chore(Makefile): fix the tag of the mkdocs image Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
* docs: slim README * docs: add images * docs: update README * docs: add futher reading * docs: add docs for maintainers * docs: fix links * docs: add notes * Update docs/further.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/further.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/further.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/index.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/index.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * Update docs/index.md Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com> * docs: update mkdocs.yml * chore: add a mkdocs target to Makefile * docs(installation): use git.tag * chore(Makefile): fix the tag of the mkdocs image Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Overview
This PR migrates README to MkDocs. MkDocs manages two streams:
main
branchaquasecurity.github.io/trivy
redirects tolatest
GitHub Pages
https://aquasecurity.github.io/trivy/latest/
References
https://squidfunk.github.io/mkdocs-material/reference/admonitions/