|
| 1 | +# TestTeller Documentation Site |
| 2 | + |
| 3 | +This folder contains the Jekyll-powered documentation site for TestTeller. |
| 4 | + |
| 5 | +## Local Development |
| 6 | + |
| 7 | +### Prerequisites |
| 8 | + |
| 9 | +- Ruby (version 2.5.0 or higher) |
| 10 | +- Bundler (`gem install bundler`) |
| 11 | + |
| 12 | +### Setup |
| 13 | + |
| 14 | +1. Navigate to the docs directory: |
| 15 | + ```bash |
| 16 | + cd docs/ |
| 17 | + ``` |
| 18 | + |
| 19 | +2. Install dependencies: |
| 20 | + ```bash |
| 21 | + bundle install |
| 22 | + ``` |
| 23 | + |
| 24 | +3. Serve the site locally: |
| 25 | + ```bash |
| 26 | + bundle exec jekyll serve |
| 27 | + ``` |
| 28 | + |
| 29 | +4. Open your browser to `http://localhost:4000/testteller-agent/` |
| 30 | + |
| 31 | +### Live Reload |
| 32 | + |
| 33 | +For development with live reload: |
| 34 | +```bash |
| 35 | +bundle exec jekyll serve --livereload |
| 36 | +``` |
| 37 | + |
| 38 | +## GitHub Pages Deployment |
| 39 | + |
| 40 | +This site is automatically deployed to GitHub Pages when changes are pushed to the main branch. The site will be available at: |
| 41 | + |
| 42 | +``` |
| 43 | +https://iAviPro.github.io/testteller-agent/ |
| 44 | +``` |
| 45 | + |
| 46 | +## Theme Customization |
| 47 | + |
| 48 | +The site uses a custom minimal theme. To customize: |
| 49 | + |
| 50 | +1. **Colors and Typography**: Edit variables in `assets/css/style.css` |
| 51 | +2. **Layout**: Modify `_layouts/default.html` |
| 52 | +3. **Navigation**: Update the `navigation` section in `_config.yml` |
| 53 | + |
| 54 | +### Available Theme Options |
| 55 | + |
| 56 | +You can also use GitHub Pages supported themes by updating `_config.yml`: |
| 57 | + |
| 58 | +```yaml |
| 59 | +# Minimal theme (clean and simple) |
| 60 | +remote_theme: pages-themes/minimal@v0.2.0 |
| 61 | + |
| 62 | +# Cayman theme (modern with gradient header) |
| 63 | +remote_theme: pages-themes/cayman@v0.2.0 |
| 64 | + |
| 65 | +# Slate theme (dark and professional) |
| 66 | +remote_theme: pages-themes/slate@v0.2.0 |
| 67 | + |
| 68 | +# Architect theme (clean with blueprints aesthetic) |
| 69 | +remote_theme: pages-themes/architect@v0.2.0 |
| 70 | + |
| 71 | +# Hacker theme (terminal-style dark theme) |
| 72 | +remote_theme: pages-themes/hacker@v0.2.0 |
| 73 | +``` |
| 74 | +
|
| 75 | +## File Structure |
| 76 | +
|
| 77 | +``` |
| 78 | +docs/ |
| 79 | +├── _config.yml # Jekyll configuration |
| 80 | +├── _layouts/ # Page layouts |
| 81 | +│ └── default.html # Main layout template |
| 82 | +├── assets/ # Static assets |
| 83 | +│ └── css/ |
| 84 | +│ ├── style.css # Main stylesheet |
| 85 | +│ └── syntax.css # Code syntax highlighting |
| 86 | +├── index.md # Homepage |
| 87 | +├── ARCHITECTURE.md # Architecture documentation |
| 88 | +├── COMMANDS.md # CLI commands reference |
| 89 | +├── FEATURES.md # Features documentation |
| 90 | +├── TESTING.md # Testing guide |
| 91 | +├── Gemfile # Ruby dependencies |
| 92 | +└── README.md # This file |
| 93 | +``` |
| 94 | + |
| 95 | +## Writing Documentation |
| 96 | + |
| 97 | +### Front Matter |
| 98 | + |
| 99 | +All markdown files should include front matter: |
| 100 | + |
| 101 | +```yaml |
| 102 | +--- |
| 103 | +layout: default |
| 104 | +title: Page Title |
| 105 | +description: Page description for SEO |
| 106 | +--- |
| 107 | +``` |
| 108 | + |
| 109 | +### Syntax Highlighting |
| 110 | + |
| 111 | +Use fenced code blocks with language specification: |
| 112 | + |
| 113 | +````markdown |
| 114 | +```python |
| 115 | +def hello_world(): |
| 116 | + print("Hello, World!") |
| 117 | +``` |
| 118 | +```` |
| 119 | + |
| 120 | +### Linking |
| 121 | + |
| 122 | +- Internal links: `[Architecture](ARCHITECTURE.md)` |
| 123 | +- External links: `[GitHub](https://github.com/iAviPro/testteller-agent)` |
| 124 | +- Anchor links: `[Section](#section-id)` |
| 125 | + |
| 126 | +## Troubleshooting |
| 127 | + |
| 128 | +### Bundle Install Fails |
| 129 | + |
| 130 | +If you encounter issues with `bundle install`: |
| 131 | + |
| 132 | +```bash |
| 133 | +# Update bundler |
| 134 | +gem update bundler |
| 135 | + |
| 136 | +# Try installing with specific platform |
| 137 | +bundle lock --add-platform x86_64-linux |
| 138 | +bundle install |
| 139 | +``` |
| 140 | + |
| 141 | +### Jekyll Serve Fails |
| 142 | + |
| 143 | +If Jekyll won't start: |
| 144 | + |
| 145 | +```bash |
| 146 | +# Clean Jekyll cache |
| 147 | +bundle exec jekyll clean |
| 148 | + |
| 149 | +# Rebuild site |
| 150 | +bundle exec jekyll build |
| 151 | + |
| 152 | +# Then serve |
| 153 | +bundle exec jekyll serve |
| 154 | +``` |
| 155 | + |
| 156 | +### Page Not Found |
| 157 | + |
| 158 | +Make sure your baseurl is set correctly in `_config.yml`: |
| 159 | + |
| 160 | +```yaml |
| 161 | +baseurl: "/testteller-agent" # For GitHub Pages |
| 162 | +# or |
| 163 | +baseurl: "" # For custom domain |
| 164 | +``` |
| 165 | +
|
| 166 | +## Contributing |
| 167 | +
|
| 168 | +When adding new documentation: |
| 169 | +
|
| 170 | +1. Create a new `.md` file in the docs folder |
| 171 | +2. Add appropriate front matter |
| 172 | +3. Update navigation in `_config.yml` if needed |
| 173 | +4. Test locally before pushing |
0 commit comments