Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 19, 2025
1 parent f9619ba commit 5a2c1ec
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 8 deletions.
5 changes: 4 additions & 1 deletion docs/headings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ const headings = [
{
level: 2,
title: 'Add SSR/SSG to existing Vite app',
url: '/add'
url: '/add',
pageDesign: {
hideMenuLeft: true
}
},
{
level: 1,
Expand Down
5 changes: 4 additions & 1 deletion docs/headingsDetached.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,10 @@ function getStarted(): HeadingDetachedDefinition[] {
return [
{
title: 'Scaffold new app without Vike extension',
url: '/new/core'
url: '/new/core',
pageDesign: {
hideMenuLeft: true as const
}
}
].map((h) => ({ ...h, category: 'Get Started' }))
}
Expand Down
12 changes: 7 additions & 5 deletions docs/pages/new/+Page.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import { Link } from '@brillout/docpress'
import { UiFrameworkExtension } from '../../components'
import { BatiWidget } from './BatiWidget.tsx'
import { BatiNote } from './BatiNote.tsx'

<br/>
<div style={{height: 30}}></div>

<BatiWidget />

> **Requirement**: you need [Node.js](https://nodejs.org) installed (or Deno/Bun) which includes the package manager `npm` (you can also use any other package manager).
<BatiNote />

> The scaffolded app will use Vike extensions such as <UiFrameworkExtension name />. See <Link href="/new/core">vike.dev/new/core</Link> instead if you want to scaffold an app that directly uses Vike core (without any Vike extension).
<div style={{height: 10}}></div>

> This scaffolder is powered by [Bati](https://github.com/vikejs/bati).
> **Requirement:** you need [Node.js](https://nodejs.org) installed (or Deno/Bun). It includes the package manager `npm` (you can also use any other package manager).
> Scaffolded apps use Vike extensions such as <UiFrameworkExtension name />. See <Link href="/new/core">vike.dev/new/core</Link> if you want to scaffold an app that directly uses Vike core (without any Vike extension).
## See also

- <Link href="/new/core" />
- <Link href="/add" />
- [GitHub > `vikejs/bati`](https://github.com/vikejs/bati) - the source code of the scaffolder above
31 changes: 31 additions & 0 deletions docs/pages/new/BatiNote.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
export { BatiNote }

import React from 'react'
import batiLogo from './bati-logo.svg'
const batiLogoSize = 16

function BatiNote() {
return (
<p
style={{
color: '#888',
fontSize: '14px',
textAlign: 'center'
}}
>
Powered by{' '}
<a href="https://github.com/vikejs/bati">
Bati{' '}
<img
src={batiLogo}
style={{
width: batiLogoSize,
height: batiLogoSize,
display: 'inline-block',
verticalAlign: 'text-top'
}}
/>
</a>
</p>
)
}
4 changes: 3 additions & 1 deletion docs/pages/new/BatiWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ function BatiWidget() {
assert(wasAdded())
}, [])
if (isLoading) {
return <div style={{ textAlign: 'center', fontSize: '2em', margin: 100, paddingBottom: 50 }}>Loading...</div>
return (
<div style={{ textAlign: 'center', fontSize: '2em', margin: 100, paddingBottom: 50 }}>Loading scaffolder...</div>
)
}
return (
<>
Expand Down
Loading

0 comments on commit 5a2c1ec

Please sign in to comment.