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
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending approval
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
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

Merge

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff toc
git checkout main
git merge --ff-only toc
git checkout toc
git rebase main
git checkout main
git merge --no-ff toc
git checkout main
git merge --squash toc
git checkout main
git merge --ff-only toc
git checkout main
git merge toc
git push origin main
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.