blob: 575b3ae56d7853debb5690e6f85fb0b984505131 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import SwiftUI
/// Entry point for the man.sr.ht browser in the More tab.
/// Shows the official sr.ht man pages from the bundled catalog, which the
/// scheduled sync workflow keeps current with man.sr.ht.
struct ManPageBrowserView: View {
private let officialDocs = ManPageCatalog.load()
var body: some View {
List {
Section("Official Man Pages") {
ForEach(officialDocs) { doc in
NavigationLink(value: MoreRoute.manPage(doc.url)) {
Text(doc.title)
}
}
.themedRow()
}
}
.themedList()
.navigationTitle("Man Pages")
.navigationBarTitleDisplayMode(.inline)
}
}
|