Commit Graph
95 Commits
Author SHA1 Message Date
Alan Guo Xiang Tan d59dc7caf4 DEV: Switch theme to use new addComposerToolbarPopupMenuOption api (#61)
Why this change?

The new API is better and allows us to avoid modifying the composer
service.
2023-10-06 09:20:09 +08:00
David Taylor 566d79fa39 FIX: Restore wrapper element for d-toc-mini (#60) 2023-10-04 12:45:22 +01:00
Alan Guo Xiang Tan 4ae24c6edc DEV: Convert connector file to use glimmer component (#59)
Why this change?

We've established internally that this is the better way to do things
2023-10-04 16:02:30 +08:00
Penar Musaraj e452c049ae DEV: Pin theme for Discourse 3.1 stable (#58) 2023-08-22 15:32:52 -04:00
dependabot[bot] 323bd485b0 Bump word-wrap from 1.2.3 to 1.2.4 (#57)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 10:55:32 +02:00
dependabot[bot] 6c75554fca Bump word-wrap from 1.2.3 to 1.2.4 (#57)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 10:23:21 +02:00
dependabot[bot] 6894db06b1 Bump semver from 6.3.0 to 6.3.1 (#56)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 11:18:40 +02:00
Kris 25cb5954f6 DEV: update box-shadow due to core change (#55) 2023-06-14 09:00:18 -04:00
Canapin ea7f8791ab UX: fix TOC header in composer preview (#54) 2023-03-11 11:23:42 +01:00
discoursebotanddiscoursebuild c00cbb02fc DEV: Update CI workflows (#52)
Co-authored-by: discoursebuild <[email protected]>
2023-01-10 19:10:08 +00:00
David Taylor 165cfa13f3 DEV: Update eslint-config-discourse, use prettier for hbs (#49) 2023-01-04 13:41:09 +01:00
Penar Musaraj ed6634f6a4 DEV: Fix tests (#51)
Core now needs tests to set a default composer category.
2023-01-02 11:07:50 +01:00
discoursebotanddiscoursebuild 77380c93d8 DEV: Update CI workflows (#48)
Co-authored-by: discoursebuild <[email protected]>
2022-11-07 14:17:13 -06:00
Vinoth Kannan 55f83a913c FEATURE: new theme setting to disable TOC in posts with less headings. (#47)
The theme setting `TOC_min_heading` will decide whether the TOC should display or not based on the number of headings available in the post.
2022-11-04 09:41:16 +05:30
Penar Musaraj 1d3b28355c Fix a typo (#46) 2022-10-12 08:47:32 -04:00
Jarek Radosz f80c215a28 SECURITY: Render TOC items as plain text (#44) 2022-10-03 21:10:05 +02:00
Jordan Vidrine d6b02afbc2 FIX: Add # to empty hrefs (#43) 2022-09-29 12:53:12 -05:00
Joe 58a1400f55 FEATURE: Automatically add TOC based on topic category / tags (#42)
This PR adds two settings.

One allows admins to select a list of categories that will automatically enable the TOC if the topic category matches.
The other does the same but with tags.

Note that the topic still needs to have the other requirements for TOC, such as having headings. Also, this will still only apply to the first post.

This PR also moves some setting descriptions to the appropriate place.

It also uses `pretender` for the tests instead of generating the fixture manually.
2022-07-26 01:23:19 +08:00
discoursebotanddiscoursebuild 3343c6b19f DEV: Update CI workflows (#41)
Co-authored-by: discoursebuild <[email protected]>
2022-06-17 22:23:35 +02:00
Jarek Radosz 7b3c12ae15 DEV: Update CI workflows (#39) 2022-06-17 18:20:09 +02:00
Penar Musaraj a309e6406d DEV: Fix compatibility with styleguide (#38) 2022-06-13 18:03:39 -04:00
Penar Musaraj 5d69a72200 FIX: Compatibility with discourse-docs plugin (#37) 2022-05-09 14:09:59 -04:00
Du Jiajun 2f2c9f387d FIX: Add Chinese translations (#35) 2022-05-06 10:13:01 -04:00
Penar Musaraj c658e95d54 FIX: Generate unique IDs for non-Latin languages (#36) 2022-05-05 14:25:37 -04:00
Penar Musaraj 26f4e45dc2 FIX: Compatibility with loading slider (#34) 2022-03-25 14:14:15 -04:00
Penar Musaraj da0f76b65c FIX: Prevent jumping on scroll (#33)
We previously added a reset to the topic body to fix some wrapping
issues, but looks like a) the reset is no longer necessary and b) it
causes jumping on scroll. So let's remove it.
2022-03-09 18:24:11 +01:00
Penar Musaraj 098d05f3d5 UX: Hide TOC on mobile docs topics (#32) 2022-02-28 18:11:17 +01:00
Penar Musaraj 993303199b UX: Fix layout issues in < 1035px wide windows (take 2) (#31) 2022-02-03 16:46:14 +01:00
Penar Musaraj 18793f633b UX: Fix bug with desktop widths < 1045px (#29) 2022-01-31 16:18:11 +01:00
Penar Musaraj 2fd7d5107f UX: Keep core's top margin for first item in OP (#30) 2022-01-31 16:17:58 +01:00
Penar Musaraj cd8690ffa2 UX: Adjust spacing and max height for subsections (#28) 2022-01-28 23:42:33 +01:00
Penar Musaraj 7bf7b95901 DEV: A few more fixes (#27)
- fix `Ctrl` + clicking on other links in a page with DiscoTOC
- visually show third level in TOC
- fix overlapping levels for long TOCs
- remove support for h6 headings
2022-01-20 16:14:37 -05:00
Penar Musaraj ca7fe6b644 DEV: Fix tag name matching (#26) 2022-01-20 10:53:40 -05:00
Penar Musaraj 8c33f07dc5 FIX: Switch to a two-level sidebar list (#25) 2022-01-19 17:17:30 -05:00
Penar Musaraj 0bc2aa28a3 FIX: Restore support for docs plugin (#24) 2022-01-19 12:50:45 -05:00
Penar Musaraj ff434a4f7b FIX: Ignore link click counts (#23) 2022-01-19 11:53:13 -05:00
Penar Musaraj aa35509588 FIX: Issue when used with loading slider component (#22) 2022-01-19 08:45:58 -05:00
Penar Musaraj e044017955 UX: A couple of small fixes (#21) 2022-01-18 11:36:40 -05:00
Penar Musaraj 86b9960263 FIX: Allow adding TOC when editing first post (#20) 2022-01-18 09:52:51 -05:00
Penar Musaraj 20366c671d REFACTOR: General component overhaul (#19) 2022-01-18 09:18:21 -05:00
Jordan Vidrine 5b2f5a455e UX: Sidebar fixes (#18) 2022-01-05 10:40:18 -06:00
Jordan Vidrine 780c744122 minor fix (#17) 2022-01-04 11:30:50 -06:00
Jordan Vidrine d72dc3306b UX: Adjustments for chat (#16) 2021-12-30 10:35:15 -06:00
Jordan Vidrine 98c05eabfb UX: Sidebar + Chat fixes (#15) 2021-12-30 10:27:46 -06:00
Robin Ward 5b051e183a FIX: Deprecated modfiyClass (#14) 2021-09-03 14:18:27 -04:00
Bianca Nenciu 113d3a8612 FIX: Remove anchor generated by theme component (#13)
Core adds anchors to all headings.
2021-07-29 17:06:31 +03:00
Joe c64a82b4b8 Change the icon for post-bottom button (#12) 2021-05-11 01:08:28 +08:00
Joe fcc2d0698b FIX: add post controls icon to mobile (#11) 2021-05-10 23:36:56 +08:00
Joe 268ef4cb8f Update common.scss 2021-05-10 22:02:45 +08:00
Joe b8b9b4bd9e FEATURE: add button to navigate to TOC post controls (#10) 2021-05-10 21:03:22 +08:00