Skip to content

Commit

Permalink
Fix links and link checker for Markdown files
Browse files Browse the repository at this point in the history
This patch improves the regex so it matches paths starting with "../"
and paths with hashes.
  • Loading branch information
anishathalye committed Jul 9, 2023
1 parent c3e3081 commit f5c0037
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
tokens: |
{"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
swap_urls: |
{"^\.\/\(.*\).md": "\\1.md.html"}
{"^\(\..*\)\.md\(#?.*\)$": "\\1.md.html\\2"}
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ endings match the project style.
You can build the docs from your local cleanlab version by following [these
instructions](./docs/README.md#build-the-cleanlab-docs-locally).

If editing existing docs or adding new tutorials, please first read through our [guidelines](https://github.com/cleanlab/cleanlab/tree/master/docs#tips-for-editing-docstutorials).
If editing existing docs or adding new tutorials, please first read through our [guidelines](./docs/README.md#tips-for-editing-docstutorials).


## Documentation style
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,6 @@ All of our tutorials are quickstart guides that should run quite fast. Longer/co

## API Documentation

1. Verify your new docstrings adhere to our [documentation format guidelines](https://github.com/cleanlab/cleanlab/blob/master/DEVELOPMENT.md#documentation-style)
1. Verify your new docstrings adhere to our [documentation format guidelines](../DEVELOPMENT.md#documentation-style)

2. To ensure documentation for new source code files is linked from the main page, don't forget to update: **docs/source/index.rst**

0 comments on commit f5c0037

Please sign in to comment.