mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-02 20:23:06 +00:00
theme: changed prettier settings #947
This commit is contained in:
parent
81cd475341
commit
a36e20dad7
6 changed files with 15 additions and 15 deletions
|
@ -4,9 +4,10 @@ root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = lf
|
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 9999
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
|
|
|
@ -2,10 +2,10 @@ module.exports = {
|
||||||
changelogFilename: 'CHANGELOG.md',
|
changelogFilename: 'CHANGELOG.md',
|
||||||
dataSource: 'milestones',
|
dataSource: 'milestones',
|
||||||
groupBy: {
|
groupBy: {
|
||||||
'Enhancements': ['feature'],
|
Enhancements: ['feature'],
|
||||||
'Fixes': ['bug'],
|
Fixes: ['bug'],
|
||||||
'Maintenance': ['task'],
|
Maintenance: ['task'],
|
||||||
'Uncategorised': ['closed'],
|
Uncategorised: ['closed'],
|
||||||
},
|
},
|
||||||
ignoreLabels: ['asciidoc', 'blocked', 'browser', 'device', 'helpwanted', 'hugo', 'idea', 'mermaid', 'needsfeedback', 'undecided'],
|
ignoreLabels: ['asciidoc', 'blocked', 'browser', 'device', 'helpwanted', 'hugo', 'idea', 'mermaid', 'needsfeedback', 'undecided'],
|
||||||
ignoreIssuesWith: ['discussion', 'documentation', 'duplicate', 'invalid', 'support', 'unresolved', 'update', 'wontchange'],
|
ignoreIssuesWith: ['discussion', 'documentation', 'duplicate', 'invalid', 'support', 'unresolved', 'update', 'wontchange'],
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
{
|
{
|
||||||
"printWidth": 9999,
|
"endOfLine": "auto",
|
||||||
"proseWrap": "preserve",
|
"quoteProps": "consistent",
|
||||||
"quoteProps": "preserve",
|
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"tabWidth": 2,
|
|
||||||
"semi": true,
|
"semi": true,
|
||||||
|
"singleAttributePerLine": true,
|
||||||
"singleQuote": true
|
"singleQuote": true
|
||||||
}
|
}
|
||||||
|
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -13,7 +13,7 @@
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
},
|
},
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.tabSize": 2,
|
"extensions.ignoreRecommendations": false,
|
||||||
"prettier.useEditorConfig": true,
|
"prettier.useEditorConfig": true,
|
||||||
"spellright.documentTypes": ["latex", "markdown"],
|
"spellright.documentTypes": ["latex", "markdown"],
|
||||||
"spellright.language": ["en"]
|
"spellright.language": ["en"]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7.1.1+9955fc97bd7471bc6c7fc2d4ed9133f95f93729b
|
7.1.1+81cd4753416d30e4b070713981cfb34c6fba2542
|
|
@ -298,7 +298,7 @@ function initMermaid(update, attrs) {
|
||||||
'beforeprint',
|
'beforeprint',
|
||||||
function () {
|
function () {
|
||||||
initMermaid(true, {
|
initMermaid(true, {
|
||||||
'theme': variants.getColorValue('PRINT-MERMAID-theme'),
|
theme: variants.getColorValue('PRINT-MERMAID-theme'),
|
||||||
});
|
});
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
@ -311,7 +311,7 @@ function initMermaid(update, attrs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
attrs = attrs || {
|
attrs = attrs || {
|
||||||
'theme': variants.getColorValue('MERMAID-theme'),
|
theme: variants.getColorValue('MERMAID-theme'),
|
||||||
};
|
};
|
||||||
|
|
||||||
var search;
|
var search;
|
||||||
|
@ -321,7 +321,7 @@ function initMermaid(update, attrs) {
|
||||||
}
|
}
|
||||||
var is_initialized = update ? update_func(attrs) : init_func(attrs);
|
var is_initialized = update ? update_func(attrs) : init_func(attrs);
|
||||||
if (is_initialized) {
|
if (is_initialized) {
|
||||||
mermaid.initialize(Object.assign({ 'securityLevel': 'antiscript', 'startOnLoad': false }, window.relearn.mermaidConfig, { theme: attrs.theme }));
|
mermaid.initialize(Object.assign({ securityLevel: 'antiscript', startOnLoad: false }, window.relearn.mermaidConfig, { theme: attrs.theme }));
|
||||||
mermaid.run({
|
mermaid.run({
|
||||||
postRenderCallback: function (id) {
|
postRenderCallback: function (id) {
|
||||||
// zoom for Mermaid
|
// zoom for Mermaid
|
||||||
|
@ -1654,7 +1654,7 @@ function updateTheme(detail) {
|
||||||
function useMermaid(config) {
|
function useMermaid(config) {
|
||||||
window.relearn.mermaidConfig = config;
|
window.relearn.mermaidConfig = config;
|
||||||
if (typeof mermaid != 'undefined' && typeof mermaid.mermaidAPI != 'undefined') {
|
if (typeof mermaid != 'undefined' && typeof mermaid.mermaidAPI != 'undefined') {
|
||||||
mermaid.initialize(Object.assign({ 'securityLevel': 'antiscript', 'startOnLoad': false }, config));
|
mermaid.initialize(Object.assign({ securityLevel: 'antiscript', startOnLoad: false }, config));
|
||||||
if (config.theme && variants) {
|
if (config.theme && variants) {
|
||||||
var write_style = variants.findLoadedStylesheet('R-variant-style');
|
var write_style = variants.findLoadedStylesheet('R-variant-style');
|
||||||
write_style.setProperty('--CONFIG-MERMAID-theme', config.theme);
|
write_style.setProperty('--CONFIG-MERMAID-theme', config.theme);
|
||||||
|
|
Loading…
Reference in a new issue