Go to file
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
.github/workflows DEV: Update CI workflows (#110) 2022-11-07 12:33:04 -06:00
app FIX: Use new robots.txt API (#101) 2022-07-13 19:53:56 +03:00
assets FEATURE: add a global setting to support custom docs url path (#107) 2022-11-17 11:33:38 +05:30
config Update translations (#109) 2022-11-02 15:13:54 +01:00
db/migrate FEATURE: Rename from Knowledge Explorer to Docs (#27) 2021-01-18 10:38:09 -06:00
lib FEATURE: add a global setting to support custom docs url path (#107) 2022-11-17 11:33:38 +05:30
spec FEATURE: add a global setting to support custom docs url path (#107) 2022-11-17 11:33:38 +05:30
test/javascripts FEATURE: add a global setting to support custom docs url path (#107) 2022-11-17 11:33:38 +05:30
.discourse-compatibility FEATURE: improve blank page syndrome (#79) 2022-01-28 20:10:53 +04:00
.eslintrc DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
.gitignore DEV: Update CI workflows, fix linting issues (#32) 2021-04-27 20:49:34 +02:00
.prettierrc DEV: Update CI workflows, fix linting issues (#32) 2021-04-27 20:49:34 +02:00
.rubocop.yml DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
.template-lintrc.js DEV: apply coding standards (#9) 2020-09-04 13:22:46 +02:00
Gemfile FEATURE: Add onebox metadata (#10) 2020-10-01 09:32:28 -05:00
Gemfile.lock DEV: Bump rubocop-discourse (#106) 2022-10-03 22:20:09 +02:00
LICENSE DEV: Update CI workflows, fix linting issues (#32) 2021-04-27 20:49:34 +02:00
README.md Update README.md (#60) 2021-10-04 12:36:30 -04:00
package.json DEV: Bump eslint-config-discourse and correct violations 2022-01-26 14:46:52 +00:00
plugin.rb FEATURE: add a global setting to support custom docs url path (#107) 2022-11-17 11:33:38 +05:30
translator.yml DEV: Add Crowdin support (#42) 2021-04-15 22:03:56 +02:00
yarn.lock Build(deps): Bump async from 2.6.3 to 2.6.4 (#92) 2022-04-29 18:01:59 +02:00

README.md

Discourse Docs Plugin

Find and filter knowledge base topics.

For more information, please see: https://meta.discourse.org/t/discourse-docs-documentation-management-plugin/130172/