-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: inferred frontmatter; raw styles; more
- Loading branch information
Showing
36 changed files
with
1,107 additions
and
1,207 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Getting Started [Get started with Vocs in under a minute] | ||
|
||
## Overview | ||
|
||
Vocs is a static documentation generator powered by [Vite](https://vitejs.dev) and [React](https://react.dev). | ||
|
||
Write your content in [Markdown](#TODO) or [MDX](#TODO), and Vocs will generate a static site with a default theme. | ||
|
||
## Quick Start | ||
|
||
Scaffold a new project with the command line: | ||
|
||
```bash | ||
npx vocs init | ||
``` | ||
|
||
## Manual Installation | ||
|
||
You can install Vocs in an existing project, or start from scratch, by installing Vocs as a dependency. | ||
|
||
### 1. Install | ||
|
||
First, we will install `vocs` as a dependency in our project. | ||
|
||
:::code-group | ||
|
||
```bash [npm] | ||
npm i vocs | ||
``` | ||
|
||
```bash [pnpm] | ||
pnpm i vocs | ||
``` | ||
|
||
```bash [yarn] | ||
yarn add vocs | ||
``` | ||
|
||
```bash [bun] | ||
bun i vocs | ||
``` | ||
|
||
::: | ||
|
||
### 2. Add Scripts to `package.json` | ||
|
||
After that, let's add some scripts to our `package.json` for Vocs. | ||
|
||
```json [package.json] | ||
{ | ||
"name": "example", | ||
"version": "0.0.0", | ||
"scripts": { // [!code focus] | ||
"docs:dev": "vocs", // [!code focus] | ||
"docs:build": "vocs build", // [!code focus] | ||
"docs:preview": "vocs preview" // [!code focus] | ||
} // [!code focus] | ||
} | ||
``` | ||
|
||
### 3. Build your First Page | ||
|
||
Create a directory called `docs`, and add a file inside of it called `index.mdx`: | ||
|
||
```markdown [docs/index.mdx] | ||
# Hello, World! [This is my first page] | ||
|
||
Welcome to my docs. | ||
``` | ||
|
||
### 4. Run | ||
|
||
Next, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
Then open up your browser to `http://localhost:5173`, and you can see your first page! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.