Commit Graph

162 Commits

Author SHA1 Message Date
David Taylor 841a814bfb
DEV: Update plugin-outlet arguments (#73)
Core's defaults are changing in https://github.com/discourse/discourse/pull/13685. This commit ensures the behaviour of this plugin will not change.
2022-01-06 20:33:34 +00:00
discoursebot e56816eb50
DEV: Update CI workflows (#72)
Co-authored-by: davidtaylorhq <davidtaylorhq@users.noreply.github.com>
2021-12-16 16:18:16 +00:00
Discourse Translator Bot 1ee9957cc6
Update translations (#71) 2021-12-14 14:53:39 +01:00
Jordan Vidrine d3eee7008b
UX: Adjust topic list item spacing (#70) 2021-11-17 13:28:40 -06:00
Jordan Vidrine 0aef9946b4
SYNTAX: Add classes in prep for Topic list refactor (#69)
* DEV: Prep for topic-list refactor
2021-11-16 13:56:12 -06:00
Kris 4631ccb8b1
DEV: add plugin outlet, li class (#68) 2021-11-05 15:09:24 -04:00
Kris 6e13e4de0b
UX: Solved filter alignment adjustment (#67) 2021-11-05 12:06:59 -04:00
Discourse Translator Bot ccbf73d3e9
Update translations (#66) 2021-10-26 11:01:09 -04:00
jbrw c38dc7c216
FIX: Hide navigation elements when printing a Docs topic (#65) 2021-10-22 16:59:14 -04:00
Joffrey JAFFEUX 8321e74b60
DEV: fixes qunit imports (#64) 2021-10-22 09:51:23 +02:00
Jordan Vidrine d8c48e6218
FEATURE: Add filter + alpha & numeric sort to categories and tags in docs sidebar (#62)
* UX: Docs sidebar changes

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2021-10-19 10:04:36 -05:00
Discourse Translator Bot 0f78bcc9db
Update translations (#63) 2021-10-19 15:23:58 +02:00
Penar Musaraj bfed4ba324
UX: Add in:docs quick tip in search widget (#61) 2021-10-12 10:11:29 -04:00
Gavin ac9d01dc18
Update README.md (#60) 2021-10-04 12:36:30 -04:00
Krzysztof Kotlarek 72cdd8d415
FIX: ignore category filter when incorrect param (#59)
Category filter accepts ids of categories. If value is manipulated, we should ignore it.
2021-09-27 14:52:27 +10:00
discoursebot b2de26d52c
DEV: Update CI workflows (#58)
Co-authored-by: CvX <CvX@users.noreply.github.com>
2021-09-15 19:56:29 +02:00
dependabot[bot] a5936fe9d2
Build(deps): Bump path-parse from 1.0.6 to 1.0.7 (#57)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 00:50:35 +02:00
Penar Musaraj 17a21cad4d
UX: Add `in:docs` filter to search (#56) 2021-07-21 15:53:40 -04:00
Discourse Translator Bot 3c8d3d28b3
Update translations (#55) 2021-07-21 10:30:16 +02:00
discoursebot 372d541c0b
DEV: Update CI workflows (#54)
Co-authored-by: davidtaylorhq <davidtaylorhq@users.noreply.github.com>
2021-07-02 17:01:48 +02:00
Penar Musaraj 8754aaf061
DEV: SCSS cleanup 2021-06-23 23:01:54 -04:00
Discourse Translator Bot b184b14266
Update translations (#53) 2021-06-22 15:12:10 +02:00
dependabot[bot] b69f437458
Build(deps): Bump glob-parent from 5.1.1 to 5.1.2 (#52)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-12 13:56:30 +02:00
Discourse Translator Bot 7782de1558
Update translations (#51) 2021-06-01 15:11:37 +02:00
Discourse Translator Bot e76f7fff62
Update translations (#50) 2021-05-18 15:07:35 +02:00
Penar Musaraj b985ebad4c
DEV: Remove SCSS color vars fallbacks (#49) 2021-05-12 16:17:44 -04:00
dependabot[bot] 7433305f44
Build(deps): Bump lodash from 4.17.20 to 4.17.21 (#48)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 13:40:21 -04:00
dependabot[bot] 071128fa55
Build(deps): Bump handlebars from 4.7.6 to 4.7.7 (#47)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 10:48:24 +10:00
Discourse Translator Bot 4cc5e8780b
Update translations (#46) 2021-05-05 13:23:09 +02:00
Jarek Radosz 378f8d24f4
FIX: Correctly trigger actions (#45)
Fixes a regression introduced in #32. Reported in https://meta.discourse.org/t/meta-discourse-org-docs-sidebar-filter-doesnt-work/188350/2

Included:
* DEV: Use `query` helper
* DEV: Simplify the Docs model
* DEV: Add a test
* FIX: Correctly trigger actions
* DEV: Use `count` instead of `queryAll`
2021-04-29 16:36:14 +02:00
discoursebot f75c9d5e32
DEV: Update CI workflows, fix linting issues (#32)
Included:

* DEV: Update CI workflows
* DEV: Update the plugin URL
* DEV: Update Gemfile.lock
* DEV: Remove an old rubocop artifact
* DEV: Add .prettierrc
* DEV: Clean up .gitignore
* DEV: Add license
* DEV: Update package.json
* DEV: Fix template issues
* DEV: Re-format code
* DEV: Use `@action`
* DEV: `inject as controller`
* DEV: Use `@computed`
* DEV: Avoid naming collision and extra indirection
* DEV: Use `discourse-common/utils/decorators`
* DEV: Use `role="button"`

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Co-authored-by: jjaffeux <j.jaffeux@gmail.com>
2021-04-27 20:49:34 +02:00
Discourse Translator Bot 50f7c25de2
Update translations (#43) 2021-04-20 15:30:54 +02:00
Discourse Translator Bot 67a8f5b59c
DEV: Add Crowdin support (#42) 2021-04-15 22:03:56 +02:00
Osama Sayegh 312cafe9d7
DEV: Compatibility with Discourse on Rails 6.1 (#41)
Related to https://github.com/discourse/discourse/pull/12688.

The tags and categories count queries are failing on Rails 6.1 with `ERROR:  column "topics.bumped_at" must appear in the GROUP BY clause or be used in an aggregate function`. The reason these queries didn't fail prior to 6.1 was because Active Record would automatically drop the `ORDER BY` clause from the queries when we called `count` on them. This behavior has been [changed](5812feffe3) in 6.1 so now Active Record only drops the `ORDER BY` clause if there is no `GROUP BY` clause. Our queries do have `GROUP BY` clauses, so we need to drop the `ORDER BY` clauses ourselves before we call `count` to make them work on 6.1.
2021-04-15 19:17:26 +03:00
dependabot[bot] 2ab4e13892
Build(deps): Bump y18n from 4.0.0 to 4.0.1 (#39)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 10:03:11 +02:00
Jordan Vidrine a5bd6954c0
FEATURE: Add `selectTag`, `tags`, and `categories` to plugin outlet. (#38) 2021-03-23 08:50:44 -05:00
Justin DiRose f61de2d871
DEV: Add parameter to plugin outlet (#37)
This adds a parameters to the args hash of the before-docs-search plugin outlet so we can access tags via theme components using this outlet.
2021-03-15 11:23:37 -05:00
Penar Musaraj c7376c243d
UX: Fix two small mobile styling issues (#36) 2021-02-24 11:40:32 -05:00
Justin DiRose 34f84d0d83
Add missing README (#35) 2021-02-23 19:10:37 +01:00
Justin DiRose 2ee446b1fa
FEATURE: Add link to Docs in top menu (#34)
Added a plugin setting so admins have the choice of including a link to Docs in the top menu.
2021-02-18 15:24:52 -06:00
Justin DiRose 2835500c62
FEATURE: Make Docs compatible with inline oneboxes (#33)
Linking directly to a Docs item like so `http://localhost:3000/docs?topic=16` would result in a generic inline onebox link. This adds logic to the Rails view so a proper title is rendered when the `InlineOneboxer` in core queries the route.
2021-02-16 15:09:45 -06:00
Justin DiRose 399fbec04f
FIX: Back button out of alignment (#31)
Core made buttons to use flexbox recently, which changed the behavior of
the go back button on Docs topics. The local justify-content declaration
overrides the core declaration causing problems.
2021-02-01 09:53:38 -06:00
Joffrey JAFFEUX ce005939c1
DEV: prettier 2.2.1 (#30) 2021-01-27 10:37:03 +01:00
Justin DiRose b13abb992c
FIX: Compute topic title correctly (#29)
Was using `unicode_title` but not all topics return a unicode_title
attribute. So need to instead do this.
2021-01-19 12:16:20 -06:00
Justin DiRose 68a7243a66
FIX: Account for not having a unicode_title (#28)
Mistakenly forgot to check for presence of unicode title and use the appropriate one.
2021-01-18 12:17:29 -06:00
Justin DiRose f32aebdba0
FEATURE: Rename from Knowledge Explorer to Docs (#27)
After internal discussion, the team decided to rename this plugin to `discourse-docs`. No substantial changes made here aside from a settings migration.
2021-01-18 10:38:09 -06:00
Justin DiRose cb7c12defe
FIX: Show unicode title in topic view (#26) 2021-01-13 13:27:10 -06:00
Justin DiRose a82db01108
FEATURE: Show topic title and category in site title (#25) 2021-01-13 13:26:52 -06:00
discoursebot 0d396f921e
DEV: Update CI workflows (#23)
Updates CI from discourse/.github

Co-authored-by: justindirose <justindirose@users.noreply.github.com>
2021-01-11 14:45:20 -06:00
Osama Sayegh 25d3fbdfed
FIX: debounce search correctly (#24)
Signed-off-by: OsamaSayegh <asooomaasoooma90@gmail.com>
2021-01-05 15:16:44 +03:00