Files
the_information_nexus/tech_docs/mkdocs-setup.md

54 lines
923 B
Markdown

## MkDocs Project
```bash
source venv/bin/activate
```
```bash
deactivate
```
```bash
sudo lsof -i :8000 # For MkDocs
```
```bash
sudo lsof -i :8050 # For Dash
```
```bash
sudo kill -9 <PID>
```
---
1. **Ensure your directory structure is correct**:
```markdown
my-mkdocs-site/
├── dash_app/
│ └── app.py
├── docs/
│ ├── assets/
│ │ └── logo.png
│ ├── css/
│ │ └── custom.css
│ ├── index.md
│ ├── about.md
│ └── contact.md
└── mkdocs.yml
```
2. **Access Both Applications**
- **Dash App**: Open `http://127.0.0.1:8050/` in your browser to see the Dash app with the dark theme.
- **MkDocs Site**: Open `http://127.0.0.1:8000/` in your browser to see the MkDocs site with the embedded Dash app.
---
```bash
#!/bin/bash
# run_servers.sh
mkdocs serve -a 192.168.2.219:8000 &
python dash_app/app.py
```