From c6f943db44ea7f5d3da4e9b638ccba1c09b501cf Mon Sep 17 00:00:00 2001 From: Marcel Amirault Date: Fri, 12 Jul 2019 08:09:23 +0000 Subject: Add blank lines around code blocks All code blocks should be surrounded by blank lines --- doc/development/fe_guide/design_patterns.md | 3 ++ doc/development/fe_guide/droplab/droplab.md | 8 ++++ doc/development/fe_guide/droplab/plugins/ajax.md | 19 ++++---- doc/development/fe_guide/droplab/plugins/filter.md | 37 +++++++-------- .../fe_guide/droplab/plugins/input_setter.md | 53 +++++++++++----------- doc/development/fe_guide/vue.md | 1 + 6 files changed, 68 insertions(+), 53 deletions(-) (limited to 'doc/development/fe_guide') diff --git a/doc/development/fe_guide/design_patterns.md b/doc/development/fe_guide/design_patterns.md index 0342d16a87c..2f372f783f5 100644 --- a/doc/development/fe_guide/design_patterns.md +++ b/doc/development/fe_guide/design_patterns.md @@ -53,6 +53,7 @@ When writing a class that needs to manipulate the DOM guarantee a container opti This is useful when we need that class to be instantiated more than once in the same page. Bad: + ```javascript class Foo { constructor() { @@ -63,6 +64,7 @@ new Foo(); ``` Good: + ```javascript class Foo { constructor(opts) { @@ -72,6 +74,7 @@ class Foo { new Foo({ container: '.my-element' }); ``` + You can find an example of the above in this [class][container-class-example]; [container-class-example]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/mini_pipeline_graph_dropdown.js diff --git a/doc/development/fe_guide/droplab/droplab.md b/doc/development/fe_guide/droplab/droplab.md index 2f8c79abde1..1c6d895b3ab 100644 --- a/doc/development/fe_guide/droplab/droplab.md +++ b/doc/development/fe_guide/droplab/droplab.md @@ -25,6 +25,7 @@ If you do not provide any arguments, it will globally query and instantiate all