summaryrefslogtreecommitdiff
path: root/Userland/Utilities/markdown-check.cpp
AgeCommit message (Collapse)Author
2023-02-13LibCore: Remove `Stream.h`Tim Schumacher
2023-02-13LibCore: Move Stream-based file into the `Core` namespaceTim Schumacher
2023-02-13LibCore: Rename `File` to `DeprecatedFile`Tim Schumacher
As usual, this removes many unused includes and moves used includes further down the chain.
2023-01-27AK: Remove StringBuilder::build() in favor of to_deprecated_string()Linus Groh
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
2023-01-08markdown-check: Check that binary links use the text "Open"kleines Filmröllchen
Binary links will only be allowed in these contexts, which is all that we currently use them for anyways. This mainly gets rid of useless "not checking local link" spam relating to binaries, and only a few local links remain.
2023-01-08markdown-check: Check that no old-style inter-manpage links are usedkleines Filmröllchen
We've had quite some instances of people reintroducing these kinds of links because they didn't know about the "new" help:// scheme. This check should now prevent that from happening, though it might in rare circumstances trigger a false positive.
2023-01-02Utilities: Resolve manpage paths more robustly in markdown-checkkleines Filmröllchen
The path is now relative to the Serenity source directory, and later parts of the URL path are not simply discarded. This allows links into subsection man pages to be checked correctly.
2022-12-12LibCore: Rename `Stream::read_all` to `read_until_eof`Tim Schumacher
This generally seems like a better name, especially if we somehow also need a better name for "read the entire buffer, but not the entire file" somewhere down the line.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-19markdown-check: Port to Core::StreamSam Atkins
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-07-06AK: Use an enum instead of a bool for String::replace(all_occurences)DexesTTP
This commit has no behavior changes. In particular, this does not fix any of the wrong uses of the previous default parameter (which used to be 'false', meaning "only replace the first occurence in the string"). It simply replaces the default uses by String::replace(..., ReplaceMode::FirstOnly), leaving them incorrect.
2022-03-29markdown-check: Use Core::ArgsParserKenneth Myhra
2022-03-29markdown-check: Port to LibMainKenneth Myhra
2022-03-20Everywhere: Move js/web/wasm tests under /home/anon/TestsBrian Gianforcaro
2022-02-26Utilities+Meta: Check icons in markdown-checkkleines Filmröllchen
We use the environment variable SERENITY_SOURCE_DIR to resolve and check icon links. This is a bit inconvenient as SERENITY_SOURCE_DIR needs to be set correctly before invoking the markdown checker, but as we use it through the check-markdown script anyways, I think it's not a problem.
2022-02-26Utilities: Check help:// manpage links in markdown-checkkleines Filmröllchen
2022-02-26Utilities: Perform most markdown-check link checking with URLskleines Filmröllchen
This should be much more robust against weirdly-formatted links that are still valid URLs, additionally, future URL checkers can immediately take advantage of the already-existing URL object. Note that not all markdown links are valid URLs or paths, and that that is intentional (e.g. only fragments, relative links etc.). We don't just fail when something is not a URL.
2022-02-26Utilities: Allow link checking in markdown-check to fail during visitkleines Filmröllchen
With a special flag, we can now invalidate the links early on.
2022-02-26Utilities: Partially revert 9ec2b37kleines Filmröllchen
This removed checks for missing manpages, which we now need again as the manpages are checked again.
2022-01-22markdown-check: Ignore absolute icon pathsIdan Horowitz
We have no good way to handle these yet, and there's no point in forcing everyone to skip their pre-commit checks.
2022-01-12Meta: Fix Markdown lintingkleines Filmröllchen
The new help://man links were linted incorrectly, and they're now skipped by the markdown linter, such as in the pre-commit hook
2022-01-11Meta: Convert new help page link styles for the man page websitekleines Filmröllchen
The special URL links (help://man) and the application opening links now work on the man page website. While the page links are translated correctly, the application launch can't be implemented. For this reason, an explanatory error page is shown instead.
2021-10-22man.serenityos.org: Use pandoc for listings and landing pageBen Wiederhake
This makes all pages look and feel the same, because they all use the default CSS generated by pandoc. Also, it inserts the banner everywhere at the top, not only into the top-level index.html. Credit to @xSlendiX for suggesting that `-B` works here.
2021-10-10Manpages+markdown-checker: Permit only specific missing filesBen Wiederhake
I can't write these manpages ad-hoc, and in most cases I don't want to remove the link because it is justified. The hope is that with this FIXME in place, there is more motivation to write these manpages for someone who knows enough about them. Or at least we will introduce fewer dead links in the future, making Help more useful.
2021-10-10markdown-checker: New tool that checks document linksBen Wiederhake