From 0914829ad4cfdbe85db9d54c4e5cc1fdd44b82be Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 3 Apr 2026 15:18:38 -0500 Subject: feat: add in-app man pages browser Add a native Man Pages section to the More tab with in-app browsing for man.sr.ht documentation and srht.site pages. - add ManPageService for fetching and extracting public docs content - add ManPageBrowserView and ManPageDetailView - add More tab navigation for Man Pages - support in-place navigation for internal documentation links - allow HTMLWebView to intercept internal links and use a base URL - support man.sr.ht and srht.site content extraction - remove heading permalink "#" anchors from man page rendering - fix relative links, fragment links, and srht.site CTA/icon layout --- Hutch/Views/More/MoreView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Hutch/Views/More/MoreView.swift') diff --git a/Hutch/Views/More/MoreView.swift b/Hutch/Views/More/MoreView.swift index 9c5cf92..ae7228d 100644 --- a/Hutch/Views/More/MoreView.swift +++ b/Hutch/Views/More/MoreView.swift @@ -5,7 +5,6 @@ struct MoreView: View { private let unsupportedLinks: [(title: String, url: URL)] = [ ("chat.sr.ht", URL(string: "https://chat.sr.ht")!), - ("man.sr.ht", URL(string: "https://man.sr.ht")!), ("srht.site", URL(string: "https://srht.site")!) ] @@ -21,6 +20,10 @@ struct MoreView: View { NavigationLink(value: MoreRoute.lists) { Label("Mailing Lists", systemImage: "list.bullet.rectangle") } + + NavigationLink(value: MoreRoute.manPageBrowser) { + Label("Man Pages", systemImage: "book") + } NavigationLink(value: MoreRoute.pastes) { Label("Pastes", systemImage: "doc.on.clipboard") -- cgit v1.2.3