You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,7 +24,7 @@ let menu (ctx : SiteContents) (page: string) =
24
24
25
25
letgroup= content |> Seq.tryFind (fun n -> n.title = page)|> Option.map (fun n -> n.category)
26
26
27
-
letexplenations=
27
+
letexplanations=
28
28
content
29
29
|> Seq.filter (fun n -> n.category = Contentloader.Explanation &¬ n.hide_menu && n.language = language )
30
30
|> Seq.sortBy (fun n -> n.menu_order)
@@ -40,12 +40,12 @@ let menu (ctx : SiteContents) (page: string) =
40
40
|> Seq.sortBy (fun n -> n.menu_order)
41
41
42
42
lethasTutorials=not(Seq.isEmpty tutorials)
43
-
lethasExplenations=not(Seq.isEmpty explenations)
43
+
lethasExplanations=not(Seq.isEmpty explanations)
44
44
lethasHowTos=not(Seq.isEmpty howtos)
45
45
46
46
letmenuHeader=
47
47
[
48
-
ifhasExplenationsthen
48
+
ifhasExplanationsthen
49
49
li [Id "menu-explanations";if group = Some Contentloader.Explanation then Class "dd-item menu-group-link menu-group-link-active"else Class "dd-item menu-group-link";][
50
50
a [][!!"Explanation"]
51
51
]
@@ -58,15 +58,15 @@ let menu (ctx : SiteContents) (page: string) =
58
58
a [][!!"How-To Guides"]
59
59
]
60
60
li [ Id "menu-refs";if group = None then Class "dd-item menu-group-link menu-group-link-active"else Class "dd-item menu-group-link";][
61
-
a [][!!"API References"]
61
+
a [Href (rootUrl.subRoute "/reference/index.html")][!!"API Reference"]
62
62
]
63
63
]
64
64
65
65
letrenderExpls=
66
66
ul [Id "submenu-explanations";if group = Some Contentloader.Explanation then Class "submenu submenu-active"else Class "submenu";][
67
-
for r inexplenations->
67
+
for r inexplanations->
68
68
li [][
69
-
a [Href (rootUrl+"/"+ r.link);if r.title = page then Class "active-link padding"else Class "padding"][
69
+
a [Href (rootUrl.subRoute r.link);if r.title = page then Class "active-link padding"else Class "padding"][
70
70
!! r.title
71
71
]
72
72
]
@@ -76,7 +76,7 @@ let menu (ctx : SiteContents) (page: string) =
76
76
ul [Id "submenu-tutorials";if group = Some Contentloader.Tutorial then Class "submenu submenu-active"else Class "submenu";][
77
77
for r in tutorials ->
78
78
li [][
79
-
a [ Href (rootUrl+"/"+ r.link);if r.title = page then Class "active-link padding"else Class "padding"][
79
+
a [ Href (rootUrl.subRoute r.link);if r.title = page then Class "active-link padding"else Class "padding"][
80
80
!! r.title
81
81
]
82
82
]
@@ -86,33 +86,23 @@ let menu (ctx : SiteContents) (page: string) =
86
86
ul [Id "submenu-howtos";if group = Some Contentloader.HowTo then Class "submenu submenu-active"else Class "submenu";][
87
87
for r in howtos ->
88
88
li [][
89
-
a [Href (rootUrl+"/"+ r.link);if r.title = page then Class "active-link padding"else Class "padding"][
89
+
a [Href (rootUrl.subRoute r.link);if r.title = page then Class "active-link padding"else Class "padding"][
90
90
!! r.title
91
91
]
92
92
]
93
93
]
94
94
95
-
letrenderRefs=
96
-
ul [Id "submenu-refs";if group = None then Class "submenu submenu-active"else Class "submenu";][
97
-
for r in all ->
98
-
li [][
99
-
a [Href (rootUrl +"/reference/"+ r.Label +"/index.html");if r.Label = page then Class "active-link padding"else Class "padding"][
100
-
!! r.Label
101
-
]
102
-
]
103
-
]
104
-
105
95
letrenderLanguages=
106
96
section [Id "languages"][
107
97
h3 [][!!"Languages"]
108
98
ul [][
109
99
li [][
110
-
a [Href (rootUrl+"/index.html");if language = None then Class "menu-group-link-active padding"else Class "padding"][
100
+
a [Href (rootUrl.subRoute"/index.html");if language = None then Class "menu-group-link-active padding"else Class "padding"][
111
101
!!"English"
112
102
]
113
103
]
114
104
li [][
115
-
a [Href (rootUrl+"/ja/index.html");if language = Some "ja"then Class "menu-group-link-active padding"else Class "padding"][
105
+
a [Href (rootUrl.subRoute"/ja/index.html");if language = Some "ja"then Class "menu-group-link-active padding"else Class "padding"][
116
106
!!"Japanese"
117
107
]
118
108
]
@@ -121,7 +111,7 @@ let menu (ctx : SiteContents) (page: string) =
121
111
122
112
letrenderShortucuts=
123
113
section [Id "shortcuts"][
124
-
h3 [][!!"Shortucts"]
114
+
h3 [][!!"Shortcuts"]
125
115
ul [][
126
116
for s in shortcuts do
127
117
yield
@@ -150,17 +140,16 @@ let menu (ctx : SiteContents) (page: string) =
150
140
input [Custom ("data-search-input",""); Id "search-by"; Type "search"; Placeholder "Search..."]
0 commit comments