mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-02 12:13:05 +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
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
max_line_length = 9999
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
|
|
|
@ -2,10 +2,10 @@ module.exports = {
|
|||
changelogFilename: 'CHANGELOG.md',
|
||||
dataSource: 'milestones',
|
||||
groupBy: {
|
||||
'Enhancements': ['feature'],
|
||||
'Fixes': ['bug'],
|
||||
'Maintenance': ['task'],
|
||||
'Uncategorised': ['closed'],
|
||||
Enhancements: ['feature'],
|
||||
Fixes: ['bug'],
|
||||
Maintenance: ['task'],
|
||||
Uncategorised: ['closed'],
|
||||
},
|
||||
ignoreLabels: ['asciidoc', 'blocked', 'browser', 'device', 'helpwanted', 'hugo', 'idea', 'mermaid', 'needsfeedback', 'undecided'],
|
||||
ignoreIssuesWith: ['discussion', 'documentation', 'duplicate', 'invalid', 'support', 'unresolved', 'update', 'wontchange'],
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{
|
||||
"printWidth": 9999,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "preserve",
|
||||
"endOfLine": "auto",
|
||||
"quoteProps": "consistent",
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 2,
|
||||
"semi": true,
|
||||
"singleAttributePerLine": true,
|
||||
"singleQuote": true
|
||||
}
|
||||
|
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -13,7 +13,7 @@
|
|||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.tabSize": 2,
|
||||
"extensions.ignoreRecommendations": false,
|
||||
"prettier.useEditorConfig": true,
|
||||
"spellright.documentTypes": ["latex", "markdown"],
|
||||
"spellright.language": ["en"]
|
||||
|
|
|
@ -1 +1 @@
|
|||
7.1.1+9955fc97bd7471bc6c7fc2d4ed9133f95f93729b
|
||||
7.1.1+81cd4753416d30e4b070713981cfb34c6fba2542
|
|
@ -298,7 +298,7 @@ function initMermaid(update, attrs) {
|
|||
'beforeprint',
|
||||
function () {
|
||||
initMermaid(true, {
|
||||
'theme': variants.getColorValue('PRINT-MERMAID-theme'),
|
||||
theme: variants.getColorValue('PRINT-MERMAID-theme'),
|
||||
});
|
||||
}.bind(this)
|
||||
);
|
||||
|
@ -311,7 +311,7 @@ function initMermaid(update, attrs) {
|
|||
}
|
||||
|
||||
attrs = attrs || {
|
||||
'theme': variants.getColorValue('MERMAID-theme'),
|
||||
theme: variants.getColorValue('MERMAID-theme'),
|
||||
};
|
||||
|
||||
var search;
|
||||
|
@ -321,7 +321,7 @@ function initMermaid(update, attrs) {
|
|||
}
|
||||
var is_initialized = update ? update_func(attrs) : init_func(attrs);
|
||||
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({
|
||||
postRenderCallback: function (id) {
|
||||
// zoom for Mermaid
|
||||
|
@ -1654,7 +1654,7 @@ function updateTheme(detail) {
|
|||
function useMermaid(config) {
|
||||
window.relearn.mermaidConfig = config;
|
||||
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) {
|
||||
var write_style = variants.findLoadedStylesheet('R-variant-style');
|
||||
write_style.setProperty('--CONFIG-MERMAID-theme', config.theme);
|
||||
|
|
Loading…
Reference in a new issue