Skip to content

Commit

Permalink
fix: Fixes default Admonitions not respecting the injectColor setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 3, 2022
1 parent 3e270e4 commit 7cf16f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion src/@types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Admonition {
icon: AdmonitionIconDefinition;
color: string;
command: boolean;
injectColor: boolean;
injectColor?: boolean;
noTitle: boolean;
copy?: boolean;
}
Expand Down
28 changes: 0 additions & 28 deletions src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "pencil-alt"
},
command: false,
injectColor: true,
noTitle: false
},
seealso: {
Expand All @@ -32,7 +31,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "pencil-alt"
},
command: false,
injectColor: true,
noTitle: false
},
abstract: {
Expand All @@ -43,7 +41,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "book"
},
command: false,
injectColor: true,
noTitle: false
},
summary: {
Expand All @@ -54,7 +51,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "book"
},
command: false,
injectColor: true,
noTitle: false
},
tldr: {
Expand All @@ -65,7 +61,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "book"
},
command: false,
injectColor: true,
noTitle: false
},
info: {
Expand All @@ -76,7 +71,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "info-circle"
},
command: false,
injectColor: true,
noTitle: false
},
todo: {
Expand All @@ -87,7 +81,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "info-circle"
},
command: false,
injectColor: true,
noTitle: false
},
tip: {
Expand All @@ -98,7 +91,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "fire"
},
command: false,
injectColor: true,
noTitle: false
},
hint: {
Expand All @@ -109,7 +101,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "fire"
},
command: false,
injectColor: true,
noTitle: false
},
important: {
Expand All @@ -120,7 +111,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "fire"
},
command: false,
injectColor: true,
noTitle: false
},
success: {
Expand All @@ -131,7 +121,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "check-circle"
},
command: false,
injectColor: true,
noTitle: false
},
check: {
Expand All @@ -142,7 +131,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "check-circle"
},
command: false,
injectColor: true,
noTitle: false
},
done: {
Expand All @@ -153,7 +141,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "check-circle"
},
command: false,
injectColor: true,
noTitle: false
},
question: {
Expand All @@ -164,7 +151,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "question-circle"
},
command: false,
injectColor: true,
noTitle: false
},
help: {
Expand All @@ -175,7 +161,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "question-circle"
},
command: false,
injectColor: true,
noTitle: false
},
faq: {
Expand All @@ -186,7 +171,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "question-circle"
},
command: false,
injectColor: true,
noTitle: false
},
warning: {
Expand All @@ -197,7 +181,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "exclamation-triangle"
},
command: false,
injectColor: true,
noTitle: false
},
caution: {
Expand All @@ -208,7 +191,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "exclamation-triangle"
},
command: false,
injectColor: true,
noTitle: false
},
attention: {
Expand All @@ -219,7 +201,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "exclamation-triangle"
},
command: false,
injectColor: true,
noTitle: false
},
failure: {
Expand All @@ -230,7 +211,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "times-circle"
},
command: false,
injectColor: true,
noTitle: false
},
fail: {
Expand All @@ -241,7 +221,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "times-circle"
},
command: false,
injectColor: true,
noTitle: false
},
missing: {
Expand All @@ -252,7 +231,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "times-circle"
},
command: false,
injectColor: true,
noTitle: false
},
danger: {
Expand All @@ -263,7 +241,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "bolt"
},
command: false,
injectColor: true,
noTitle: false
},
error: {
Expand All @@ -274,7 +251,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "bolt"
},
command: false,
injectColor: true,
noTitle: false
},
bug: {
Expand All @@ -285,7 +261,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "bug"
},
command: false,
injectColor: true,
noTitle: false
},
example: {
Expand All @@ -296,7 +271,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "list-ol"
},
command: false,
injectColor: true,
noTitle: false
},
quote: {
Expand All @@ -307,7 +281,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "quote-right"
},
command: false,
injectColor: true,
noTitle: false
},
cite: {
Expand All @@ -318,7 +291,6 @@ export const ADMONITION_MAP: Record<string, Admonition> = {
name: "quote-right"
},
command: false,
injectColor: true,
noTitle: false
}
};

0 comments on commit 7cf16f0

Please sign in to comment.