2023-03-30 16:13:55 +02:00
# Spacebar Docs
2021-10-14 12:45:24 +02:00
2023-08-31 05:05:25 +02:00
[![Build to GitHub Pages ](https://github.com/spacebarchat/docs/actions/workflows/build.yml/badge.svg )](https://github.com/spacebarchat/docs/actions/workflows/build.yml)
[![Netlify Status ](https://api.netlify.com/api/v1/badges/86622c9d-4952-4da5-9825-cc016e4a5e5f/deploy-status )](https://app.netlify.com/sites/spacebar-chat/deploys)
[![code style: prettier ](https://img.shields.io/badge/code_style-prettier-ff69b4.svg )](https://github.com/prettier/prettier)
2021-05-14 13:21:05 +02:00
2023-03-30 16:13:55 +02:00
[![Deploy with Vercel ](https://vercel.com/button )](https://vercel.com/new/clone?repository-url=https://github.com/spacebarchat/docs)
2023-01-16 01:01:33 +01:00
2023-03-19 13:08:17 +01:00
## How to get started
2021-10-14 12:45:24 +02:00
2021-10-14 13:01:40 +02:00
1. Fork this repository.
2. Clone the forked repository.
2021-10-14 12:45:24 +02:00
2022-12-20 13:29:35 +01:00
```bash
2023-03-30 16:13:55 +02:00
git clone https://github.com/< YOUR_USERNAME_HERE > /docs
2022-12-20 13:29:35 +01:00
```
2021-10-14 12:45:24 +02:00
2021-10-14 13:01:40 +02:00
3. Install dependencies.
2021-10-14 12:45:24 +02:00
2022-12-20 13:29:35 +01:00
```bash
2023-08-22 05:43:21 +02:00
python3 -m pip install -r requirements.txt
2022-12-20 13:29:35 +01:00
```
2021-10-14 12:45:24 +02:00
2021-10-17 02:47:53 +02:00
4. Edit documents(s).
2021-05-14 13:25:13 +02:00
2022-12-20 13:29:35 +01:00
- Format document(s).
2021-10-17 02:47:53 +02:00
2023-03-30 16:13:55 +02:00
Spacebar uses [prettier ](https://prettier.io ) formatter to consistently format our documents. Instructions to install and use prettier can be found [here ](https://prettier.io/docs/en/install.html ).
2021-10-17 02:47:53 +02:00
2022-12-20 13:29:35 +01:00
If you are using vscode, install the [prettier extension ](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode ) to automatically format documents on save.
2021-10-17 02:47:53 +02:00
5. Test locally.
2023-03-19 13:08:17 +01:00
- Serve in < http: // 127 . 0 . 0 . 1:8000 > with hot reload:
2021-05-14 13:26:02 +02:00
2022-12-20 13:29:35 +01:00
```bash
python3 -m mkdocs serve
```
2021-05-14 13:25:23 +02:00
2022-12-20 13:29:35 +01:00
- Build for production:
2021-05-14 13:26:02 +02:00
2022-12-20 13:29:35 +01:00
```bash
python3 -m mkdocs build
```
2021-10-14 13:01:40 +02:00
2021-10-17 02:47:53 +02:00
6. Commit changes with good commit messages.
7. Create a pull request.