Document how to develop the documentation

This commit is contained in:
Wilson Silva 2023-09-16 16:25:20 +07:00
parent c27de6d506
commit 3fbc523b18
No known key found for this signature in database
GPG Key ID: 65135F94E23F82C8
2 changed files with 49 additions and 2 deletions

View File

@ -23,6 +23,9 @@ export default defineConfig({
socialLinks: [ socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
] ],
} },
ignoreDeadLinks: [
/^https?:\/\/localhost/
],
}) })

44
docs/README.md Normal file
View File

@ -0,0 +1,44 @@
# Nostr Docs
VitePress-powered documentation for the Nostr Ruby gem.
## Live Demo
https://nostr-omega.vercel.app/
## Development
### Requirements
- [Bun](https://bun.sh/)
### Installation
```shell
bun install
```
### Tasks
The `docs:dev` script will start a local dev server with instant hot updates. Run it with the following command:
```shell
bun run docs:dev
```
Run this command to build the docs:
```shell
bun run docs:build
```
Once built, preview it locally by running:
```shell
bun run docs:preview
```
The preview command will boot up a local static web server that will serve the output directory .`vitepress/dist` at
http://localhost:4173. You can use this to make sure everything looks good before pushing to production.