@stacksjs/bunpress 0.1.6 → 0.1.7

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.
@@ -826,7 +826,7 @@ mjx-container > svg {
826
826
  }
827
827
 
828
828
  /**
829
- * VPDoc Styles - Documentation Content
829
+ * BPDoc Styles - Documentation Content
830
830
  * -------------------------------------------------------------------------- */
831
831
 
832
832
  .bp-doc h1,
@@ -1385,7 +1385,7 @@ mjx-container > svg {
1385
1385
  }
1386
1386
 
1387
1387
  /**
1388
- * Component: Team - VPTeamMembers
1388
+ * Component: Team - BPTeamMembers
1389
1389
  * -------------------------------------------------------------------------- */
1390
1390
 
1391
1391
  .bp-doc .BPTeamMembers {
@@ -1911,8 +1911,8 @@ export const layoutCSS = `/**
1911
1911
  min-height: 100vh;
1912
1912
  }
1913
1913
 
1914
- /* VPNav — top bar */
1915
- .VPNav {
1914
+ /* BPNav — top bar */
1915
+ .BPNav {
1916
1916
  position: fixed;
1917
1917
  top: 0;
1918
1918
  left: 0;
@@ -1924,7 +1924,7 @@ export const layoutCSS = `/**
1924
1924
  backdrop-filter: saturate(50%) blur(8px);
1925
1925
  }
1926
1926
 
1927
- .VPNavBar {
1927
+ .BPNavBar {
1928
1928
  max-width: var(--bp-layout-max-width, 1440px);
1929
1929
  margin: 0 auto;
1930
1930
  width: 100%;
@@ -1936,7 +1936,7 @@ export const layoutCSS = `/**
1936
1936
  gap: 24px;
1937
1937
  }
1938
1938
 
1939
- .VPNavBarStart {
1939
+ .BPNavBarStart {
1940
1940
  display: flex;
1941
1941
  align-items: center;
1942
1942
  gap: 24px;
@@ -1944,14 +1944,14 @@ export const layoutCSS = `/**
1944
1944
  min-width: 0;
1945
1945
  }
1946
1946
 
1947
- .VPNavBarEnd {
1947
+ .BPNavBarEnd {
1948
1948
  display: flex;
1949
1949
  align-items: center;
1950
1950
  gap: 24px;
1951
1951
  flex-shrink: 0;
1952
1952
  }
1953
1953
 
1954
- .VPNavBarTitle {
1954
+ .BPNavBarTitle {
1955
1955
  font-size: 16px;
1956
1956
  font-weight: 600;
1957
1957
  color: var(--bp-c-text-1);
@@ -1960,18 +1960,18 @@ export const layoutCSS = `/**
1960
1960
  transition: color 0.25s;
1961
1961
  }
1962
1962
 
1963
- .VPNavBarTitle:hover {
1963
+ .BPNavBarTitle:hover {
1964
1964
  color: var(--bp-c-brand-1);
1965
1965
  }
1966
1966
 
1967
- .VPNavBarMenu {
1967
+ .BPNavBarMenu {
1968
1968
  display: flex;
1969
1969
  align-items: center;
1970
1970
  gap: 24px;
1971
1971
  }
1972
1972
 
1973
- .VPNavBarMenu a,
1974
- .VPNavBarMenu .VPNavBarMenu-link {
1973
+ .BPNavBarMenu a,
1974
+ .BPNavBarMenu .BPNavBarMenu-link {
1975
1975
  font-size: 14px;
1976
1976
  font-weight: 500;
1977
1977
  color: var(--bp-c-text-1);
@@ -1980,17 +1980,17 @@ export const layoutCSS = `/**
1980
1980
  cursor: pointer;
1981
1981
  }
1982
1982
 
1983
- .VPNavBarMenu a:hover,
1984
- .VPNavBarMenu .VPNavBarMenu-link:hover,
1985
- .VPNavBarMenu a.is-active {
1983
+ .BPNavBarMenu a:hover,
1984
+ .BPNavBarMenu .BPNavBarMenu-link:hover,
1985
+ .BPNavBarMenu a.is-active {
1986
1986
  color: var(--bp-c-brand-1);
1987
1987
  }
1988
1988
 
1989
- .VPNavBarMenu-group {
1989
+ .BPNavBarMenu-group {
1990
1990
  position: relative;
1991
1991
  }
1992
1992
 
1993
- .VPNavBarMenu-group-button {
1993
+ .BPNavBarMenu-group-button {
1994
1994
  display: inline-flex;
1995
1995
  align-items: center;
1996
1996
  gap: 4px;
@@ -2005,22 +2005,22 @@ export const layoutCSS = `/**
2005
2005
  transition: color 0.25s;
2006
2006
  }
2007
2007
 
2008
- .VPNavBarMenu-group-button:hover {
2008
+ .BPNavBarMenu-group-button:hover {
2009
2009
  color: var(--bp-c-brand-1);
2010
2010
  }
2011
2011
 
2012
- .VPNavBarMenu-group-button .chevron {
2012
+ .BPNavBarMenu-group-button .chevron {
2013
2013
  width: 12px;
2014
2014
  height: 12px;
2015
2015
  flex-shrink: 0;
2016
2016
  transition: transform 0.25s;
2017
2017
  }
2018
2018
 
2019
- .VPNavBarMenu-group:hover > .VPNavBarMenu-group-button .chevron {
2019
+ .BPNavBarMenu-group:hover > .BPNavBarMenu-group-button .chevron {
2020
2020
  transform: rotate(180deg);
2021
2021
  }
2022
2022
 
2023
- .VPNavBarMenu-group-items {
2023
+ .BPNavBarMenu-group-items {
2024
2024
  display: none;
2025
2025
  position: absolute;
2026
2026
  right: 0;
@@ -2035,11 +2035,11 @@ export const layoutCSS = `/**
2035
2035
  z-index: 10;
2036
2036
  }
2037
2037
 
2038
- .VPNavBarMenu-group:hover > .VPNavBarMenu-group-items {
2038
+ .BPNavBarMenu-group:hover > .BPNavBarMenu-group-items {
2039
2039
  display: block;
2040
2040
  }
2041
2041
 
2042
- .VPNavBarMenu-group-items a {
2042
+ .BPNavBarMenu-group-items a {
2043
2043
  display: block;
2044
2044
  padding: 6px 16px;
2045
2045
  font-size: 13px;
@@ -2048,13 +2048,13 @@ export const layoutCSS = `/**
2048
2048
  transition: color 0.25s, background-color 0.25s;
2049
2049
  }
2050
2050
 
2051
- .VPNavBarMenu-group-items a:hover {
2051
+ .BPNavBarMenu-group-items a:hover {
2052
2052
  color: var(--bp-c-brand-1);
2053
2053
  background-color: var(--bp-c-bg-soft);
2054
2054
  }
2055
2055
 
2056
2056
  /* Search */
2057
- .VPNavBarSearch {
2057
+ .BPNavBarSearch {
2058
2058
  position: relative;
2059
2059
  display: flex;
2060
2060
  align-items: center;
@@ -2062,7 +2062,7 @@ export const layoutCSS = `/**
2062
2062
  width: 100%;
2063
2063
  }
2064
2064
 
2065
- .VPNavBarSearch-icon {
2065
+ .BPNavBarSearch-icon {
2066
2066
  position: absolute;
2067
2067
  left: 12px;
2068
2068
  width: 16px;
@@ -2071,7 +2071,7 @@ export const layoutCSS = `/**
2071
2071
  pointer-events: none;
2072
2072
  }
2073
2073
 
2074
- .VPNavBarSearch-input {
2074
+ .BPNavBarSearch-input {
2075
2075
  width: 100%;
2076
2076
  height: 32px;
2077
2077
  padding: 0 48px 0 36px;
@@ -2085,17 +2085,17 @@ export const layoutCSS = `/**
2085
2085
  transition: border-color 0.25s, background-color 0.25s;
2086
2086
  }
2087
2087
 
2088
- .VPNavBarSearch-input::placeholder {
2088
+ .BPNavBarSearch-input::placeholder {
2089
2089
  color: var(--bp-c-text-3);
2090
2090
  }
2091
2091
 
2092
- .VPNavBarSearch-input:hover,
2093
- .VPNavBarSearch-input:focus {
2092
+ .BPNavBarSearch-input:hover,
2093
+ .BPNavBarSearch-input:focus {
2094
2094
  border-color: var(--bp-c-brand-1);
2095
2095
  background-color: var(--bp-c-bg);
2096
2096
  }
2097
2097
 
2098
- .VPNavBarSearch-kbd {
2098
+ .BPNavBarSearch-kbd {
2099
2099
  position: absolute;
2100
2100
  right: 8px;
2101
2101
  padding: 2px 6px;
@@ -2110,7 +2110,7 @@ export const layoutCSS = `/**
2110
2110
  }
2111
2111
 
2112
2112
  /* Social/icon links cluster */
2113
- .VPSocialLinks {
2113
+ .BPSocialLinks {
2114
2114
  display: flex;
2115
2115
  align-items: center;
2116
2116
  gap: 12px;
@@ -2118,7 +2118,7 @@ export const layoutCSS = `/**
2118
2118
  border-left: 1px solid var(--bp-c-divider);
2119
2119
  }
2120
2120
 
2121
- .VPSocialLinks > a {
2121
+ .BPSocialLinks > a {
2122
2122
  display: inline-flex;
2123
2123
  align-items: center;
2124
2124
  justify-content: center;
@@ -2129,22 +2129,22 @@ export const layoutCSS = `/**
2129
2129
  transition: color 0.25s, background-color 0.25s;
2130
2130
  }
2131
2131
 
2132
- .VPSocialLinks > a:hover {
2132
+ .BPSocialLinks > a:hover {
2133
2133
  color: var(--bp-c-text-1);
2134
2134
  background-color: var(--bp-c-bg-soft);
2135
2135
  }
2136
2136
 
2137
- .VPSocialLinks > a svg {
2137
+ .BPSocialLinks > a svg {
2138
2138
  width: 20px;
2139
2139
  height: 20px;
2140
2140
  }
2141
2141
 
2142
2142
  /* Content area */
2143
- .VPContent {
2143
+ .BPContent {
2144
2144
  flex: 1;
2145
2145
  }
2146
2146
 
2147
- .VPContent--doc {
2147
+ .BPContent--doc {
2148
2148
  position: fixed;
2149
2149
  top: var(--bp-nav-height, 64px);
2150
2150
  bottom: 0;
@@ -2153,48 +2153,48 @@ export const layoutCSS = `/**
2153
2153
  right: max(0px, calc((100vw - var(--bp-layout-max-width, 1440px)) / 2));
2154
2154
  }
2155
2155
 
2156
- .VPContent--page {
2156
+ .BPContent--page {
2157
2157
  padding-top: var(--bp-nav-height, 64px);
2158
2158
  }
2159
2159
 
2160
- .VPDoc {
2160
+ .BPDoc {
2161
2161
  padding: 32px 24px;
2162
2162
  padding-right: 32px;
2163
2163
  }
2164
2164
 
2165
2165
  @media (min-width: 1280px) {
2166
- .VPDoc {
2166
+ .BPDoc {
2167
2167
  padding: 48px 32px 128px;
2168
2168
  }
2169
2169
  }
2170
2170
 
2171
- .VPDocContent {
2171
+ .BPDocContent {
2172
2172
  max-width: 768px;
2173
2173
  margin: 0;
2174
2174
  }
2175
2175
 
2176
- .VPPage {
2176
+ .BPPage {
2177
2177
  padding: 48px 24px;
2178
2178
  max-width: 768px;
2179
2179
  margin: 0 auto;
2180
2180
  }
2181
2181
 
2182
2182
  @media (min-width: 1280px) {
2183
- .VPPage {
2183
+ .BPPage {
2184
2184
  padding: 64px 32px;
2185
2185
  }
2186
2186
  }
2187
2187
 
2188
2188
  /* Mobile sidebar drawer behaviour */
2189
2189
  @media (max-width: 959px) {
2190
- .VPNavBarSearch {
2190
+ .BPNavBarSearch {
2191
2191
  display: none;
2192
2192
  }
2193
- .VPSocialLinks {
2193
+ .BPSocialLinks {
2194
2194
  padding-left: 12px;
2195
2195
  gap: 8px;
2196
2196
  }
2197
- .VPNavBarMenu {
2197
+ .BPNavBarMenu {
2198
2198
  display: none;
2199
2199
  }
2200
2200
  }
@@ -2203,7 +2203,7 @@ export const layoutCSS = `/**
2203
2203
  * Hero (home layout) — used by hero.stx + serve.ts generateHero
2204
2204
  * -------------------------------------------------------------------------- */
2205
2205
 
2206
- .VPHero-name {
2206
+ .BPHero-name {
2207
2207
  font-size: 20px;
2208
2208
  font-weight: 700;
2209
2209
  letter-spacing: -0.02em;
@@ -2215,7 +2215,7 @@ export const layoutCSS = `/**
2215
2215
  background-clip: text;
2216
2216
  }
2217
2217
 
2218
- .VPHero-text {
2218
+ .BPHero-text {
2219
2219
  font-size: 40px;
2220
2220
  font-weight: 800;
2221
2221
  letter-spacing: -0.02em;
@@ -2224,7 +2224,7 @@ export const layoutCSS = `/**
2224
2224
  margin: 0 0 8px;
2225
2225
  }
2226
2226
 
2227
- .VPHero-tagline {
2227
+ .BPHero-tagline {
2228
2228
  font-size: 18px;
2229
2229
  font-weight: 400;
2230
2230
  line-height: 1.6;
@@ -2233,25 +2233,25 @@ export const layoutCSS = `/**
2233
2233
  }
2234
2234
 
2235
2235
  @media (min-width: 960px) {
2236
- .VPHero-name {
2236
+ .BPHero-name {
2237
2237
  font-size: 24px;
2238
2238
  }
2239
- .VPHero-text {
2239
+ .BPHero-text {
2240
2240
  font-size: 56px;
2241
2241
  }
2242
- .VPHero-tagline {
2242
+ .BPHero-tagline {
2243
2243
  font-size: 20px;
2244
2244
  }
2245
2245
  }
2246
2246
 
2247
- .VPHero-actions {
2247
+ .BPHero-actions {
2248
2248
  display: flex;
2249
2249
  flex-wrap: wrap;
2250
2250
  gap: 12px;
2251
2251
  margin-top: 28px;
2252
2252
  }
2253
2253
 
2254
- .VPButton {
2254
+ .BPButton {
2255
2255
  display: inline-flex;
2256
2256
  align-items: center;
2257
2257
  justify-content: center;
@@ -2267,24 +2267,24 @@ export const layoutCSS = `/**
2267
2267
  cursor: pointer;
2268
2268
  }
2269
2269
 
2270
- .VPButton-brand {
2270
+ .BPButton-brand {
2271
2271
  color: var(--bp-button-brand-text, #fff);
2272
2272
  background-color: var(--bp-c-brand-1);
2273
2273
  border-color: var(--bp-c-brand-1);
2274
2274
  }
2275
2275
 
2276
- .VPButton-brand:hover {
2276
+ .BPButton-brand:hover {
2277
2277
  background-color: var(--bp-c-brand-2);
2278
2278
  border-color: var(--bp-c-brand-2);
2279
2279
  }
2280
2280
 
2281
- .VPButton-alt {
2281
+ .BPButton-alt {
2282
2282
  color: var(--bp-c-text-1);
2283
2283
  background-color: transparent;
2284
2284
  border-color: var(--bp-c-divider);
2285
2285
  }
2286
2286
 
2287
- .VPButton-alt:hover {
2287
+ .BPButton-alt:hover {
2288
2288
  border-color: var(--bp-c-text-2);
2289
2289
  color: var(--bp-c-brand-1);
2290
2290
  }
@@ -2293,39 +2293,39 @@ export const layoutCSS = `/**
2293
2293
  * Features grid — used by features.stx + serve.ts generateFeatures
2294
2294
  * -------------------------------------------------------------------------- */
2295
2295
 
2296
- .VPHomeFeatures {
2296
+ .BPHomeFeatures {
2297
2297
  padding: 48px 24px;
2298
2298
  border-top: 1px solid var(--bp-c-divider);
2299
2299
  }
2300
2300
 
2301
- .VPHomeFeatures-inner {
2301
+ .BPHomeFeatures-inner {
2302
2302
  max-width: 1152px;
2303
2303
  margin: 0 auto;
2304
2304
  }
2305
2305
 
2306
- .VPFeatures {
2306
+ .BPFeatures {
2307
2307
  display: grid;
2308
2308
  grid-template-columns: repeat(1, 1fr);
2309
2309
  gap: 16px;
2310
2310
  }
2311
2311
 
2312
2312
  @media (min-width: 640px) {
2313
- .VPFeatures {
2313
+ .BPFeatures {
2314
2314
  grid-template-columns: repeat(2, 1fr);
2315
2315
  gap: 24px;
2316
2316
  }
2317
2317
  }
2318
2318
 
2319
2319
  @media (min-width: 960px) {
2320
- .VPHomeFeatures {
2320
+ .BPHomeFeatures {
2321
2321
  padding: 64px 32px;
2322
2322
  }
2323
- .VPFeatures {
2323
+ .BPFeatures {
2324
2324
  grid-template-columns: repeat(3, 1fr);
2325
2325
  }
2326
2326
  }
2327
2327
 
2328
- .VPFeature {
2328
+ .BPFeature {
2329
2329
  display: block;
2330
2330
  padding: 24px;
2331
2331
  background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
@@ -2336,12 +2336,12 @@ export const layoutCSS = `/**
2336
2336
  color: inherit;
2337
2337
  }
2338
2338
 
2339
- .VPFeature:hover {
2339
+ .BPFeature:hover {
2340
2340
  border-color: var(--bp-c-brand-1);
2341
2341
  box-shadow: 0 2px 12px rgba(86, 114, 205, 0.08);
2342
2342
  }
2343
2343
 
2344
- .VPFeature-icon {
2344
+ .BPFeature-icon {
2345
2345
  width: 40px;
2346
2346
  height: 40px;
2347
2347
  display: flex;
@@ -2353,17 +2353,17 @@ export const layoutCSS = `/**
2353
2353
  margin-bottom: 12px;
2354
2354
  }
2355
2355
 
2356
- .VPFeature-icon svg {
2356
+ .BPFeature-icon svg {
2357
2357
  width: 24px;
2358
2358
  height: 24px;
2359
2359
  }
2360
2360
 
2361
- .VPFeature-icon-text {
2361
+ .BPFeature-icon-text {
2362
2362
  font-size: 24px;
2363
2363
  font-weight: 700;
2364
2364
  }
2365
2365
 
2366
- .VPFeature-title {
2366
+ .BPFeature-title {
2367
2367
  margin: 0 0 8px;
2368
2368
  font-size: 16px;
2369
2369
  font-weight: 600;
@@ -2371,7 +2371,7 @@ export const layoutCSS = `/**
2371
2371
  color: var(--bp-c-text-1);
2372
2372
  }
2373
2373
 
2374
- .VPFeature-details {
2374
+ .BPFeature-details {
2375
2375
  margin: 0;
2376
2376
  font-size: 14px;
2377
2377
  line-height: 1.6;
@@ -2476,7 +2476,7 @@ export const layoutCSS = `/**
2476
2476
  * Mobile nav / sidebar drawer
2477
2477
  * -------------------------------------------------------------------------- */
2478
2478
 
2479
- .VPNavBarHamburger {
2479
+ .BPNavBarHamburger {
2480
2480
  display: none;
2481
2481
  width: 32px;
2482
2482
  height: 32px;
@@ -2491,22 +2491,22 @@ export const layoutCSS = `/**
2491
2491
  margin-left: -4px;
2492
2492
  }
2493
2493
 
2494
- .VPNavBarHamburger:hover {
2494
+ .BPNavBarHamburger:hover {
2495
2495
  color: var(--bp-c-text-1);
2496
2496
  background-color: var(--bp-c-bg-soft);
2497
2497
  }
2498
2498
 
2499
- .VPNavBarHamburger svg {
2499
+ .BPNavBarHamburger svg {
2500
2500
  width: 20px;
2501
2501
  height: 20px;
2502
2502
  }
2503
2503
 
2504
2504
  @media (max-width: 959px) {
2505
- .VPNavBarHamburger {
2505
+ .BPNavBarHamburger {
2506
2506
  display: inline-flex;
2507
2507
  }
2508
2508
 
2509
- .VPSidebar {
2509
+ .BPSidebar {
2510
2510
  transform: translateX(-100%);
2511
2511
  transition: transform 0.25s ease, box-shadow 0.25s ease;
2512
2512
  z-index: var(--bp-z-index-sidebar, 25);
@@ -2514,12 +2514,12 @@ export const layoutCSS = `/**
2514
2514
  box-shadow: none;
2515
2515
  }
2516
2516
 
2517
- .VPSidebar.is-open {
2517
+ .BPSidebar.is-open {
2518
2518
  transform: translateX(0);
2519
2519
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
2520
2520
  }
2521
2521
 
2522
- .VPSidebar-backdrop {
2522
+ .BPSidebar-backdrop {
2523
2523
  position: fixed;
2524
2524
  inset: 0;
2525
2525
  background-color: rgba(0, 0, 0, 0.32);
@@ -2529,12 +2529,12 @@ export const layoutCSS = `/**
2529
2529
  z-index: calc(var(--bp-z-index-sidebar, 25) - 1);
2530
2530
  }
2531
2531
 
2532
- .VPSidebar-backdrop.is-open {
2532
+ .BPSidebar-backdrop.is-open {
2533
2533
  opacity: 1;
2534
2534
  pointer-events: auto;
2535
2535
  }
2536
2536
 
2537
- .VPContent--doc {
2537
+ .BPContent--doc {
2538
2538
  left: 0;
2539
2539
  }
2540
2540
  }
package/dist/types.d.ts CHANGED
@@ -10,6 +10,8 @@ export declare interface BunPressConfig {
10
10
  docsDir?: string
11
11
  outDir?: string
12
12
  basePath?: string
13
+ componentsDir?: string
14
+ dataDir?: string
13
15
  theme?: 'vitepress' | 'bun'
14
16
  markdown: MarkdownPluginConfig
15
17
  nav?: NavItem[]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/bunpress",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "Modern documentation engine. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{H as a,I as b,J as c,K as d,L as e,M as f}from"./chunk-8mywpq4a.js";import"./chunk-43fsk0jg.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};