Skip to content

Commit b445c5e

Browse files
authored
Merge pull request #74 from ggeop/develop
Develop
2 parents 23a9a40 + 77435e6 commit b445c5e

39 files changed

Lines changed: 698 additions & 5 deletions

.github/workflows/docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy MkDocs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.x'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install mkdocs-material
26+
pip install mkdocstrings[python]
27+
28+
- name: Deploy
29+
run: |
30+
mkdocs gh-deploy --force

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@ Thumbs.db
6363
*.gguf
6464

6565
# Virtual env
66-
venv
66+
venv
67+
68+
# Virtual Environment
69+
docs_venv/
70+
DataDialogue.code-workspace

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<td align="center">
2626
<a href="https://www.youtube.com/watch?v=breOr5o7r3Y">
2727
<picture>
28-
<img src="media/imgs/data_dialogue_agent_responses.png" alt="Data Dialogue Demo" width="600" style="max-width: 100%; border-radius: 10px; margin-bottom: -40px;"/>
28+
<img src="docs/media/imgs/data_dialogue_agent_responses.png" alt="Data Dialogue Demo" width="600" style="max-width: 100%; border-radius: 10px; margin-bottom: -40px;"/>
2929
</picture>
3030
<br/>
3131
</a>
@@ -35,7 +35,7 @@
3535
<td align="center">
3636
<a href="https://www.youtube.com/watch?v=breOr5o7r3Y" style="text-decoration: none;">
3737
<picture>
38-
<img src="media/youtube_button.png" alt="Play Button" width="20" style="margin-right: 5px; vertical-align: middle;"/>
38+
<img src="docs/media/youtube_button.png" alt="Play Button" width="20" style="margin-right: 5px; vertical-align: middle;"/>
3939
</picture>
4040
<sup>Click to watch the demo video</sup>
4141
</a>
@@ -105,8 +105,8 @@ Please don't hesitate to open an issue or submit a pull request.
105105

106106
## 🎯 Getting Started
107107

108-
![UI Screenshot](media/imgs/data_dialogue_steps.png)
109-
![UI Screenshot](media/imgs/data_dialogue_agent_responses.png)
108+
![UI Screenshot](docs/media/imgs/data_dialogue_steps.png)
109+
![UI Screenshot](docs/media/imgs/data_dialogue_agent_responses.png)
110110

111111
### Prerequisites
112112

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/documentation/requirements.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""
2+
Documentation requirements for DataDialogue.
3+
This file contains the Python dependencies needed for building and testing the documentation.
4+
"""
5+
6+
REQUIREMENTS = [
7+
"mkdocs>=1.5.0",
8+
"mkdocs-material>=9.5.0",
9+
"mkdocstrings>=0.24.0",
10+
"mkdocstrings-python>=1.7.0",
11+
"pymdown-extensions>=10.0.0",
12+
"mkdocs-git-revision-date-localized-plugin>=1.2.0",
13+
"mkdocs-git-authors-plugin>=0.7.0",
14+
"mkdocs-minify-plugin>=0.7.0",
15+
"mkdocs-redirects>=2.0.0",
16+
"mkdocs-section-index>=0.3.5",
17+
"mkdocs-awesome-pages-plugin>=2.9.0",
18+
"mkdocs-mermaid2-plugin>=0.6.0",
19+
"mkdocs-glightbox>=0.3.0",
20+
"mkdocs-print-site-plugin>=0.8.0",
21+
"mkdocs-exclude>=1.0.2",
22+
"mkdocs-macros-plugin>=1.0.0",
23+
"mkdocs-autolinks-plugin>=0.5.0",
24+
"mkdocs-versioning>=0.1.0",
25+
"mkdocs-git-committers-plugin>=1.1.0",
26+
"mkdocs-git-revision-date-plugin>=0.3.0",
27+
]

docs/documentation/setup.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Documentation Setup Guide
2+
3+
This guide will help you set up the local development environment for building and testing the DataDialogue documentation.
4+
5+
## Prerequisites
6+
7+
- Python 3.8 or higher
8+
- pip (Python package installer)
9+
- Git
10+
11+
## Installation
12+
13+
1. Clone the repository:
14+
```bash
15+
git clone https://github.com/ggeop/DataDialogueLLM.git
16+
cd DataDialogueLLM
17+
```
18+
19+
2. Create a virtual environment (recommended):
20+
```bash
21+
# On Windows
22+
python -m venv venv
23+
.\venv\Scripts\activate
24+
25+
# On Unix or MacOS
26+
python3 -m venv venv
27+
source venv/bin/activate
28+
```
29+
30+
3. Install documentation dependencies:
31+
```bash
32+
pip install -r docs/documentation/requirements.py
33+
```
34+
35+
## Building Documentation
36+
37+
1. Navigate to the project root:
38+
```bash
39+
cd DataDialogueLLM
40+
```
41+
42+
2. Build the documentation:
43+
```bash
44+
mkdocs build
45+
```
46+
47+
3. Serve the documentation locally:
48+
```bash
49+
mkdocs serve
50+
```
51+
52+
4. Access the documentation at `http://127.0.0.1:8000`
53+
54+
## Testing Documentation
55+
56+
1. **Live Preview**
57+
- Run `mkdocs serve`
58+
- Open `http://127.0.0.1:8000` in your browser
59+
- Changes will automatically reload
60+
61+
2. **Build Testing**
62+
- Run `mkdocs build`
63+
- Check the `site` directory for the built documentation
64+
- Verify all pages render correctly
65+
66+
3. **Link Checking**
67+
- Install link checking tool:
68+
```bash
69+
pip install linkchecker
70+
```
71+
- Run link checker:
72+
```bash
73+
linkchecker http://127.0.0.1:8000
74+
```
75+
76+
## Common Issues
77+
78+
1. **Missing Dependencies**
79+
- Solution: Run `pip install -r docs/documentation/requirements.py`
80+
81+
2. **Build Errors**
82+
- Check for syntax errors in markdown files
83+
- Verify all referenced files exist
84+
- Check mkdocs.yml configuration
85+
86+
3. **Theme Issues**
87+
- Clear browser cache
88+
- Restart mkdocs serve
89+
- Verify theme configuration in mkdocs.yml
90+
91+
## Best Practices
92+
93+
1. **Writing Documentation**
94+
- Use clear, concise language
95+
- Follow the established structure
96+
- Include code examples where relevant
97+
- Add screenshots for UI-related content
98+
99+
2. **Version Control**
100+
- Create a new branch for documentation changes
101+
- Use descriptive commit messages
102+
- Test changes locally before pushing
103+
104+
3. **Maintenance**
105+
- Keep dependencies up to date
106+
- Regularly check for broken links
107+
- Update screenshots when UI changes
108+
109+
## Additional Resources
110+
111+
- [MkDocs Documentation](https://www.mkdocs.org/)
112+
- [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/)
113+
- [Markdown Guide](https://www.markdownguide.org/)
14.7 KB
Loading

0 commit comments

Comments
 (0)