gscan 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/specs/v6.js +17 -1
- package/package.json +1 -1
package/lib/specs/v6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const _ = require('lodash');
|
|
2
2
|
const oneLineTrim = require('common-tags/lib/oneLineTrim');
|
|
3
3
|
const previousSpec = require('./v5');
|
|
4
|
-
const docsBaseUrl = `https://ghost.org/
|
|
4
|
+
const docsBaseUrl = `https://docs.ghost.org/themes/`;
|
|
5
5
|
|
|
6
6
|
const previousKnownHelpers = previousSpec.knownHelpers;
|
|
7
7
|
const previousTemplates = previousSpec.templates;
|
|
@@ -26,6 +26,22 @@ let rules = {
|
|
|
26
26
|
Find more information about the <code>{{#get}}</code> helper <a href="${docsBaseUrl}helpers/get/" target=_blank>here</a>.`,
|
|
27
27
|
helper: '{{#get}}'
|
|
28
28
|
},
|
|
29
|
+
'GS001-DEPR-TWITTER-URL': {
|
|
30
|
+
level: 'warning',
|
|
31
|
+
rule: 'Replace <code>{{twitter_url}}</code> with <code>{{social_url type="twitter"}}</code>',
|
|
32
|
+
details: oneLineTrim`The <code>{{twitter_url}}</code> helper is no longer supported and should be replaced with <code>{{social_url type="twitter"}}</code>.<br>
|
|
33
|
+
Find more information about the <code>{{social_url}}</code> helper <a href="${docsBaseUrl}helpers/data/social_url/" target=_blank>here</a>.`,
|
|
34
|
+
regex: /{{\s*?twitter_url(\s+[^}]*)?\s*?}}/g,
|
|
35
|
+
helper: '{{twitter_url}}'
|
|
36
|
+
},
|
|
37
|
+
'GS001-DEPR-FACEBOOK-URL': {
|
|
38
|
+
level: 'warning',
|
|
39
|
+
rule: 'Replace <code>{{facebook_url}}</code> with <code>{{social_url type="facebook"}}</code>',
|
|
40
|
+
details: oneLineTrim`The <code>{{facebook_url}}</code> helper is no longer supported and should be replaced with <code>{{social_url type="facebook"}}</code>.<br>
|
|
41
|
+
Find more information about the <code>{{social_url}}</code> helper <a href="${docsBaseUrl}helpers/data/social_url/" target=_blank>here</a>.`,
|
|
42
|
+
regex: /{{\s*?facebook_url(\s+[^}]*)?\s*?}}/g,
|
|
43
|
+
helper: '{{facebook_url}}'
|
|
44
|
+
},
|
|
29
45
|
'GS001-DEPR-AMP-TEMPLATE': {
|
|
30
46
|
level: 'warning',
|
|
31
47
|
rule: 'AMP templates are no longer supported in Ghost 6.0',
|