Add tech_docs/mkdocs-setup.md
This commit is contained in:
48
tech_docs/mkdocs-setup.md
Normal file
48
tech_docs/mkdocs-setup.md
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
## 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.
|
||||||
|
|
||||||
|
These steps should help you resolve the issues and get both the MkDocs and Dash applications running smoothly. Let me know if you need any further assistance!
|
||||||
Reference in New Issue
Block a user