Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Markdown links

on:
pull_request:
branches:
- main

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install markdown-link-check
run: |
npm install -g markdown-link-check
- name: Run markdown-link-check
run: |
find src -name "*.md" | xargs markdown-link-check
2 changes: 1 addition & 1 deletion src/custom_types/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ want to rename it.

[match]: ../flow_control/match.md
[fn]: ../fn.md
[str]: ../core/bytearray.md
[str]: ../core/bytearrays.md
2 changes: 1 addition & 1 deletion src/error/option_unwrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ controlled result while retaining the option to `panic` if desired.
{{#include ../../listings/error/option_unwrap/src/lib.cairo}}
```

[expect]: https://docs.cairo-lang.org/std/option/enum.Option.html#method.expect
[expect]: https://docs.cairo-lang.org/core/core-option-OptionTrait.html#expect
2 changes: 1 addition & 1 deletion src/hello.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Hello World!
I'm a Caironaut!
```

[macros]: macros.md
[macros]: https://book.cairo-lang.org/ch12-05-macros.html?#macros
4 changes: 2 additions & 2 deletions src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ for these types. To print text for custom types, more steps are required.
[`std::fmt`][fmt], [`macros`][macros], [`struct`][structs], [`traits`][traits]

[fmt]: https://docs.swmansion.com/scarb/corelib/core-fmt.html
[macros]: ../macros.md
[bytearray]: ../core/bytearray.md
[macros]: https://book.cairo-lang.org/ch12-05-macros.html?#macros
[bytearray]: ../core/bytearrays.md
[structs]: ../custom_types/structs.md
[traits]: https://docs.swmansion.com/scarb/corelib/core-fmt.html#traits
[attribute]: ../attribute.md
2 changes: 1 addition & 1 deletion src/hello/print/print_display.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Debug: Complex { real: 3, imag: 7 }

[derive]: ../../trait/derive.md
[fmt]: https://docs.swmansion.com/scarb/corelib/core-fmt.html
[macros]: ../../macros.md
[macros]: https://book.cairo-lang.org/ch12-05-macros.html?#macros
[structs]: ../../custom_types/structs.md
[traits]: ../../trait.md
[use]: ../../mod/use.md
2 changes: 1 addition & 1 deletion src/testing/dev_dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ File `src/lib.cairo`:

[Scarb][scarb] docs on specifying dependencies.

[unit-testing]: testing/unit_testing.md
[unit-testing]: ./unit_testing.md
[scarb]: https://docs.swmansion.com/scarb/docs/reference/specifying-dependencies.html
2 changes: 1 addition & 1 deletion src/testing/unit_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ with command `scarb test -- --ignored`
```

[attribute]: ../attribute.md
[macros]: ../macros.md
[macros]: https://book.cairo-lang.org/ch12-05-macros.html?#macros
[mod]: ../mod.md
[panic]: ../error/panic.md
Loading