canvas-lms/lib/tasks
Wagner Gonçalves 4d661df4f4 fix the api docs generation
Every time that we run `rake canvas:compile_assets` task, the file
data_service_canvas_logged.md changes, where the brake line is removed
from the body attribute.

This behavior does not occurs while using  the `rake doc:api` task.

After some investigation, we notice that to solve this issue we need to:
* load the json initializer (config/initializers/json) at the `doc:api` task;
* format the JSON file properly;
* fix the data_service_canvas_logged.md file to the correct version;

closes INTEROP-6346
flag=none

test plan:
* checkout this patch;
* run rake canvas:compile_assets and check that the file
data_service_canvas_logged.md doesn't change anymore;
* run rake doc:api and check that the file
data_service_canvas_logged.md doesn't change anymore;

Change-Id: I8cb1e3cb5d9527205827fa25b74e6da3319f65ab
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/253036
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Wagner Goncalves <wagner.goncalves@instructure.com>
2020-11-18 22:03:23 +00:00
..
canvas don't load full environment for upload_to_s3 rake task 2020-05-14 16:01:11 +00:00
brand_configs.rake Remove remaining dynamic brand css code 2017-10-03 22:49:11 +00:00
canvas.rake optimize Linters webpack stage 2020-10-22 19:37:36 +00:00
ci.rake spec: bring over current CI docker-composing, refs SD-1574 2017-04-24 19:36:19 +00:00
css.rake ensure gulp is available in canvas:compile_assets 2020-10-08 19:32:04 +00:00
db.rake more accurately detect if schema cache needs cleared 2018-08-16 14:23:57 +00:00
db_backend_migration.rake remove rails 3 support 2015-12-23 21:36:43 +00:00
db_create_data.rake Refine db:create_user to add additional features 2016-10-18 22:03:43 +00:00
db_load_data.rake split built-in role rows by root account 2020-09-01 19:21:27 +00:00
db_nuke.rake drop mysql support and gem 2016-04-19 19:55:55 +00:00
docs.rake fix the api docs generation 2020-11-18 22:03:23 +00:00
graphql.rake Revert "Generate app/jsx/fragmentTypes.json on demand" 2020-02-13 21:23:38 +00:00
i18nliner.rake correctly infer i18n key with whitespace in feature flags 2020-09-17 17:28:59 +00:00
js.rake ensure gulp is available in canvas:compile_assets 2020-10-08 19:32:04 +00:00
pact.rake don't load pact tasks without test group bundled 2018-06-25 14:02:31 +00:00
pact_broker.rake Dont require the pact_broker in prod 2020-09-10 17:24:06 +00:00
parallel_exclude.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
remove_schema_sig.rake Initial commit. 2011-01-31 18:57:29 -07:00
rspec.rake include 'rails/code_statistics' in rake file 2014-12-02 22:24:50 +00:00