A Discourse theme component that generates a table of contents for topics with one click
Go to file
Martin Brennan 5537bdffbf
FIX: Scroll enough to show topic timeline from down arrow
This fixes the problem where if you clicked the down / scroll
to bottom arrow at the top of the table of contents, the scroll
would _just_ not quite be enough to show the topic timeline,
which would require another mouse scroll.

Now if there is a second post we just scroll directly to the
top of that, which makes the topic timeline show immediately.
2024-01-31 11:45:56 +10:00
.github/workflows DEV: Update CI workflows (#52) 2023-01-10 19:10:08 +00:00
assets REVERT: reverting toggle to do display issues (#72) 2023-12-11 18:39:19 -05:00
common REVERT: reverting toggle to do display issues (#72) 2023-12-11 18:39:19 -05:00
javascripts/discourse FIX: Scroll enough to show topic timeline from down arrow 2024-01-31 11:45:56 +10:00
locales REVERT: reverting toggle to do display issues (#72) 2023-12-11 18:39:19 -05:00
test/acceptance REVERT: reverting toggle to do display issues (#72) 2023-12-11 18:39:19 -05:00
.discourse-compatibility DEV: Switch to new addComposerToolbarPopupMenuOption plugin API (#65) 2023-10-23 08:09:06 +08:00
.eslintrc.cjs DEV: Update linting setup (#69) 2023-11-19 22:43:47 +01:00
.gitignore DEV: Update CI workflows (#39) 2022-06-17 18:20:09 +02:00
.prettierrc.cjs DEV: Update linting setup (#69) 2023-11-19 22:43:47 +01:00
.template-lintrc.cjs DEV: Update linting (#75) 2024-01-16 17:41:09 +01:00
LICENSE Create LICENSE 2019-03-09 10:01:58 +08:00
README.md DEV: Update CI workflows (#39) 2022-06-17 18:20:09 +02:00
about.json SECURITY: Render TOC items as plain text (#44) 2022-10-03 21:10:05 +02:00
package.json DEV: Update linting (#75) 2024-01-16 17:41:09 +01:00
settings.yml FEATURE: new theme setting to disable TOC in posts with less headings. (#47) 2022-11-04 09:41:16 +05:30
yarn.lock DEV: Update linting (#75) 2024-01-16 17:41:09 +01:00

README.md

DiscoTOC

A Discourse theme component that generates a table of contents for topics with one click

https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143