opensearch-py: [BUG] Link checker fails when adding relative URLs
What is the bug?
Coming from https://github.com/opensearch-project/opensearch-py/pull/537/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 the link checker does not like [page](link) when link is a relative link to source code. These work on GitHub.
How can one reproduce the bug?
- If you add a relative link, CI will fail on it as in https://github.com/opensearch-project/opensearch-py/actions/runs/6509630345/job/17681533560
### Errors in docs/source/README.md
* [file:///home/runner/work/opensearch-py/opensearch-py/docs/source/samples](file:///home/runner/work/opensearch-py/opensearch-py/docs/source/samples): Failed: Cannot find file
* [file:///home/runner/work/opensearch-py/opensearch-py/docs/source/benchmarks](file:///home/runner/work/opensearch-py/opensearch-py/docs/source/benchmarks): Failed: Cannot find file
- If you add a new link to something that doesn’t exist, CI will fail on it as in https://github.com/opensearch-project/opensearch-py/actions/runs/6511677337/job/17687825863?pr=537
### Errors in README.md
* [https://github.com/opensearch-project/opensearch-py/tree/main/benchmarks](https://github.com/opensearch-project/opensearch-py/tree/main/benchmarks): Failed: Network error
What is the expected behavior?
- Allow one to add a new relative link.
- Link checker should pass.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (14 by maintainers)
Commits related to this issue
- BUG FIX #538 (#760) — committed to saimedhi/opensearch-py by Krish-2505 2 years ago
- BUG FIX #538 (#760) — committed to dblock/opensearch-py by Krish-2505 2 years ago
Oh! It’s a soft link too, not a copy!