@netfoundry/docusaurus-theme 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/css/legacy.css +0 -9
  2. package/css/theme.css +72 -20
  3. package/dist/css/legacy.css +0 -9
  4. package/dist/css/theme.css +72 -20
  5. package/dist/src/components/NetFoundryFooter/defaults.d.ts +19 -0
  6. package/dist/src/components/NetFoundryFooter/defaults.d.ts.map +1 -0
  7. package/dist/src/components/NetFoundryFooter/defaults.js +24 -0
  8. package/dist/src/components/NetFoundryFooter/defaults.js.map +1 -0
  9. package/dist/src/components/NetFoundryLayout/NetFoundryLayout.d.ts.map +1 -1
  10. package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js +3 -1
  11. package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js.map +1 -1
  12. package/dist/src/components/ProductSearch/ProductSearch.d.ts +10 -0
  13. package/dist/src/components/ProductSearch/ProductSearch.d.ts.map +1 -0
  14. package/dist/src/components/ProductSearch/ProductSearch.js +140 -0
  15. package/dist/src/components/ProductSearch/ProductSearch.js.map +1 -0
  16. package/dist/src/components/ProductSearch/ProductSearch.module.css +189 -0
  17. package/dist/src/components/ProductSearch/index.d.ts +4 -0
  18. package/dist/src/components/ProductSearch/index.d.ts.map +1 -0
  19. package/dist/src/components/ProductSearch/index.js +4 -0
  20. package/dist/src/components/ProductSearch/index.js.map +1 -0
  21. package/dist/src/components/index.d.ts +1 -0
  22. package/dist/src/components/index.d.ts.map +1 -1
  23. package/dist/src/components/index.js +1 -0
  24. package/dist/src/components/index.js.map +1 -1
  25. package/dist/src/index.js +1 -1
  26. package/dist/src/index.js.map +1 -1
  27. package/dist/src/options.d.ts +20 -30
  28. package/dist/src/options.d.ts.map +1 -1
  29. package/dist/theme/BlogPostPage/Metadata.d.ts +2 -0
  30. package/dist/theme/BlogPostPage/Metadata.d.ts.map +1 -0
  31. package/dist/theme/BlogPostPage/Metadata.js +2 -0
  32. package/dist/theme/BlogPostPage/Metadata.js.map +1 -0
  33. package/dist/theme/BlogPostPage/StructuredData.d.ts +2 -0
  34. package/dist/theme/BlogPostPage/StructuredData.d.ts.map +1 -0
  35. package/dist/theme/BlogPostPage/StructuredData.js +2 -0
  36. package/dist/theme/BlogPostPage/StructuredData.js.map +1 -0
  37. package/dist/theme/BlogPostPage/index.d.ts +14 -0
  38. package/dist/theme/BlogPostPage/index.d.ts.map +1 -0
  39. package/dist/theme/BlogPostPage/index.js +27 -0
  40. package/dist/theme/BlogPostPage/index.js.map +1 -0
  41. package/dist/theme/BlogPostPage/index.module.css +53 -0
  42. package/dist/theme/DocSearch/index.d.ts +3 -0
  43. package/dist/theme/DocSearch/index.d.ts.map +1 -0
  44. package/dist/theme/DocSearch/index.js +30 -0
  45. package/dist/theme/DocSearch/index.js.map +1 -0
  46. package/dist/theme/DocSearch/styles.module.css +12 -0
  47. package/dist/theme/Layout/index.d.ts +0 -9
  48. package/dist/theme/Layout/index.d.ts.map +1 -1
  49. package/dist/theme/Layout/index.js +17 -19
  50. package/dist/theme/Layout/index.js.map +1 -1
  51. package/dist/theme/Navbar/Content/index.d.ts +6 -0
  52. package/dist/theme/Navbar/Content/index.d.ts.map +1 -0
  53. package/dist/theme/Navbar/Content/index.js +27 -0
  54. package/dist/theme/Navbar/Content/index.js.map +1 -0
  55. package/dist/theme/Navbar/Content/index.module.css +0 -0
  56. package/dist/theme/Navbar/Logo/index.d.ts +3 -0
  57. package/dist/theme/Navbar/Logo/index.d.ts.map +1 -0
  58. package/dist/theme/Navbar/Logo/index.js +44 -0
  59. package/dist/theme/Navbar/Logo/index.js.map +1 -0
  60. package/dist/theme/OsTabs/index.d.ts +13 -0
  61. package/dist/theme/OsTabs/index.d.ts.map +1 -0
  62. package/dist/theme/OsTabs/index.js +20 -0
  63. package/dist/theme/OsTabs/index.js.map +1 -0
  64. package/dist/theme/SearchBar/SearchBar.module.css +37 -0
  65. package/dist/theme/SearchBar/index.d.ts +2 -0
  66. package/dist/theme/SearchBar/index.d.ts.map +1 -0
  67. package/dist/theme/SearchBar/index.js +36 -0
  68. package/dist/theme/SearchBar/index.js.map +1 -0
  69. package/package.json +9 -3
@@ -0,0 +1,189 @@
1
+ /* src/components/ProductSearch.module.css */
2
+
3
+ /* ===== Layout ===== */
4
+ .wrap{max-width:980px;margin:0 auto;padding:1rem}
5
+ .topbar{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between;align-items:center;margin-bottom:.6rem}
6
+ .searchInput{
7
+ display:flex;
8
+ flex-grow:1;
9
+ height:44px;padding:0 .9rem;border-radius:12px;
10
+ border:1px solid var(--ifm-color-emphasis-300);background:var(--ifm-background-color);
11
+ transition:border-color .15s,box-shadow .15s,background .15s
12
+ }
13
+ .searchInput:focus{
14
+ outline:none;border-color:var(--ifm-color-primary);
15
+ box-shadow:0 0 0 3px color-mix(in oklab, var(--ifm-color-primary) 25%, transparent)
16
+ }
17
+
18
+ /* ===== Pills ===== */
19
+ .pills{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}
20
+ .pill{
21
+ display:flex;
22
+ background: teal;
23
+ all:unset;cursor:pointer;user-select:none;
24
+ padding:.38rem .7rem;border:1px solid var(--ifm-color-emphasis-300);
25
+ border-radius:999px;background:linear-gradient(180deg,var(--ifm-background-color),color-mix(in oklab,var(--ifm-background-color) 85%, black));
26
+ font-size:.82rem;line-height:1;transition:transform .12s,box-shadow .12s,border-color .12s,background .12s
27
+ }
28
+ .pill:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.08)}
29
+ .pill[disabled]{opacity:.45;pointer-events:none}
30
+ .active{
31
+ background:linear-gradient(180deg,var(--ifm-color-primary),color-mix(in oklab,var(--ifm-color-primary) 85%, black));
32
+ color:#fff;border-color:var(--ifm-color-primary)
33
+ }
34
+ .activeChip{padding:.28rem .55rem;border:1px solid var(--ifm-color-emphasis-300);
35
+ border-radius:999px;background:var(--ifm-background-color);font-size:.75rem}
36
+
37
+ /* ===== Meta ===== */
38
+ .meta{display:flex;justify-content:space-between;align-items:center;margin:.35rem 0 .6rem;font-size:.86rem;color:var(--ifm-color-emphasis-700)}
39
+
40
+ /* ===== Grouped Hits ===== */
41
+ .grid{display:block}
42
+ .groupList{display:flex;flex-direction:column;gap:.7rem}
43
+ .group{
44
+ border:1px solid var(--ifm-color-emphasis-200);border-radius:14px;background:var(--ifm-background-color);
45
+ padding:.8rem .95rem;box-shadow:0 2px 10px rgba(0,0,0,.05);
46
+ transition:border-color .15s,box-shadow .15s,transform .12s
47
+ }
48
+ .group:hover{border-color:var(--ifm-color-primary);box-shadow:0 10px 24px rgba(0,0,0,.12);transform:translateY(-1px)}
49
+ .groupHeaderRow{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
50
+ .groupHeader{display:block;font-weight:800;letter-spacing:.2px;font-size:1.02rem;margin:0;text-decoration:none;color:var(--ifm-font-color-base)}
51
+ .breadcrumb{font-size:.76rem;color:var(--ifm-color-emphasis-700);margin:.08rem 0 .35rem}
52
+ .groupSnips{display:flex;flex-direction:column;gap:.3rem}
53
+ .snippet {
54
+ font-size:.92rem;
55
+ color:var(--ifm-color-emphasis-800);
56
+ line-height:1.35;
57
+ position:relative;
58
+ padding-left:1rem;
59
+ white-space:nowrap;
60
+ overflow:hidden;
61
+ text-overflow:ellipsis;
62
+ }
63
+ .snippet::before {
64
+ content:"▸";
65
+ position:absolute;
66
+ left:0;
67
+ color:var(--ifm-color-primary);
68
+ font-weight:700;
69
+ }
70
+ .groupUrl{
71
+ font-family:var(--content-font-family);
72
+ margin-top:.3rem;
73
+ white-space:nowrap;
74
+ overflow:hidden;
75
+ text-overflow:ellipsis
76
+ }
77
+
78
+ /* ===== Badges ===== */
79
+ .badge{padding:.16rem .55rem;border-radius:999px;font-size:.72rem;border:1px solid var(--ifm-color-emphasis-300)}
80
+ .p_frontdoor{background:#e8f3ff;border-color:#c6e1ff;color:#145ea8}
81
+ .p_openziti{background:#e9fff3;border-color:#c8f2df;color:#0d7a4e}
82
+ .p_onprem{background:#fff3e8;border-color:#ffdcbf;color:#9a4d00}
83
+ .p_zlan{background:#f1edff;border-color:#d9d0ff;color:#5335b7}
84
+
85
+ /* ===== Pagination ===== */
86
+ .pagination{display:flex;justify-content:center;margin:.8rem 0}
87
+ .pageList{display:flex;gap:.35rem;list-style:none;padding:0;margin:0}
88
+ .pageItem{display:inline-flex}
89
+ .pageItemDisabled{opacity:.45;pointer-events:none}
90
+ .pageItemSelected .pageLink{background:var(--ifm-color-primary);color:#fff;border-color:var(--ifm-color-primary)}
91
+ .pageLink{
92
+ display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .6rem;
93
+ border:1px solid var(--ifm-color-emphasis-300);border-radius:.55rem;text-decoration:none;font-size:.82rem;
94
+ transition:transform .12s,background .12s,border-color .12s
95
+ }
96
+ .pageLink:hover{transform:translateY(-1px);border-color:var(--ifm-color-primary)}
97
+
98
+ /* ===== Highlights ===== */
99
+ :global(mark){
100
+ background:#ffe955;color:inherit;border-radius:3px;box-shadow:0 0 0 2px rgba(255,233,85,.25) inset
101
+ }
102
+
103
+ /* ===== Dark mode tweaks ===== */
104
+ :global(html[data-theme='dark']) .group{border-color:rgba(255,255,255,.09);box-shadow:0 2px 10px rgba(0,0,0,.35)}
105
+ :global(html[data-theme='dark']) .breadcrumb{color:var(--ifm-color-emphasis-600)}
106
+ :global(html[data-theme='dark']) .groupUrl{opacity:.95}
107
+ :global(html[data-theme='dark']) .pill{background:linear-gradient(180deg,#1b1b1d,#161618);border-color:rgba(255,255,255,.08)}
108
+
109
+ /* ===== DocSearch modal polish ===== */
110
+ :global(.DocSearch-Modal){border-radius:16px;box-shadow:0 28px 80px rgba(0,0,0,.35)}
111
+ :global(.DocSearch-Input){height:48px;border-radius:12px}
112
+ :global(.DocSearch-Hit){border-radius:12px}
113
+ :global(.DocSearch-Hit a){border-radius:12px}
114
+ :global(.DocSearch-Hit-source){color:var(--ifm-color-primary)}
115
+ :global(.DocSearch-Footer){border-top:1px solid var(--ifm-color-emphasis-200)}
116
+
117
+ :global(.ais-SearchBox) { width: 100%; }
118
+
119
+ :global(.ais-SearchBox-form) {
120
+ display: flex;
121
+ align-items: center;
122
+ width: 100%;
123
+ gap:.55rem;
124
+ }
125
+
126
+ :global(.ais-SearchBox-input),
127
+ :global(.searchInput_ps_s) {
128
+ flex: 1 1 auto;
129
+ min-width: 0;
130
+ }
131
+
132
+ :global(.ais-SearchBox-submit),
133
+ :global(.ais-SearchBox-reset),
134
+ :global(.ais-SearchBox-loadingIndicator) {
135
+ flex: 0 0 auto;
136
+ }
137
+ :global(.ais-SearchBox-submitIcon) {
138
+ height: .75rem;
139
+ width: .75rem;
140
+ }
141
+ :global(.ais-SearchBox-reset) {
142
+ display: none;
143
+ }
144
+
145
+
146
+ .container{display:flex;flex-direction:column;flex-grow:1}
147
+ .results{flex:1 1 auto;overflow:auto}
148
+
149
+ .footer{
150
+ position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;
151
+ gap:.75rem;background:var(--ifm-background-color);
152
+ border-top:1px solid var(--ifm-color-emphasis-200);
153
+ padding:.55rem .7rem;z-index:1;backdrop-filter:saturate(140%) blur(4px)
154
+ }
155
+ .kbdRow{display:flex;gap:.8rem;font-size:.82rem;color:var(--ifm-color-emphasis-700)}
156
+ .kbdRow kbd{border:1px solid var(--ifm-color-emphasis-300);border-bottom-width:2px;border-radius:7px;padding:.06rem .38rem;font-family:inherit}
157
+
158
+ .footer :global(.ais-PoweredBy){margin:0}
159
+ .footer :global(.ais-PoweredBy-logo){height:1rem}
160
+
161
+ /* tighten typographic weight in nested rows inside groups */
162
+ .groupList > div > div {color:var(--ifm-color-primary);}
163
+
164
+ /* Match pill colors to badge colors */
165
+ .pill.active[data-product="frontdoor"] {
166
+ background: #e8f3ff;
167
+ border-color: #c6e1ff;
168
+ color: #145ea8;
169
+ }
170
+ .pill.active[data-product="openziti"] {
171
+ background: #e9fff3;
172
+ border-color: #c8f2df;
173
+ color: #0d7a4e;
174
+ }
175
+ .pill.active[data-product="onprem"] {
176
+ background: #fff3e8;
177
+ border-color: #ffdcbf;
178
+ color: #9a4d00;
179
+ }
180
+ .pill.active[data-product="zlan"] {
181
+ background: #f1edff;
182
+ border-color: #d9d0ff;
183
+ color: #5335b7;
184
+ }
185
+ .pill.active[data-product="zrok"] {
186
+ background: #fff0f0;
187
+ border-color: #ffd0d0;
188
+ color: #b71c1c;
189
+ }
@@ -0,0 +1,4 @@
1
+ export * from './ProductSearch';
2
+ import ProductSearch from './ProductSearch';
3
+ export default ProductSearch;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSearch/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,eAAe,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './ProductSearch';
2
+ import ProductSearch from './ProductSearch';
3
+ export default ProductSearch;
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ProductSearch/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,eAAe,aAAa,CAAC"}
@@ -9,4 +9,5 @@ export * from './NetFoundryLayout';
9
9
  export * from './NetFoundryNavbarItems';
10
10
  export * from './OsTabs';
11
11
  export * from './StarUs';
12
+ export * from './ProductSearch';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
@@ -9,4 +9,5 @@ export * from './NetFoundryLayout';
9
9
  export * from './NetFoundryNavbarItems';
10
10
  export * from './OsTabs';
11
11
  export * from './StarUs';
12
+ export * from './ProductSearch';
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
package/dist/src/index.js CHANGED
@@ -13,7 +13,7 @@ export default function themeNetFoundry(context, options = {}) {
13
13
  // Automatically inject CSS
14
14
  getClientModules() {
15
15
  const modules = [
16
- require.resolve('../css/theme.css'),
16
+ path.resolve(__dirname, '../css/theme.css'),
17
17
  ];
18
18
  // Add custom CSS if specified in options
19
19
  if (options.customCss) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAoB,EACpB,UAAkC,EAAE;IAEpC,OAAO;QACL,IAAI,EAAE,8BAA8B;QAEpC,qCAAqC;QACrC,YAAY;YACV,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAC7C,CAAC;QAED,6BAA6B;QAC7B,sBAAsB;YACpB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAC7C,CAAC;QAED,2BAA2B;QAC3B,gBAAgB;YACd,MAAM,OAAO,GAAa;gBACxB,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC;aACpC,CAAC;YAEF,yCAAyC;YACzC,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;gBACtB,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;oBACrD,CAAC,CAAC,OAAO,CAAC,SAAS;oBACnB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;gBACxB,OAAO,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;YAClC,CAAC;YAED,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC;AACJ,CAAC;AAKD,+EAA+E;AAC/E,sFAAsF;AACtF,6EAA6E"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAoB,EACpB,UAAkC,EAAE;IAEpC,OAAO;QACL,IAAI,EAAE,8BAA8B;QAEpC,qCAAqC;QACrC,YAAY;YACV,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAC7C,CAAC;QAED,6BAA6B;QAC7B,sBAAsB;YACpB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAC7C,CAAC;QAED,2BAA2B;QAC3B,gBAAgB;YACd,MAAM,OAAO,GAAa;gBACxB,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,kBAAkB,CAAC;aAC5C,CAAC;YAEF,yCAAyC;YACzC,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;gBACtB,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;oBACrD,CAAC,CAAC,OAAO,CAAC,SAAS;oBACnB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;gBACxB,OAAO,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;YAClC,CAAC;YAED,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC;AACJ,CAAC;AAKD,+EAA+E;AAC/E,sFAAsF;AACtF,6EAA6E"}
@@ -34,51 +34,41 @@ export interface StarBannerConfig {
34
34
  /** Label text for the star button */
35
35
  label: string;
36
36
  }
37
+ /**
38
+ * Navbar product configuration
39
+ */
40
+ export interface NavbarProductConfig {
41
+ pathPrefix: string;
42
+ items: any[];
43
+ }
37
44
  /**
38
45
  * Options passed to the theme plugin in docusaurus.config.ts
39
- *
40
- * @example
41
- * ```ts
42
- * themes: [
43
- * ['@netfoundry/docusaurus-theme', {
44
- * customCss: require.resolve('./src/css/custom.css'),
45
- * }],
46
- * ],
47
- * ```
48
46
  */
49
47
  export interface NetFoundryThemeOptions {
50
48
  /** Custom CSS file path(s) to include */
51
49
  customCss?: string | string[];
52
50
  }
51
+ /**
52
+ * Product-specific overrides
53
+ */
54
+ export interface ProductOverride {
55
+ pathPrefix: string;
56
+ footer?: FooterConfig;
57
+ starBanner?: StarBannerConfig;
58
+ navbarItems?: any[];
59
+ }
53
60
  /**
54
61
  * Theme configuration in themeConfig.netfoundry
55
- *
56
- * @example
57
- * ```ts
58
- * themeConfig: {
59
- * netfoundry: {
60
- * footer: {
61
- * description: 'My site description',
62
- * socialProps: {
63
- * githubUrl: 'https://github.com/my-org/repo',
64
- * },
65
- * },
66
- * starBanner: {
67
- * repoUrl: 'https://github.com/my-org/repo',
68
- * label: 'Star us on GitHub',
69
- * },
70
- * showStarBanner: true,
71
- * },
72
- * },
73
- * ```
74
62
  */
75
63
  export interface NetFoundryThemeConfig {
76
- /** Footer configuration */
64
+ /** Default footer configuration */
77
65
  footer?: FooterConfig;
78
- /** Star banner configuration */
66
+ /** Default star banner configuration */
79
67
  starBanner?: StarBannerConfig;
80
68
  /** Whether to show the star banner (default: false) */
81
69
  showStarBanner?: boolean;
70
+ /** Product-specific overrides based on path */
71
+ products?: ProductOverride[];
82
72
  }
83
73
  /**
84
74
  * Extended Docusaurus ThemeConfig with NetFoundry configuration
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,M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uD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export { default } from '@docusaurus/theme-classic/lib/theme/BlogPostPage/Metadata';
2
+ //# sourceMappingURL=Metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Metadata.d.ts","sourceRoot":"","sources":["../../../theme/BlogPostPage/Metadata.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,2DAA2D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from '@docusaurus/theme-classic/lib/theme/BlogPostPage/Metadata';
2
+ //# sourceMappingURL=Metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Metadata.js","sourceRoot":"","sources":["../../../theme/BlogPostPage/Metadata.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,2DAA2D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from '@docusaurus/theme-classic/lib/theme/BlogPostPage/StructuredData';
2
+ //# sourceMappingURL=StructuredData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructuredData.d.ts","sourceRoot":"","sources":["../../../theme/BlogPostPage/StructuredData.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,iEAAiE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from '@docusaurus/theme-classic/lib/theme/BlogPostPage/StructuredData';
2
+ //# sourceMappingURL=StructuredData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructuredData.js","sourceRoot":"","sources":["../../../theme/BlogPostPage/StructuredData.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,iEAAiE,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { ReactNode } from 'react';
8
+ interface BlogPostPageProps {
9
+ content: any;
10
+ sidebar: ReactNode;
11
+ }
12
+ export default function BlogPostPage(props: BlogPostPageProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../theme/BlogPostPage/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAc,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AA6DvC,UAAU,iBAAiB;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAsB5D"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import clsx from 'clsx';
3
+ import { HtmlClassNameProvider, ThemeClassNames } from '@docusaurus/theme-common';
4
+ import { BlogPostProvider, useBlogPost, } from '@docusaurus/plugin-content-blog/client';
5
+ import BlogLayout from '@theme/BlogLayout';
6
+ import BlogPostItem from '@theme/BlogPostItem';
7
+ import BlogPostPaginator from '@theme/BlogPostPaginator';
8
+ import BlogPostPageMetadata from '@theme/BlogPostPage/Metadata';
9
+ import BlogPostPageStructuredData from '@theme/BlogPostPage/StructuredData';
10
+ import TOC from '@theme/TOC';
11
+ import ContentVisibility from '@theme/ContentVisibility';
12
+ import styles from './index.module.css';
13
+ function BlogPostPageContent({ sidebar, children }) {
14
+ const { metadata, toc } = useBlogPost();
15
+ const { nextItem, prevItem, frontMatter } = metadata;
16
+ const { hide_table_of_contents: hideTableOfContents, toc_min_heading_level: tocMinHeadingLevel, toc_max_heading_level: tocMaxHeadingLevel, } = frontMatter;
17
+ return (_jsxs(BlogLayout, { sidebar: sidebar, toc: !hideTableOfContents && toc.length > 0 ? (_jsx(TOC, { toc: toc, minHeadingLevel: tocMinHeadingLevel, maxHeadingLevel: tocMaxHeadingLevel })) : undefined, children: [_jsx(ContentVisibility, { metadata: metadata }), _jsxs(BlogPostItem, { children: [(nextItem || prevItem) && (_jsxs("div", { className: styles.topPaginator, children: [_jsx(BlogPostPaginator, { nextItem: nextItem, prevItem: prevItem }), _jsx("hr", {})] })), children] }), (nextItem || prevItem) && (_jsx(BlogPostPaginator, { nextItem: nextItem, prevItem: prevItem }))] }));
18
+ }
19
+ export default function BlogPostPage(props) {
20
+ const BlogPostContent = props.content;
21
+ const BlogPostProviderComp = BlogPostProvider;
22
+ const HtmlClassNameProviderComp = HtmlClassNameProvider;
23
+ const BlogPostPageMetadataComp = BlogPostPageMetadata;
24
+ const BlogPostPageStructuredDataComp = BlogPostPageStructuredData;
25
+ return (_jsx(BlogPostProviderComp, { content: props.content, isBlogPostPage: true, children: _jsxs(HtmlClassNameProviderComp, { className: clsx(ThemeClassNames.wrapper.blogPages, ThemeClassNames.page.blogPostPage), children: [_jsx(BlogPostPageMetadataComp, {}), _jsx(BlogPostPageStructuredDataComp, {}), _jsx(BlogPostPageContent, { sidebar: props.sidebar, children: _jsx(BlogPostContent, {}) })] }) }));
26
+ }
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../theme/BlogPostPage/index.tsx"],"names":[],"mappings":";AAOA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAC,qBAAqB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAChF,OAAO,EACH,gBAAgB,EAChB,WAAW,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,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QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAChE,IACQ,CAChB,CAAC;AACN,CAAC;AAOD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAwB;IACzD,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC;IACtC,MAAM,oBAAoB,GAAG,gBAAuB,CAAC;IACrD,MAAM,yBAAyB,GAAG,qBAA4B,CAAC;IAC/D,MAAM,wBAAwB,GAAG,oBAA2B,CAAC;IAC7D,MAAM,8BAA8B,GAAG,0BAAiC,CAAC;IAEzE,OAAO,CACH,KAAC,oBAAoB,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,cAAc,kBACxD,MAAC,yBAAyB,IACtB,SAAS,EAAE,IAAI,CACX,eAAe,CAAC,OAAO,CAAC,SAAS,EACjC,eAAe,CAAC,IAAI,CAAC,YAAY,CACpC,aACD,KAAC,wBAAwB,KAAG,EAC5B,KAAC,8BAA8B,KAAG,EAClC,KAAC,mBAAmB,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,YACvC,KAAC,eAAe,KAAG,GACD,IACE,GACT,CAC1B,CAAC;AACN,CAAC"}
@@ -0,0 +1,53 @@
1
+ /* scope to your wrapper div className={styles.topPaginator} */
2
+ .topPaginator {
3
+ margin: 0 0 .5rem 0;
4
+ }
5
+
6
+ /* reset Docusaurus paginator layout */
7
+ .topPaginator :global(.pagination-nav) {
8
+ margin: 0 !important;
9
+ padding: 0 !important;
10
+ display: flex !important;
11
+ justify-content: space-between !important;
12
+ align-items: center !important;
13
+ gap: 2rem !important;
14
+ }
15
+
16
+ /* kill the card look */
17
+ .topPaginator :global(.pagination-nav__link) {
18
+ background: none !important;
19
+ border: 0 !important;
20
+ box-shadow: none !important;
21
+ padding: 0 !important;
22
+ margin: 0 !important;
23
+ min-height: auto !important;
24
+ display: inline-flex !important;
25
+ align-items: center !important;
26
+ color: var(--ifm-link-color) !important;
27
+ font-weight: 600;
28
+ line-height: 1.2;
29
+ text-decoration: none;
30
+ }
31
+
32
+ .topPaginator :global(.pagination-nav__link:hover) {
33
+ text-decoration: underline;
34
+ }
35
+
36
+ /* hide “Newer post / Older post” sublabels */
37
+ .topPaginator :global(.pagination-nav__sublabel) {
38
+ display: none !important;
39
+ }
40
+
41
+ /* keep only the titles inline */
42
+ .topPaginator :global(.pagination-nav__label) {
43
+ display: inline !important;
44
+ padding: 0 !important;
45
+ }
46
+
47
+ /* add chevrons automatically */
48
+ .topPaginator :global(.pagination-nav__link--prev .pagination-nav__label)::before {
49
+ content: "« ";
50
+ }
51
+ .topPaginator :global(.pagination-nav__link--next .pagination-nav__label)::after {
52
+ content: " »";
53
+ }
@@ -0,0 +1,3 @@
1
+ import type { Props } from "@theme/DocSearch";
2
+ export default function DocSearchWrapper(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../theme/DocSearch/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAgD9C,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,KAAK,2CAyBpD"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ // src/theme/DocSearch/index.tsx
3
+ import { useMemo, useState, useEffect } from "react";
4
+ import OriginalDocSearch from "@theme-original/DocSearch";
5
+ import { createPortal } from "react-dom";
6
+ import styles from "./styles.module.css";
7
+ const PRODUCTS = ["frontdoor", "openziti", "onprem", "zlan"];
8
+ function Pills({ product, setProduct, }) {
9
+ const [host, setHost] = useState(null);
10
+ useEffect(() => {
11
+ const el = document.querySelector(".DocSearch-Modal .DocSearch-Form")?.parentElement ??
12
+ null;
13
+ setHost(el || null);
14
+ }, []);
15
+ if (!host)
16
+ return null;
17
+ return createPortal(_jsxs("div", { className: styles.pills, children: [_jsx("button", { type: "button", className: `${styles.pill} ${!product ? styles.active : ""}`, onClick: () => setProduct(""), children: "All" }), PRODUCTS.map((p) => (_jsx("button", { type: "button", className: `${styles.pill} ${product === p ? styles.active : ""}`, onClick: () => setProduct(p), children: p }, p)))] }), host);
18
+ }
19
+ export default function DocSearchWrapper(props) {
20
+ const [product, setProduct] = useState("");
21
+ const transformSearchParameters = useMemo(() => (params) => ({
22
+ ...params,
23
+ facetFilters: [
24
+ ...(params.facetFilters ?? []),
25
+ ...(product ? [`product:${product}`] : []),
26
+ ],
27
+ }), [product]);
28
+ return (_jsxs(_Fragment, { children: [_jsx(OriginalDocSearch, { ...props, transformSearchParameters: transformSearchParameters }), _jsx(Pills, { product: product, setProduct: setProduct })] }));
29
+ }
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../theme/DocSearch/index.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAEtE,SAAS,KAAK,CAAC,EACI,OAAO,EACP,UAAU,GAI5B;IACG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAqB,IAAI,CAAC,CAAC;IAE3D,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,EAAE,GACJ,QAAQ,CAAC,aAAa,CAAC,kCAAkC,CAAC,EAAE,aAAa;YACzE,IAAI,CAAC;QACT,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;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BAAyB,GACtD,EACF,KAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAI,IAEpD,CACN,CAAC;AACN,CAAC"}
@@ -0,0 +1,12 @@
1
+ /* src/theme/DocSearch/styles.module.css */
2
+ .pills{
3
+ display:flex;gap:.4rem;align-items:center;margin-top:.4rem;
4
+ padding:.25rem .25rem .35rem .25rem;flex-wrap:wrap
5
+ }
6
+ .pill{
7
+ padding:.35rem .7rem;border:1px solid var(--ifm-color-emphasis-300);
8
+ border-radius:999px;background:transparent;cursor:pointer;font-size:.85rem
9
+ }
10
+ .active{
11
+ background:var(--ifm-color-primary);color:#fff;border-color:var(--ifm-color-primary)
12
+ }
@@ -6,14 +6,5 @@ export interface LayoutProps {
6
6
  title?: string;
7
7
  description?: string;
8
8
  }
9
- /**
10
- * NetFoundry theme Layout component.
11
- *
12
- * This component wraps NetFoundryLayout and reads configuration from
13
- * themeConfig.netfoundry in docusaurus.config.ts.
14
- *
15
- * To customize further, swizzle this component:
16
- * npx docusaurus swizzle @netfoundry/docusaurus-theme Layout --wrap
17
- */
18
9
  export default function Layout({ children, noFooter, wrapperClassName, title, description, }: LayoutProps): ReactNode;
19
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../theme/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAS9C,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,WAAW,GACZ,EAAE,WAAW,GAAG,SAAS,CAyCzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../theme/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAU9C,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,WAAW,GACZ,EAAE,WAAW,GAAG,SAAS,CA+CzB"}
@@ -1,35 +1,33 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
3
+ import { useLocation } from '@docusaurus/router';
3
4
  import { NetFoundryLayout, defaultNetFoundryFooterProps, defaultSocialProps, } from '../../src/ui';
4
- /**
5
- * NetFoundry theme Layout component.
6
- *
7
- * This component wraps NetFoundryLayout and reads configuration from
8
- * themeConfig.netfoundry in docusaurus.config.ts.
9
- *
10
- * To customize further, swizzle this component:
11
- * npx docusaurus swizzle @netfoundry/docusaurus-theme Layout --wrap
12
- */
13
5
  export default function Layout({ children, noFooter, wrapperClassName, title, description, }) {
14
6
  const { siteConfig } = useDocusaurusContext();
7
+ const { pathname } = useLocation();
15
8
  const themeConfig = siteConfig.themeConfig;
16
9
  const nfConfig = themeConfig.netfoundry ?? {};
17
- // Build footer props from config, falling back to defaults
18
- const footerProps = noFooter
19
- ? undefined
20
- : {
10
+ // Find product override if any
11
+ const product = nfConfig.products?.find(p => pathname.startsWith(p.pathPrefix));
12
+ // Determine footer props
13
+ let footerProps = undefined;
14
+ if (!noFooter) {
15
+ const baseFooter = product?.footer || nfConfig.footer;
16
+ footerProps = {
21
17
  ...defaultNetFoundryFooterProps(),
22
- ...nfConfig.footer,
18
+ ...baseFooter,
23
19
  socialProps: {
24
20
  ...defaultSocialProps,
25
- ...nfConfig.footer?.socialProps,
21
+ ...baseFooter?.socialProps,
26
22
  },
27
23
  };
28
- // Build star props if enabled
29
- const starProps = nfConfig.showStarBanner && nfConfig.starBanner
24
+ }
25
+ // Determine star props
26
+ const baseStar = product?.starBanner || nfConfig.starBanner;
27
+ const starProps = (nfConfig.showStarBanner && baseStar)
30
28
  ? {
31
- repoUrl: nfConfig.starBanner.repoUrl,
32
- label: nfConfig.starBanner.label,
29
+ repoUrl: baseStar.repoUrl,
30
+ label: baseStar.label,
33
31
  }
34
32
  : undefined;
35
33
  return (_jsx(NetFoundryLayout, { title: title, description: description, className: wrapperClassName, noFooter: noFooter, footerProps: footerProps, starProps: starProps, meta: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../theme/Layout/index.tsx"],"names":[],"mappings":";AACA,OAAO,oBAAoB,MAAM,kCAAkC,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAWtB;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,WAAW,GACC;IACZ,MAAM,EAAE,UAAU,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,UAAU,CAAC,WAAwC,CAAC;IACxE,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,IAAI,EAAE,CAAC;IAE9C,2DAA2D;IAC3D,MAAM,WAAW,GAAG,QAAQ;QAC1B,CAAC,CAAC,SAAS;QACX,CAAC,CAAC;YACE,GAAG,4BAA4B,EAAE;YACjC,GAAG,QAAQ,CAAC,MAAM;YAClB,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G,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;IAEhF,yBAAyB;IACzB,IAAI,WAAW,GAAQ,SAAS,CAAC;IACjC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,UAAU,GAAG,OAAO,EAAE,MAAM,IAAI,QAAQ,CAAC,MAAM,CAAC;QACtD,WAAW,GAAG;YACZ,GAAG,4BAA4B,EAAE;YACjC,GAAG,UAAU;YACb,WAAW,EAAE;gBACX,GAAG,kBAAkB;gBACrB,GAAG,UAAU,EAAE,WAAW;aAC3B;SACF,CAAC;IACJ,CAAC;IAED,uBAAuB;IACvB,MAAM,QAAQ,GAAG,OAAO,EAAE,UAAU,IAAI,QAAQ,CAAC,UAAU,CAAC;IAC5D,MAAM,SAAS,GAAG,CAAC,QAAQ,CAAC,cAAc,IAAI,QAAQ,CAAC;QACrD,CAAC,CAAC;YACE,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,KAAK,EAAE,QAAQ,CAAC,KAAK;SACtB;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE;YACJ,QAAQ,EAAE,UAAU,CAAC,KAAK;SAC3B,YAEA,QAAQ,GACQ,CACpB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React, { JSX } from 'react';
2
+ import OriginalNavbarContent from '@theme-original/Navbar/Content';
3
+ type Props = React.ComponentProps<typeof OriginalNavbarContent>;
4
+ export default function NavbarContent(props: Props): JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../theme/Navbar/Content/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAIjC,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAWnE,KAAK,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEhE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAsC/D"}