Skip to content

Commit 023b1fe

Browse files
committed
feat: add support for primary buttons in navbar
Also add custom fonts if we want them Signed-off-by: Justin Garrison <justin.garrison@siderolabs.com>
1 parent d3db750 commit 023b1fe

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

docs-gen/main.go

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type Config struct {
2626
Contextual *Contextual `yaml:"contextual,omitempty"`
2727
Logo *Logo `yaml:"logo,omitempty"`
2828
Thumbnails *Thumbnails `yaml:"thumbnails,omitempty"`
29+
Fonts *Fonts `yaml:"fonts,omitempty"`
2930
SEO *SEO `yaml:"seo,omitempty"`
3031
Search *Search `yaml:"search,omitempty"`
3132
Errors *Errors `yaml:"errors,omitempty"`
@@ -62,15 +63,38 @@ type Thumbnails struct {
6263
Background string `yaml:"background,omitempty" json:"background,omitempty"`
6364
}
6465

66+
type Fonts struct {
67+
Family string `yaml:"family,omitempty" json:"family,omitempty"`
68+
Weight *int `yaml:"weight,omitempty" json:"weight,omitempty"`
69+
Source string `yaml:"source,omitempty" json:"source,omitempty"`
70+
Format string `yaml:"format,omitempty" json:"format,omitempty"`
71+
Heading *FontStyle `yaml:"heading,omitempty" json:"heading,omitempty"`
72+
Body *FontStyle `yaml:"body,omitempty" json:"body,omitempty"`
73+
}
74+
75+
type FontStyle struct {
76+
Family string `yaml:"family,omitempty" json:"family,omitempty"`
77+
Weight *int `yaml:"weight,omitempty" json:"weight,omitempty"`
78+
Source string `yaml:"source,omitempty" json:"source,omitempty"`
79+
Format string `yaml:"format,omitempty" json:"format,omitempty"`
80+
}
81+
6582
type Navbar struct {
66-
Links []NavLink `yaml:"links" json:"links"`
83+
Links []NavLink `yaml:"links" json:"links"`
84+
Primary *NavPrimary `yaml:"primary,omitempty" json:"primary,omitempty"`
6785
}
6886

6987
type NavLink struct {
7088
Label string `yaml:"label" json:"label"`
7189
Href string `yaml:"href" json:"href"`
7290
}
7391

92+
type NavPrimary struct {
93+
Type string `yaml:"type" json:"type"`
94+
Label string `yaml:"label" json:"label"`
95+
Href string `yaml:"href" json:"href"`
96+
}
97+
7498
type Footer struct {
7599
Socials map[string]string `yaml:"socials" json:"socials"`
76100
}
@@ -181,6 +205,7 @@ type MintlifyConfig struct {
181205
Contextual *Contextual `json:"contextual,omitempty"`
182206
Logo *Logo `json:"logo,omitempty"`
183207
Thumbnails *Thumbnails `json:"thumbnails,omitempty"`
208+
Fonts *Fonts `json:"fonts,omitempty"`
184209
SEO *SEO `json:"seo,omitempty"`
185210
Search *Search `json:"search,omitempty"`
186211
Errors *Errors `json:"errors,omitempty"`
@@ -259,6 +284,7 @@ func main() {
259284
Contextual: mergedConfig.Contextual,
260285
Logo: mergedConfig.Logo,
261286
Thumbnails: mergedConfig.Thumbnails,
287+
Fonts: mergedConfig.Fonts,
262288
SEO: mergedConfig.SEO,
263289
Search: mergedConfig.Search,
264290
Errors: mergedConfig.Errors,

0 commit comments

Comments
 (0)