Skip to content

Commit b55fda8

Browse files
Merge pull request #170 from BrainBlend-AI/feature/docs-improvements
fix(docs): correct broken links and automate version sync
2 parents 2b70ef4 + bf2d5e6 commit b55fda8

File tree

6 files changed

+94
-26
lines changed

6 files changed

+94
-26
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
pip install poetry
3737
poetry install
3838
39+
- name: Sync version from pyproject.toml
40+
run: |
41+
poetry run python scripts/sync_version.py
42+
3943
- name: Build documentation
4044
run: |
4145
cd docs
@@ -48,9 +52,10 @@ jobs:
4852
4953
- name: Copy llms files to build directory
5054
run: |
51-
cp docs/llms-*.txt docs/_build/html/
55+
mkdir -p docs/_build/html/_static
56+
cp docs/llms-*.txt docs/_build/html/_static/
5257
echo "Generated llms files:"
53-
ls -lh docs/_build/html/llms-*.txt
58+
ls -lh docs/_build/html/_static/llms-*.txt
5459
5560
- name: Upload artifact
5661
uses: actions/upload-pages-artifact@v3

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
project = "Atomic Agents"
77
copyright = "2024, Kenny Vaneetvelde"
88
author = "Kenny Vaneetvelde"
9-
version = "1.1.0"
10-
release = "1.1.0"
9+
version = "2.0.4"
10+
release = "2.0.4"
1111

1212
extensions = [
1313
"sphinx.ext.autodoc",

docs/examples/index.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This section contains detailed examples of using Atomic Agents in various scenar
44

55
```{note}
66
All examples are available in optimized formats for AI assistants:
7-
- **[Examples with documentation](../llms-examples.txt)** - All examples with source code and READMEs
8-
- **[Full framework package](../llms-full.txt)** - Complete documentation, source, and examples
7+
- **[Examples with documentation](../_static/llms-examples.txt)** - All examples with source code and READMEs
8+
- **[Full framework package](../_static/llms-full.txt)** - Complete documentation, source, and examples
99
```
1010

1111
## Quickstart Examples
@@ -18,7 +18,7 @@ Simple examples to get started with the framework:
1818
- Custom input/output schemas
1919
- Multiple provider support
2020

21-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/quickstart)** - Browse the complete source code and run the examples
21+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/quickstart)** - Browse the complete source code and run the examples
2222

2323
## Basic Multimodal
2424

@@ -29,7 +29,7 @@ Examples of working with images and text:
2929
- Visual content generation
3030
- Multi-image comparisons
3131

32-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/basic-multimodal)** - Browse the complete source code and run the examples
32+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/basic-multimodal)** - Browse the complete source code and run the examples
3333

3434
## RAG Chatbot
3535

@@ -41,7 +41,7 @@ Build context-aware chatbots with retrieval-augmented generation:
4141
- Source attribution
4242
- Follow-up suggestions
4343

44-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/rag-chatbot)** - Browse the complete source code and run the examples
44+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/rag-chatbot)** - Browse the complete source code and run the examples
4545

4646
## Web Search Agent
4747

@@ -53,7 +53,7 @@ Create agents that can search and analyze web content:
5353
- Multi-source research
5454
- Citation tracking
5555

56-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/web-search-agent)** - Browse the complete source code and run the examples
56+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/web-search-agent)** - Browse the complete source code and run the examples
5757

5858
## Deep Research
5959

@@ -65,7 +65,7 @@ Perform comprehensive research tasks:
6565
- Structured output generation
6666
- Citation management
6767

68-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/deep-research)** - Browse the complete source code and run the examples
68+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/deep-research)** - Browse the complete source code and run the examples
6969

7070
## YouTube Summarizer
7171

@@ -77,7 +77,7 @@ Extract and analyze information from videos:
7777
- Timestamp linking
7878
- Chapter generation
7979

80-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/youtube-summarizer)** - Browse the complete source code and run the examples
80+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/youtube-summarizer)** - Browse the complete source code and run the examples
8181

8282
## YouTube to Recipe
8383

@@ -89,7 +89,7 @@ Convert cooking videos into structured recipes:
8989
- Step-by-step instructions
9090
- Time and temperature conversion
9191

92-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/youtube-to-recipe)** - Browse the complete source code and run the examples
92+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/youtube-to-recipe)** - Browse the complete source code and run the examples
9393

9494
## Orchestration Agent
9595

@@ -101,7 +101,7 @@ Coordinate multiple agents for complex tasks:
101101
- Error handling
102102
- Result aggregation
103103

104-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/orchestration-agent)** - Browse the complete source code and run the examples
104+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/orchestration-agent)** - Browse the complete source code and run the examples
105105

106106
## MCP Agent
107107

@@ -114,4 +114,4 @@ Build intelligent agents using the Model Context Protocol:
114114
- Extensible tool architecture
115115

116116
[View MCP Agent Documentation](mcp_agent.md)
117-
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/mcp-agent)** - Browse the complete source code and run the examples
117+
📂 **[View on GitHub](https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/mcp-agent)** - Browse the complete source code and run the examples

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ contributing
2121
2222
Choose the resource that best fits your needs:
2323
24-
- **[📚 Full Package](llms-full.txt)** - Complete documentation, source code, and examples in one file
25-
- **[📖 Documentation Only](llms-docs.txt)** - API documentation, guides, and references
26-
- **[💻 Source Code Only](llms-source.txt)** - Complete atomic-agents framework source code
27-
- **[🎯 Examples Only](llms-examples.txt)** - All example implementations with READMEs
24+
- **[📚 Full Package](_static/llms-full.txt)** - Complete documentation, source code, and examples in one file
25+
- **[📖 Documentation Only](_static/llms-docs.txt)** - API documentation, guides, and references
26+
- **[💻 Source Code Only](_static/llms-source.txt)** - Complete atomic-agents framework source code
27+
- **[🎯 Examples Only](_static/llms-examples.txt)** - All example implementations with READMEs
2828
2929
All files are optimized for AI assistants and Large Language Models, with clear structure and formatting for easy parsing.
3030
```

scripts/generate_llms_files.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def generate_documentation_only() -> str:
115115
content = create_section_divider("ATOMIC AGENTS DOCUMENTATION", 1)
116116
content += "This file contains the complete documentation for the Atomic Agents framework.\n"
117117
content += "Generated for use with Large Language Models and AI assistants.\n"
118-
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-monorepo\n"
118+
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-agents\n"
119119

120120
content += create_section_divider("DOCUMENTATION", 1)
121121
content += extract_documentation_from_html()
@@ -128,7 +128,7 @@ def generate_source_code_only() -> str:
128128
content = create_section_divider("ATOMIC AGENTS SOURCE CODE", 1)
129129
content += "This file contains the complete source code for the Atomic Agents framework.\n"
130130
content += "Generated for use with Large Language Models and AI assistants.\n"
131-
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-monorepo\n"
131+
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-agents\n"
132132

133133
files = get_files_to_include(ATOMIC_AGENTS_DIR, SOURCE_CODE_EXTENSIONS)
134134

@@ -143,7 +143,7 @@ def generate_examples_only() -> str:
143143
content = create_section_divider("ATOMIC AGENTS EXAMPLES", 1)
144144
content += "This file contains all example implementations using the Atomic Agents framework.\n"
145145
content += "Each example includes its README documentation and complete source code.\n"
146-
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-monorepo\n"
146+
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-agents\n"
147147

148148
# Get all example directories
149149
example_dirs = [d for d in ATOMIC_EXAMPLES_DIR.iterdir() if d.is_dir() and d.name not in EXCLUDE_DIRS]
@@ -153,7 +153,7 @@ def generate_examples_only() -> str:
153153
content += create_section_divider(f"Example: {example_dir.name}", 2)
154154

155155
# Add GitHub link
156-
github_url = f"https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/{example_dir.name}"
156+
github_url = f"https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/{example_dir.name}"
157157
content += f"**View on GitHub:** {github_url}\n\n"
158158

159159
# Process README first if it exists
@@ -184,7 +184,7 @@ def generate_full_content() -> str:
184184
content = create_section_divider("ATOMIC AGENTS - COMPREHENSIVE DOCUMENTATION, SOURCE CODE, AND EXAMPLES", 1)
185185
content += "This file contains the complete documentation, source code, and examples for the Atomic Agents framework.\n"
186186
content += "Generated for use with Large Language Models and AI assistants.\n"
187-
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-monorepo\n"
187+
content += f"Project Repository: https://github.com/BrainBlend-AI/atomic-agents\n"
188188
content += f"\nTable of Contents:\n"
189189
content += "1. Documentation\n"
190190
content += "2. Atomic Agents Source Code\n"
@@ -214,7 +214,7 @@ def generate_full_content() -> str:
214214
for example_dir in example_dirs:
215215
content += create_section_divider(f"Example: {example_dir.name}", 2)
216216

217-
github_url = f"https://github.com/BrainBlend-AI/atomic-monorepo/tree/main/atomic-examples/{example_dir.name}"
217+
github_url = f"https://github.com/BrainBlend-AI/atomic-agents/tree/main/atomic-examples/{example_dir.name}"
218218
content += f"**View on GitHub:** {github_url}\n\n"
219219

220220
readme_files = list(example_dir.glob("README.*"))
@@ -236,7 +236,7 @@ def generate_full_content() -> str:
236236

237237
content += create_section_divider("END OF DOCUMENT", 1)
238238
content += "This comprehensive documentation was generated for use with AI assistants and LLMs.\n"
239-
content += "For the latest version, please visit: https://github.com/BrainBlend-AI/atomic-monorepo\n"
239+
content += "For the latest version, please visit: https://github.com/BrainBlend-AI/atomic-agents\n"
240240

241241
return content
242242

scripts/sync_version.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env python3
2+
"""
3+
Sync version from pyproject.toml to docs/conf.py
4+
"""
5+
6+
import re
7+
from pathlib import Path
8+
9+
# Define paths
10+
PROJECT_ROOT = Path(__file__).parent.parent
11+
PYPROJECT_FILE = PROJECT_ROOT / "pyproject.toml"
12+
DOCS_CONF_FILE = PROJECT_ROOT / "docs" / "conf.py"
13+
14+
def get_version_from_pyproject():
15+
"""Extract version from pyproject.toml using regex"""
16+
with open(PYPROJECT_FILE, 'r') as f:
17+
content = f.read()
18+
19+
# Look for version line in [tool.poetry] section
20+
match = re.search(r'^version = ["\'](.*?)["\']', content, re.MULTILINE)
21+
if match:
22+
return match.group(1)
23+
else:
24+
raise ValueError("Could not find version in pyproject.toml")
25+
26+
def update_docs_conf(version):
27+
"""Update version in docs/conf.py"""
28+
with open(DOCS_CONF_FILE, 'r') as f:
29+
content = f.read()
30+
31+
# Replace version line
32+
content = re.sub(
33+
r'^version = "[^"]*"$',
34+
f'version = "{version}"',
35+
content,
36+
flags=re.MULTILINE
37+
)
38+
39+
# Replace release line
40+
content = re.sub(
41+
r'^release = "[^"]*"$',
42+
f'release = "{version}"',
43+
content,
44+
flags=re.MULTILINE
45+
)
46+
47+
with open(DOCS_CONF_FILE, 'w') as f:
48+
f.write(content)
49+
50+
print(f"Updated docs/conf.py to version {version}")
51+
52+
def main():
53+
"""Main function"""
54+
try:
55+
version = get_version_from_pyproject()
56+
print(f"Found version {version} in pyproject.toml")
57+
update_docs_conf(version)
58+
except Exception as e:
59+
print(f"Error: {e}")
60+
exit(1)
61+
62+
if __name__ == "__main__":
63+
main()

0 commit comments

Comments
 (0)