Skip to content

Commit

Permalink
Merge pull request #17 from video-db/ashu/fix-readme
Browse files Browse the repository at this point in the history
improved readme for docs
  • Loading branch information
codeAshu authored Oct 25, 2024
2 parents edc4840 + b63db05 commit 0ed8c7b
Showing 1 changed file with 46 additions and 9 deletions.
55 changes: 46 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,68 @@
# Documentation
# 📚 Spielberg Documentation

This directory contains the documentation for the Spielberg project. We use MkDocs to build and serve our documentation.

## 🚀 Getting Started

### Prerequisites

- Python 3.9 or higher
- pip (Python package installer)

## 🛠️ Setup

### 1. Set up a virtual environment

### Setup virtual environment
```bash
python -m venv backend/venv
source backend/venv/bin/activate
source backend/venv/bin/activate
```

### 2. Install dependencies

### Install dependencies
```bash
Make install-be
make install-be
```

## 📖 Serving the Documentation

### Serve locally on port 9000

To start the documentation server:

### Start the documentation server
```bash
mkdocs serve -w ./backend -a localhost:9000
mkdocs serve -a localhost:9000
```

The documentation will be available at `http://localhost:9000`.

### Serve from the backend directory

If you're in the backend directory, you can serve the docs using:

### Start the documentation server from the backend directory
```bash
mkdocs serve -f ../mkdocs.yml -a localhost:9000
```

## 🏗️ Building the Documentation

To build the documentation site:

### Build the documentation
```bash
mkdocs build
```

This will create a `site` directory with the built HTML files.

## 📝 Contributing

When adding new documentation:

1. Create or edit Markdown files in the `docs/` directory.
2. Update `mkdocs.yml` if you've added new pages.
3. Run the server locally to preview your changes.
4. Build the documentation to ensure everything compiles correctly.

## 🤝 Need Help?

If you encounter any issues or have questions about the documentation, please [open an issue](https://github.com/video-db/Spielberg/issues) on our GitHub repository.

0 comments on commit 0ed8c7b

Please sign in to comment.