Skip to content

Commit 0f1ad18

Browse files
committed
Add FAQ/Troubleshooting section to getting-started.md
Adds comprehensive troubleshooting guide covering UV installation, Python version mismatches, test execution, environment variables, and Makefile regeneration. Completes Phase 1 of documentation plan.
1 parent a137f7c commit 0f1ad18

File tree

2 files changed

+93
-23
lines changed

2 files changed

+93
-23
lines changed

DOCUMENTATION_IMPROVEMENT_PLAN.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
- **Action**: Remove `usage-old.rst` from TOC if present
4646
- **Status**: DONE - No references found, already clean
4747

48-
### Priority 2: High-Value Additions ✅ COMPLETED (except Task 2.2)
48+
### Priority 2: High-Value Additions ✅ COMPLETED
4949

5050
#### Task 2.1: Create migration guide ✅
5151
- **New file**: `docs/source/migration.md`
@@ -59,17 +59,17 @@
5959
- v1.0a1: Terminology changes, _SENTINEL → _TARGET
6060
- **Added to index.md TOC**: Yes, after preseeds
6161

62-
#### Task 2.2: Add FAQ/Troubleshooting ⏸️ DEFERRED
62+
#### Task 2.2: Add FAQ/Troubleshooting
6363
- **File**: `docs/source/getting-started.md` (append as new section)
64-
- **Status**: DEFERRED to Phase 2 (after UV refactoring PR merges)
65-
- **Reason**: Conflicts with UV documentation changes on refactor branch
66-
- **Content planned**:
67-
- 5-7 common issues with solutions
68-
- "UV not found"install instructions
69-
- "Python version mismatch"UV_PYTHON setting
70-
- "Tests not running"check run-tests.sh generation
71-
- Keep each Q&A to 2-3 lines
72-
- **Target**: +30-40 lines to getting-started.md
64+
- **Status**: DONE - Added after UV refactoring PR merged
65+
- **Lines added**: +67 lines
66+
- **Content includes**:
67+
- UV not found → install instructions with link to official guide
68+
- Python version mismatchUV_PYTHON setting
69+
- Tests not runningcheck run-tests.sh generation
70+
- Make command not foundplatform-specific instructions
71+
- Settings not taking effect → environment variable overrides
72+
- Regenerating the Makefile → update command and upgrade info
7373

7474
### Priority 3: Fill Documentation Gaps ✅ COMPLETED
7575

@@ -137,19 +137,19 @@
137137
### Line Count Projection (Updated with Actuals)
138138
- **Original total**: 756 lines
139139
- **Removed**: -112 lines (usage-old.rst)
140-
- **Added**: +280 lines (migration guide + templates + contributing)
141-
- **New total**: 924 lines
142-
- **Net change**: +168 lines (+22% increase)
140+
- **Added**: +347 lines (migration + templates + contributing + FAQ)
141+
- **New total**: 991 lines
142+
- **Net change**: +235 lines (+31% increase)
143143

144-
**Note**: Added more content than originally planned due to comprehensive examples.
144+
**Note**: Added more content than originally planned due to comprehensive examples and FAQ.
145145

146146
### Success Criteria
147147
1. ✅ No outdated files (usage-old.rst removed)
148148
2. ✅ No TODOs in templates.md (both sections completed)
149149
3. ✅ Migration guide helps users upgrade (128 lines, 6 versions covered)
150150
4. ✅ Contributing guide helps new contributors (103 lines with workflow)
151-
5. ⏸️ FAQ deferred to Phase 2 (to avoid conflicts with refactor branch)
152-
6. ✅ Total documentation stays under 1,000 lines (924 lines)
151+
5. FAQ/Troubleshooting added (67 lines, 6 common issues)
152+
6. ✅ Total documentation stays under 1,000 lines (991 lines)
153153

154154
## Additional Improvements to Consider
155155

@@ -341,33 +341,35 @@
341341
| Phase | Status | Files Changed/Added | Lines Added | Total Lines |
342342
|-------|--------|---------------------|-------------|-------------|
343343
| Baseline || 9 files | - | 756 |
344-
| **Phase 1** | **✅ COMPLETED** | **+1 file, edited 3** | **+280** | **~924** |
345-
| Phase 2 | 🔜 Pending | +2 files, edit several | +120 | ~1,044 |
344+
| **Phase 1** | **✅ COMPLETED** | **+1 file, edited 4** | **+347** | **~991** |
345+
| Phase 2 | 🔜 Pending | +2 files, edit several | +120 | ~1,111 |
346346
| Phase 3 | 📋 Planned | +4 files | +300 | ~1,344 |
347347
| Phase 4 | 📋 Planned | Varies | +40 each | Variable |
348348

349349
### Phase 1 Completion Summary
350350

351-
**Completed: 2025-10-22**
351+
**Completed: 2025-10-22, Updated: 2025-10-23**
352352

353353
**Commits**:
354354
1. `5dfd8ca` - Remove obsolete usage-old.rst documentation
355355
2. `74b8bd8` - Add migration guide documenting breaking changes
356356
3. `eeb3d48` - Complete templates.md documentation
357357
4. `220a684` - Enhance contributing.md with development workflow
358+
5. (pending) - Add FAQ/Troubleshooting section to getting-started.md
358359

359360
**Files Changed**:
360361
- ❌ Deleted: `docs/source/usage-old.rst` (-112 lines)
361362
- ✅ Created: `docs/source/migration.md` (+128 lines)
362363
- ✏️ Updated: `docs/source/templates.md` (+65 lines)
363364
- ✏️ Updated: `docs/source/contributing.md` (+87 lines)
365+
- ✏️ Updated: `docs/source/getting-started.md` (+67 lines)
364366
- ✏️ Updated: `docs/source/index.md` (+1 line for TOC)
365367

366-
**Total Impact**: +280 lines (after removing 112), net +168 lines
368+
**Total Impact**: +347 lines (after removing 112), net +235 lines
367369

368370
**Recommendation**:
369-
- Phase 1: ✅ Complete - ready for review
370-
- Phase 2: Execute after UV refactoring PR (#56) merges
371+
- Phase 1: ✅ Fully complete - ready for review (UV PR #56 merged, FAQ added)
372+
- Phase 2: Can start immediately (glossary, concepts, diagrams)
371373
- Phase 3-4: Based on user feedback and priorities
372374

373375
## Notes

docs/source/getting-started.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,71 @@ Install [make as described here](https://gist.github.com/evanwill/0207876c3243bb
9393
Further you need a [Python >=3.10 installation.](https://www.python.org/downloads/windows/).
9494

9595
Dependent on the topics and domains you use, you may need to install additional software, but this is no different from Linux/OSX.
96+
97+
## Troubleshooting
98+
99+
### UV not found error
100+
101+
If you get an error that UV is not found, install it. See the [official UV installation guide](https://docs.astral.sh/uv/getting-started/installation/) for detailed instructions.
102+
103+
```shell
104+
# Global installation (recommended)
105+
pip install uv
106+
107+
# Or use the official installer
108+
curl -LsSf https://astral.sh/uv/install.sh | sh
109+
```
110+
111+
After installation, run `mxmake update` to regenerate the Makefile.
112+
113+
### Python version mismatch
114+
115+
If UV uses a different Python version than expected, explicitly set `UV_PYTHON` in your Makefile settings:
116+
117+
```makefile
118+
UV_PYTHON?=3.14
119+
```
120+
121+
Then run `make install` again.
122+
123+
### Tests not running
124+
125+
If `make test` fails with "command not found", ensure the test runner script was generated:
126+
127+
```shell
128+
ls .mxmake/files/run-tests.sh
129+
```
130+
131+
If missing, check that your `mx.ini` includes `mxmake-templates = run-tests` and run `make install` to regenerate files.
132+
133+
### Make command not found
134+
135+
On Ubuntu/Debian: `sudo apt install make`
136+
On macOS: Install Xcode Command Line Tools: `xcode-select --install`
137+
On Windows: See [installation instructions](https://gist.github.com/evanwill/0207876c3243bbb6863e65ec5dc3f058#make)
138+
139+
### Settings not taking effect
140+
141+
Settings are only applied when you explicitly set them. If a setting has `?=`, it uses the default unless overridden.
142+
143+
Example: Change `PRIMARY_PYTHON?=python3.12` to `PRIMARY_PYTHON=python3.14` (remove the `?`) to force that value.
144+
145+
Note that environment variables always override Makefile settings. Check if a setting is defined in your shell environment:
146+
147+
```shell
148+
echo $PRIMARY_PYTHON
149+
```
150+
151+
After changing settings, run `make install` to apply them.
152+
153+
### Regenerating the Makefile
154+
155+
To add or remove domains without interactive prompts, use:
156+
157+
```shell
158+
mxmake update
159+
```
160+
161+
This preserves your current settings and updates the Makefile logic. To start fresh interactively, use `mxmake init`.
162+
163+
After upgrading mxmake to a newer version, run `mxmake update` to apply new features and improvements from the upgraded version.

0 commit comments

Comments
 (0)