summaryrefslogtreecommitdiff
path: root/Hutch/App/RootView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-03 15:18:38 -0500
committerChristian Cleberg <[email protected]>2026-04-03 15:18:38 -0500
commit0914829ad4cfdbe85db9d54c4e5cc1fdd44b82be (patch)
tree4f5c1e7cea0737917e9db3fad458be58827842ba /Hutch/App/RootView.swift
parent18a9f62c9acadced60657addb61c2d4d8c1aab17 (diff)
downloadhutch-0914829ad4cfdbe85db9d54c4e5cc1fdd44b82be.tar.gz
hutch-0914829ad4cfdbe85db9d54c4e5cc1fdd44b82be.tar.bz2
hutch-0914829ad4cfdbe85db9d54c4e5cc1fdd44b82be.zip
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
Diffstat (limited to 'Hutch/App/RootView.swift')
-rw-r--r--Hutch/App/RootView.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/Hutch/App/RootView.swift b/Hutch/App/RootView.swift
index a71b247..96c17a8 100644
--- a/Hutch/App/RootView.swift
+++ b/Hutch/App/RootView.swift
@@ -269,6 +269,8 @@ enum MoreRoute: Hashable {
case settings
case mailingList(InboxMailingListReference)
case thread(InboxThreadSummary)
+ case manPageBrowser
+ case manPage(URL)
}
private struct MoreNavigationRoot: View {
@@ -302,6 +304,10 @@ private struct MoreNavigationRoot: View {
NeedsAttentionSnapshotStore.adjustUnreadInboxThreads(by: 1)
}
)
+ case .manPageBrowser:
+ ManPageBrowserView()
+ case .manPage(let url):
+ ManPageDetailView(url: url)
}
}
}