-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from video-db/ashu/fix-readme
improved readme for docs
- Loading branch information
Showing
1 changed file
with
46 additions
and
9 deletions.
There are no files selected for viewing
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,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. |