1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-01 13:14:33 +00:00
kata-containers/tests/cmd/check-markdown
Chelsea Mafrica 8ad433d4ad tests: move markdown check tool to main repo
Move the tool as a dependency for static checks migration.

Fixes 

Signed-off-by: Bin Liu <bin@hyper.sh>
Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Signed-off-by: Julio Montes <julio.montes@intel.com>
2023-11-28 11:13:55 -08:00
..
add_test.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
add.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
check.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
display_text.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
display_tsv.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
display.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
doc.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
extract.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
hack.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
heading_test.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
heading.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
link_test.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
link.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
main.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
Makefile tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
node.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
parse.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
README.md tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
record.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
search.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
stats.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
toc.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
types.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
utils_test.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
utils.go tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00
VERSION tests: move markdown check tool to main repo 2023-11-28 11:13:55 -08:00

Overview

The Kata Project comprises a number of GitHub repositories. All these repositories contain documents written in GitHub-Flavoured Markdown format.

Linking in documents is strongly encouraged but due to the number of internal and external document links, it is easy for mistakes to be made. Also, links can become stale when one document is updated but the documents it depends on are not.

Tool summary

The kata-check-markdown tool checks a markdown document to ensure all links within it are valid. All internal links are checked and by default all external links are also checked. The tool is able to suggest corrections for some errors it finds. It can also generate a TOC (table of contents).

Usage

Basic

$ kata-check-markdown check README.md

Generate a TOC

$ kata-check-markdown toc README.md

List headings

To list the document headings in the default text format:

$ kata-check-markdown list headings README.md

To list the links in a document in tab-separated format:

$ kata-check-markdown list links --format tsv README.md

Full details

Lists all available options:

$ kata-check-markdown -h