Commit Graph

9 Commits

Author SHA1 Message Date
Jarek Radosz bef115d760
DEV: Update linting setup (#156) 2023-11-19 22:43:42 +01:00
Alan Guo Xiang Tan 0b4d2f3691
DEV: Update tests due to core changes (#128) 2023-04-12 15:52:30 +08:00
Alan Guo Xiang Tan 018301d004
DEV: Update sidebar section selector due to core changes (#124) 2023-03-23 13:20:41 +08:00
Alan Guo Xiang Tan b2404797f2
DEV: Update experimental sidebar site setitng to follow core (#115) 2022-12-08 09:44:03 +08:00
Frank 6b3f2576c3
FEATURE: add a global setting to support custom docs url path (#107)
* FEATURE: add a global setting to support custom docs url path

This commit adds a GlobalSetting `docs_path` to support custom docs url
path for sites that do not want docs page to live at `/docs` and have a
customized path.

* Fixed the route declaration

* Test and linting

* Update server.en.yml

* Fixed doc test

* Fixed linting.

* Testing qunit test fix

* Fixed tests

* Prettified tests

* Changed the implementation from SiteSetting to GlobalSetting instead.

* Fixed tests

* Cleanup

* Using Site instead of .js.erb to pass GlobalSetting.docs_url to the front end.

Also fixed front end tests

* Remove references to obsolete site setting

* remove unused fixture file

* Rename `docs_url` to `docs_path` and use camelCase in JavaScript

* Add serializer tests

Co-authored-by: Arpit Jalan <er.ajalan@gmail.com>
2022-11-17 11:33:38 +05:30
Alan Guo Xiang Tan 2589e82212
DEV: Update tests after changes in core (#103) 2022-07-28 16:32:51 +08:00
Alan Guo Xiang Tan fc2750e1d1
DEV: Update tests to use new site settings (#102) 2022-07-27 12:55:45 +08:00
Jarek Radosz 632042981f
DEV: Remove `isLegacyEmber` (#100) 2022-06-28 22:10:02 +02:00
Alan Guo Xiang Tan 2b6a1f468d
FEATURE: Register docs link under sidebar topics section. (#95) 2022-05-26 09:24:30 +08:00