WIP: ToC implementation #69

Draft
Anri wants to merge 2 commits from toc into main
Owner

Heavily inspired by 0d19b55478

See #31

  • CSS (aside of the article, at the right of the page -- left is reserved for the filetree in cours)
    • Collapsable ToC
      • Close when jumping to an header
  • Broader support and not just blog (I'm talking about cours)
  • Respect toc attribute in metadata
  • Depth of headers
Heavily inspired by https://github.com/kivikakk/comrak/commit/0d19b5547883ac0291d25cb694c2232010cd76ea See #31 - [ ] CSS (aside of the article, at the right of the page -- left is reserved for the filetree in `cours`) - [ ] Collapsable ToC - [ ] Close when jumping to an header - [ ] ~~Broader support and not just blog (I'm talking about `cours`)~~ - [x] Respect `toc` attribute in metadata - [ ] Depth of headers
Anri force-pushed toc from 9427a82c01 to caa6918dd6 2024-06-16 15:35:42 +02:00 Compare
Anri force-pushed toc from bd26d3ea2e to 89304a876c 2024-06-21 20:43:26 +02:00 Compare
Anri force-pushed toc from 89304a876c to ba4b5b6b54 2024-06-21 20:43:43 +02:00 Compare
Anri force-pushed toc from ba4b5b6b54 to 8f5895e9ba 2024-11-06 14:03:27 +01:00 Compare
Anri force-pushed toc from 8f5895e9ba to a49f7dc2dc 2024-11-06 14:57:53 +01:00 Compare
Anri force-pushed toc from a49f7dc2dc to 98fd99f702 2024-11-06 18:38:57 +01:00 Compare
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 3m19s
Required
Details
This pull request has changes conflicting with the target branch.
  • src/misc/markdown.rs
  • src/misc/utils.rs
  • src/routes/blog.rs
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin toc:toc
git checkout toc
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Anri/mylloon.fr#69
No description provided.