update docs, add dockerfile

This commit is contained in:
ramnique 2025-01-28 17:17:58 +05:30
parent 13bc8600c6
commit cdc96e7ce3
6 changed files with 83 additions and 17 deletions

View file

@ -27,7 +27,7 @@ jobs:
- name: Install and Deploy
working-directory: apps/docs
run: |
pip install mkdocs-material
pip install -r requirements.txt
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
mkdocs gh-deploy --force

View file

@ -149,6 +149,10 @@ Before running RowBoat, ensure you have:
}
```
6. **Documentation**
The documentation site is available at [http://localhost:8000](http://localhost:8000)
## Troubleshooting
1. **MongoDB Connection Issues**

11
apps/docs/Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM python:3.12
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["mkdocs", "serve", "--dev-addr", "0.0.0.0:8000"]

View file

@ -1,17 +1,5 @@
# Welcome to MkDocs
# Welcome to Rowboat
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
Welcome to the official documentation for Rowboat. Rowboat is an open-source project that helps you build, test, and deploy AI applications.
## Commands
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.
## Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
You can find the source code on GitHub at [@rowboatlabs/rowboat](https://github.com/rowboatlabs/rowboat/).

55
apps/docs/readme.md Normal file
View file

@ -0,0 +1,55 @@
# Documentation Site
This documentation site is built using [MkDocs Material](https://squidfunk.github.io/mkdocs-material/), a modern documentation framework that creates beautiful and functional static sites.
## Prerequisites
- Python 3.x
- pip (Python package manager)
## Setup
Install the required dependencies:
```bash
pip install -r requirements.txt
```
## Development
To run the documentation site locally:
```bash
mkdocs serve
```
This will start a local server, and you can view the documentation site at `http://localhost:8000`.
### Building the static site
To build the static site:
```bash
mkdocs build
```
This will generate the static site in the `site` directory.
### Project structure
- `mkdocs.yml`: The main configuration file for MkDocs.
- `docs/`: The directory containing the Markdown files for the documentation.
- `site/`: The directory generated by the `mkdocs build` command, containing the static site files.
## Writing Documentation
- Documentation files are written in Markdown format
- Place new documentation files in the `docs` directory
- Update `mkdocs.yml` to include new pages in the navigation
## Additional Resources
- [Mkdocs documentation](https://www.mkdocs.org/getting-started/)
- [MkDocs Material Documentation](https://squidfunk.github.io/mkdocs-material/getting-started/)
- [Markdown Guide](https://www.markdownguide.org/basic-syntax/)

View file

@ -41,4 +41,12 @@ services:
- "3002:3002"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
restart: unless-stopped
restart: unless-stopped
docs:
build:
context: ./apps/docs
dockerfile: Dockerfile
ports:
- "8000:8000"
restart: unless-stopped