Automatically add exercise links to sections. (#52)
authorLuca Palmieri <20745048+LukeMathWalker@users.noreply.github.com>
Fri, 24 May 2024 16:15:38 +0000 (18:15 +0200)
committerGitHub <noreply@github.com>
Fri, 24 May 2024 16:15:38 +0000 (18:15 +0200)
commit1aae615bb4210f335ca523f04c48a6f5ce3ab906
treef4fd776dd126edc2c295e66f52837aab3d213233
parent99591a715e63eed1940f7f60e53b727c65d39641
Automatically add exercise links to sections. (#52)

We use an mdbook preprocessor to automatically generate links to the relevant exercise for each section.
We remove all existing manual links and refactor the deploy process to push the rendered book to a branch.
65 files changed:
.github/workflows/ci.yml
Cargo.lock
Cargo.toml
book/book.toml
book/src/01_intro/00_welcome.md
book/src/01_intro/01_syntax.md
book/src/02_basic_calculator/00_intro.md
book/src/02_basic_calculator/01_integers.md
book/src/02_basic_calculator/02_variables.md
book/src/02_basic_calculator/03_if_else.md
book/src/02_basic_calculator/04_panics.md
book/src/02_basic_calculator/05_factorial.md
book/src/02_basic_calculator/06_while.md
book/src/02_basic_calculator/07_for.md
book/src/02_basic_calculator/08_overflow.md
book/src/02_basic_calculator/09_saturating.md
book/src/02_basic_calculator/10_as_casting.md
book/src/03_ticket_v1/00_intro.md
book/src/03_ticket_v1/01_struct.md
book/src/03_ticket_v1/02_validation.md
book/src/03_ticket_v1/03_modules.md
book/src/03_ticket_v1/04_visibility.md
book/src/03_ticket_v1/05_encapsulation.md
book/src/03_ticket_v1/06_ownership.md
book/src/03_ticket_v1/07_setters.md
book/src/03_ticket_v1/08_stack.md
book/src/03_ticket_v1/09_heap.md
book/src/03_ticket_v1/10_references_in_memory.md
book/src/03_ticket_v1/11_destructor.md
book/src/03_ticket_v1/12_outro.md
book/src/04_traits/00_intro.md
book/src/04_traits/01_trait.md
book/src/04_traits/02_orphan_rule.md
book/src/04_traits/03_operator_overloading.md
book/src/04_traits/04_derive.md
book/src/04_traits/05_trait_bounds.md
book/src/04_traits/06_str_slice.md
book/src/04_traits/07_deref.md
book/src/04_traits/08_sized.md
book/src/04_traits/09_from.md
book/src/04_traits/10_assoc_vs_generic.md
book/src/04_traits/11_clone.md
book/src/04_traits/12_copy.md
book/src/04_traits/13_drop.md
book/src/04_traits/14_outro.md
book/src/05_ticket_v2/00_intro.md
book/src/05_ticket_v2/01_enum.md
book/src/05_ticket_v2/02_match.md
book/src/05_ticket_v2/03_variants_with_data.md
book/src/05_ticket_v2/04_if_let.md
book/src/05_ticket_v2/05_nullability.md
book/src/05_ticket_v2/06_fallibility.md
book/src/05_ticket_v2/07_unwrap.md
book/src/05_ticket_v2/08_error_enums.md
book/src/05_ticket_v2/09_error_trait.md
book/src/05_ticket_v2/10_packages.md
book/src/05_ticket_v2/11_dependencies.md
book/src/05_ticket_v2/12_thiserror.md
book/src/05_ticket_v2/13_try_from.md
book/src/05_ticket_v2/14_source.md
book/src/05_ticket_v2/15_outro.md
book/src/06_ticket_management/06_lifetimes.md
helpers/mdbook-exercise-linker/Cargo.toml [new file with mode: 0644]
helpers/mdbook-exercise-linker/src/lib.rs [new file with mode: 0644]
helpers/mdbook-exercise-linker/src/main.rs [new file with mode: 0644]