discourse/plugins/discourse-details
Jarek Radosz d10c1e57e8
DEV: Overhaul typechecking configuration (#35794)
- Switches to typescript 'composite project' mode for improved
organization & performance
- Generates declarations from core modules, and outputs to a new
`@discourse/types` package
- Introduces tsconfigs for core plugins, which leans on that new
`@discourse/types` package
- In future, we plan to publish this discourse-types package for other
themes/plugins to use

The motivation at this stage is primarily to improve editor
autocompletion. We provide absolutely no guarantees about the accuracy
or stability of the generated types.

For now, some issues have been resolved by adding manual `@type`
declarations.

In particular, extensionless imports of `.gjs` files are broken when
running in composite-project mode, so in those cases we have to add
manual `@type {import("./the-file.gjs").default}` declarations.
Unfortunately this failure does not show up in IDEs. We hope to get this
resolved soon.

---------

Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: Chris Manson <chris@manson.ie>
2025-11-12 12:54:34 +00:00
..
assets FEATURE: enforce prosemirror-gapcursor on additional block nodes (#35415) 2025-10-15 10:14:26 -03:00
config Update translations (#35031) 2025-09-29 10:26:53 +02:00
spec UX: Consistency and accessibility improvements for keyboard shortcuts (#34090) 2025-08-08 10:18:28 +10:00
test/javascripts DEV: Replace toolbar popup menu with DMenu (#33247) 2025-07-03 09:57:16 +10:00
LICENSE Update LICENSE (#31217) 2025-02-27 00:16:59 +01:00
package.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00
plugin.rb UX: show all preinstalled plugins and label them as such (#33681) 2025-07-17 15:11:52 -04:00
README.md for docs, normalize on space after code fence when specifying lang 2019-01-21 01:19:28 -08:00
tsconfig.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00

discourse-details

HTML 5.1 <details> polyfill for Discourse.

NOTE: Does not work on IE9, but we don't support IE9 as of Jan 1 2016.

Usage

In your posts, surround text with [details=your summary] ... [/details]. For example:

   I watched the murder mystery on TV last night. [details=Who did it?]The butler did it[/details].

Installation

Follow our Install a Plugin howto, using git clone https://github.com/discourse/discourse-details.git as the plugin command.

Issues

If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.

License

MIT