summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibManual
AgeCommit message (Collapse)Author
2023-05-08LibManual: Allow querying on a help URLTim Ledbetter
This allows Help and man to open pages from a help URL specified on the command line.
2023-05-08LibManual: Ensure page exists when opening a help URLTim Ledbetter
Previously, Help could crash when attempting to open a help URL for a page that doesn't exist.
2023-04-25LibManual: Allow paths that include subsections when creating PageNodesTim Ledbetter
Previously, attempting to open a man file within a subsection would fail.
2023-04-25LibManual: Associate SubsectionNode with similarly named markdown fileTim Ledbetter
For a subsection named `Foo` with a markdown file `Foo.md` in the same directory, the document `Foo.md` will be returned when the subsection is selected. This prevents PageNodes and SubsectionNodes from sharing the same name, which fixes an issue in Help where subsections could not be navigated.
2023-04-15AK+Everywhere: Replace URL::paths() with path_segment_at_index()MacDue
This allows accessing and looping over the path segments in a URL without necessarily allocating a new vector if you want them percent decoded too (which path_segment_at_index() has an option for).
2023-03-21Everywhere: Use `LibFileSystem` where trivialCameron Youell
2023-03-06Everywhere: Remove NonnullRefPtr.h includesAndreas Kling
2023-03-06Everywhere: Stop using NonnullRefPtrVectorAndreas Kling
This class had slightly confusing semantics and the added weirdness doesn't seem worth it just so we can say "." instead of "->" when iterating over a vector of NNRPs. This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
2023-02-25Everywhere: Use _{short_,}string to create Strings from literalsLinus Groh
2023-02-21LibManual: Fix const-correctness issuesAndreas Kling
2023-02-13LibCore: Remove `Stream.h`Tim 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-02Help+LibManual: Open sibling page for subsectionskleines Filmröllchen
Clicking on a subsection now displays the sibling page, which is intended to be the main page for that section.
2023-01-02LibManual: Create subsections for subdirectories automaticallykleines Filmröllchen
2023-01-02LibManual: Add SubsectionNodekleines Filmröllchen
2023-01-02Help+LibManual: Move URL handling to LibManualkleines Filmröllchen
2023-01-02LibManual: Allow overriding a Node's path calculationkleines Filmröllchen
This is necessary for subclassing SectionNode, but generally allows more code to rely on path() virtual dispatch always finding the correct path regardless of the static type.
2023-01-02Help+LibManual: Make the children accessor falliblekleines Filmröllchen
This is convenient for the section node which might compute children on the fly.
2022-12-12Help+LibManual: Without arguments, open index page instead of crashingkleines Filmröllchen
This is the old behavior before the recent LibManual refactor. It also moves the definition of the index page into LibManual for better reuse.
2022-12-11Help+man+LibManual: Move argument handling to LibManualkleines Filmröllchen
This deduplicates argument handling logic from Help and man and makes it more modular for future use cases. The argument handling works as before: two arguments specify section and page (in this order), one argument specifies either a page (the first section that it's found in is used) or a path to a manpage markdown file.
2022-12-11Help+LibManual: Move all manpage path handling to LibManualkleines Filmröllchen
This way, we'll have an easier time changing these paths.
2022-12-11LibManual: Refactor SectionNode in preparation for subsectionskleines Filmröllchen
- Calculate the full name on demand - Make section and name protected - Reorder some members logically - Change the name getter to be fallible, as some implementors need to allocate
2022-12-11Help+LibManual: Move non-UI-specific manual handling to LibManualkleines Filmröllchen
This is a first step in deduplicating code within and across Help and man. Because LibManual also doesn't contain any DeprecatedString, some adjustments to Help's string handling is included, just to interoperate with LibManual better. Further work in this area mostly requires String APIs in LibGUI.