canvas-lms/doc
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
..
api fix the api docs generation 2020-11-18 22:03:23 +00:00
diagrams API doc update for a group assignment override 2013-02-08 11:50:54 -07:00
docker Update getting_docker.md 2020-09-02 03:31:49 +00:00
examples Quiz Stats - Multiple Answers 2014-06-05 09:12:19 +00:00
images Store EULA agreement timestamp 2017-11-02 19:43:35 +00:00
styleguide Remove broken/obsolete content from styleguide 2020-05-15 17:47:09 +00:00
yard_plugins add permissions variable expansion 2019-06-12 12:13:28 +00:00
DEPRECATION.md api docs: add deprecation functionality + documentation 2018-08-16 18:27:55 +00:00
GraphQL Validation Errors.md graphql: add CreateGroupInSet mutation 2018-11-14 00:49:29 +00:00
high_level.txt remove non-draft-state everything 2014-12-10 17:57:18 +00:00
js_code_coverage.md Add a way to generate better js coverage 2018-07-17 14:19:03 +00:00
live_events.md add user_sis_id and user_login to live events 2019-09-12 16:33:42 +00:00
testing_javascript.md add documentation on how to run jest tests 2019-02-20 19:43:07 +00:00
testing_with_selenium.md need to use cask for chromedriver in selenium docs 2019-10-24 22:18:45 +00:00
working_with_webpack.md require yarn, not npm 2017-08-14 15:27:14 +00:00