1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 04:07:34 +00:00

markdown-check: Allow generating a manpage link graph

Using the cross-page links, we can generate a directed graph showing the
topology of which pages refer to other pages. This is not just for fun:
the links show how often a page is linked (since links are not
deduplicated on purpose), which pairs of pages only have links in one
direction (where a link in the other direction may be useful), which
groups of closely-interlinked pages exist, and which pages have few or
no links to other pages.

The EXTRA_MARKDOWN_CHECK_ARGS argument to the check-markdown script can
be used to inject the -g flag for generating the graph on all manpages.
This commit is contained in:
kleines Filmröllchen 2023-07-02 13:20:23 +02:00 committed by Linus Groh
parent f53aa959df
commit d7a2b5e65b
4 changed files with 96 additions and 3 deletions

View file

@ -400,6 +400,7 @@ if (BUILD_LAGOM)
JS
Line
Locale
Manual
Markdown
PDF
Regex
@ -548,7 +549,7 @@ if (BUILD_LAGOM)
target_link_libraries(lzcat LibCompress LibCore LibMain)
add_executable(markdown-check ../../Userland/Utilities/markdown-check.cpp)
target_link_libraries(markdown-check LibFileSystem LibMarkdown LibMain)
target_link_libraries(markdown-check LibFileSystem LibMarkdown LibMain LibManual)
if (NOT EMSCRIPTEN)
add_executable(ntpquery ../../Userland/Utilities/ntpquery.cpp)