Passed
Pull Request — master (#2244)
by Arnaud
08:25 queued 03:37
created
config/default.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     'metatags' => [
66 66
         'robots' => 'index,follow', // SEO robots default directive
67 67
     ],
68
-    'pages' => [ // Markdown content management
68
+    'pages' => [// Markdown content management
69 69
         'dir' => 'pages', // pages files directory
70 70
         'ext' => ['md', 'markdown', 'mdown', 'mkdn', 'mkd', 'text', 'txt'], // supported files formats, by extension
71 71
         'exclude' => ['vendor', 'node_modules'], // directories, paths and files name to exclude (accepts globs, strings and regexes)
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
                 'caption' => false, // puts the image in a <figure> element and adds a <figcaption> containing the title
100 100
                 'placeholder' => '', // fill <img> background before loading (`color` or `lqip`)
101 101
                 'class' => '', // puts default CSS class(es) to each image
102
-                'remote' => [ // turns remote images into Assets to process them (disable with `false`)
102
+                'remote' => [// turns remote images into Assets to process them (disable with `false`)
103 103
                     'fallback' => '', // path to the fallback image, stored in assets directory (empty by default)
104 104
                 ],
105 105
             ],
106 106
             'links' => [
107
-                'embed' => [ // turns links in embedded content if possible
107
+                'embed' => [// turns links in embedded content if possible
108 108
                     'enabled' => false,
109 109
                     'video' => ['mp4', 'webm'], // supported video file types, by extension
110 110
                     'audio' => ['mp3', 'ogg', 'wav'], // supported audio file types, by extension
@@ -125,16 +125,16 @@  discard block
 block discarded – undo
125 125
         //    <position> => 'Cecil\Generator\<class>',
126 126
         //],
127 127
     ],
128
-    'data' => [ // data files
128
+    'data' => [// data files
129 129
         'dir' => 'data', // data files directory
130 130
         'ext' => ['yaml', 'yml', 'json', 'xml', 'csv'], // loaded files by extension
131 131
         'load' => true, // enables `site.data` collection
132 132
     ],
133
-    'assets' => [ // assets: CSS, JS, images, etc.
133
+    'assets' => [// assets: CSS, JS, images, etc.
134 134
         'dir' => 'assets', // assets files directory
135 135
         'target' => '', // where processed assets are saved (in output directory)
136 136
         'fingerprint' => true, // enables fingerprinting
137
-        'compile' => [ // Sass files compilation
137
+        'compile' => [// Sass files compilation
138 138
             'style' => 'expanded', // compilation style (`expanded` or `compressed`)
139 139
             'import' => ['sass', 'scss', 'node_modules'], // list of imported directories
140 140
             'sourcemap' => false, // enables sourcemap in debug mode
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         'images' => [
152 152
             'optimize' => false, // enables images optimization with JpegOptim, Optipng, Pngquant 2, SVGO 1, Gifsicle, cwebp, avifenc
153 153
             'quality' => 75, // image quality after optimization or resize
154
-            'responsive' => [ // options of generated responsive images
154
+            'responsive' => [// options of generated responsive images
155 155
                 'widths' => [480, 640, 768, 1024, 1366, 1600, 1920], // `srcset` widths
156 156
                 'sizes' => ['default' => '100vw'], // default `sizes` attribute
157 157
                 'densities' => [1, 2, 3], // `srcset` pixel densities
@@ -166,26 +166,26 @@  discard block
 block discarded – undo
166 166
             //]
167 167
         ],
168 168
     ],
169
-    'static' => [ // static files
169
+    'static' => [// static files
170 170
         'dir' => 'static', // static files directory
171 171
         'target' => '', // subdirectory where files are copied
172 172
         'exclude' => ['sass', 'scss', '*.scss', 'package*.json', 'node_modules'], // excluded files by extension or pattern
173 173
         'load' => false, // enables `site.static` collection
174 174
     ],
175
-    'layouts' => [ // layouts and templates
175
+    'layouts' => [// layouts and templates
176 176
         'dir' => 'layouts', // Twig templates directory
177
-        'images' => [ // how to handle images in templates
177
+        'images' => [// how to handle images in templates
178 178
             'formats' => [], // used by `html` function: adds alternatives image formats as `source` (e.g.: ['avif', 'webp'])
179 179
             'responsive' => false, // used by `html` function: adds responsive images ('width' or 'density') to `srcset` attribute
180 180
         ],
181
-        'translations' => [ // i18n
181
+        'translations' => [// i18n
182 182
             'dir' => 'translations', // translations files directory
183 183
             'formats' => ['yaml', 'mo'], // translations supported formats
184 184
         ],
185
-        'extensions' => [ // list of Twig extensions class
185
+        'extensions' => [// list of Twig extensions class
186 186
             //'<name>' => 'Cecil\Renderer\Extension\<class>',
187 187
         ],
188
-        'components' => [ // components
188
+        'components' => [// components
189 189
             'dir' => 'components', // components directory
190 190
             'ext' => 'twig', // components files extension
191 191
         ],
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         //    '<section>' => '<layout>',
194 194
         //]
195 195
     ],
196
-    'output' => [ // output formats and post process
196
+    'output' => [// output formats and post process
197 197
         'dir' => '_site', // output directory
198 198
         //'formats' => [ // https://cecil.app/documentation/configuration/#formats
199 199
         //    [
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         //        'exclude' => ['variable1', 'variable2'],
205 205
         //    ],
206 206
         //],
207
-        'pagetypeformats' => [ // formats applied by page type
207
+        'pagetypeformats' => [// formats applied by page type
208 208
             'page' => ['html'],
209 209
             'homepage' => ['html', 'atom'],
210 210
             'section' => ['html', 'atom'],
@@ -215,10 +215,10 @@  discard block
 block discarded – undo
215 215
         //    '<name>' => 'Cecil\Renderer\PostProcessor\<class>',
216 216
         //],
217 217
     ],
218
-    'cache' => [ // cache management
218
+    'cache' => [// cache management
219 219
         'enabled' => true, // disable with `false`
220 220
         'dir' => '.cache', // cache files root directory
221
-        'assets' => [ // assets cache
221
+        'assets' => [// assets cache
222 222
             'ttl' => null, // assets cache TTL (no expiration by default)
223 223
             'remote' => [
224 224
                 'ttl' => 604800, // remote assets cache TTL (7 days by default)
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         'templates' => true, // disable Twig templates cache with `false`
228 228
         'translations' => true, // disable translations dictionary cache with `false`
229 229
     ],
230
-    'optimize' => [ // files optimization
230
+    'optimize' => [// files optimization
231 231
         'enabled' => false, // enables files optimization
232 232
         'html' => [
233 233
             'enabled' => true, // enables HTML files optimization
Please login to merge, or discard this patch.