|
| 1 | +# Multi-Version Workshop Documentation |
| 2 | + |
| 3 | +This workshop uses [mike](https://github.com/jimporter/mike) to manage multiple versions of the documentation for different events and skill levels. |
| 4 | + |
| 5 | +## Available Configurations |
| 6 | + |
| 7 | +- **mkdocs.yml** - Full workshop with all labs (default) |
| 8 | +- **mkdocs-beginner.yml** - Beginner track (Labs 1-3) |
| 9 | +- **mkdocs-advanced.yml** - Advanced track (Labs 3.1-5) |
| 10 | + |
| 11 | +## Deploying Different Versions |
| 12 | + |
| 13 | +### Deploy to a specific version path |
| 14 | + |
| 15 | +```bash |
| 16 | +# Deploy beginner version |
| 17 | +mike deploy beginner --config-file docs/mkdocs-beginner.yml --push |
| 18 | + |
| 19 | +# Deploy advanced version |
| 20 | +mike deploy advanced --config-file docs/mkdocs-advanced.yml --push |
| 21 | + |
| 22 | +# Deploy event-specific version |
| 23 | +mike deploy ignite-2026 --config-file docs/mkdocs.yml --push |
| 24 | +``` |
| 25 | + |
| 26 | +### Set default version |
| 27 | + |
| 28 | +```bash |
| 29 | +mike set-default latest --push |
| 30 | +``` |
| 31 | + |
| 32 | +### List all deployed versions |
| 33 | + |
| 34 | +```bash |
| 35 | +mike list |
| 36 | +``` |
| 37 | + |
| 38 | +### Delete a version |
| 39 | + |
| 40 | +```bash |
| 41 | +mike delete <version-name> --push |
| 42 | +``` |
| 43 | + |
| 44 | +## Accessing Different Versions |
| 45 | + |
| 46 | +After deployment, versions will be available at: |
| 47 | + |
| 48 | +- `https://yourname.github.io/agent-builder-workshop/` (default/latest) |
| 49 | +- `https://yourname.github.io/agent-builder-workshop/beginner/` |
| 50 | +- `https://yourname.github.io/agent-builder-workshop/advanced/` |
| 51 | +- `https://yourname.github.io/agent-builder-workshop/ignite-2026/` |
| 52 | + |
| 53 | +## Local Development |
| 54 | + |
| 55 | +Test a specific configuration locally: |
| 56 | + |
| 57 | +```bash |
| 58 | +mkdocs serve -f docs/mkdocs-beginner.yml |
| 59 | +mkdocs serve -f docs/mkdocs-advanced.yml |
| 60 | +``` |
| 61 | + |
| 62 | +## Creating New Event Versions |
| 63 | + |
| 64 | +1. Copy an existing config file: |
| 65 | + ```bash |
| 66 | + cp docs/mkdocs.yml docs/mkdocs-myevent-2026.yml |
| 67 | + ``` |
| 68 | + |
| 69 | +2. Update the `site_name` and customize the `nav` section |
| 70 | + |
| 71 | +3. Deploy with mike: |
| 72 | + ```bash |
| 73 | + mike deploy myevent-2026 --config-file docs/mkdocs-myevent-2026.yml --push |
| 74 | + ``` |
| 75 | + |
| 76 | +## GitHub Actions |
| 77 | + |
| 78 | +The workflow in `.github/workflows/ci.yml` automatically deploys the latest version on push to main/master. |
| 79 | + |
| 80 | +To deploy additional versions, you can: |
| 81 | +- Manually run `mike deploy` locally and push |
| 82 | +- Add version-specific workflow triggers based on branches or tags |
| 83 | +- Use workflow dispatch with parameters |
| 84 | + |
| 85 | +## Version Selector |
| 86 | + |
| 87 | +All deployed versions will appear in a version selector dropdown at the top of the documentation site (if using Material theme). |
0 commit comments