Commit 65e451d
Add --root option to fsdocs watch for remote/proxy hosting
Closes #924
Previously fsdocs watch always forced root = http://localhost:<port>/,
ignoring any user-supplied root parameter. This makes the generated pages
unusable when served via GitHub Codespaces port-forwarding, a reverse proxy,
or any other non-localhost environment.
This PR adds:
- A --root option to WatchCommand exposing a user-specified root URL override
- An abstract root_override_option on CoreBuildOptions (default None)
- Modified watch-mode root logic: uses the --root value when provided,
otherwise falls back to http://localhost:<port>/ as before
Usage:
fsdocs watch --root / # root-relative URLs
fsdocs watch --root https://example.com/docs/ # absolute remote URL
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a7b9e55 commit 65e451d
2 files changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1566 | 1572 | | |
1567 | 1573 | | |
1568 | 1574 | | |
| |||
2325 | 2331 | | |
2326 | 2332 | | |
2327 | 2333 | | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
2328 | 2337 | | |
2329 | 2338 | | |
2330 | 2339 | | |
| |||
2504 | 2513 | | |
2505 | 2514 | | |
2506 | 2515 | | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
0 commit comments