Skip to content

Commit 9fdb8fe

Browse files
committed
Temporarily disable prettier for .mdx files
1 parent 2823e1d commit 9fdb8fe

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pnpm-lock.yaml
44
.astro/**
55
**/.tmp
66
aptos-spec.json
7+
*.mdx

prettier.config.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,12 @@ module.exports = {
1111
parser: "astro",
1212
},
1313
},
14+
{
15+
files: ["*.md", "*.mdx"],
16+
options: {
17+
parser: "mdx",
18+
printWidth: 80,
19+
},
20+
},
1421
],
1522
};

src/globals.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ https://tailwindcss.com/docs/adding-custom-styles#using-css-and-layer
2525
padding: 0.5em calc(var(--sl-sidebar-item-padding-inline) + 0.25em);
2626
}
2727

28-
.sidebar-content ul li a[aria-current="page"] {
28+
.sidebar-content ul li a[aria-current="page"] {
2929
background-color: var(--sl-color-text-invert);
3030
color: var(--sl-color-text-accent);
3131
}
3232

3333
.sidebar-content .large {
3434
font-size: var(--sl-text-base);
35-
font-weight:500;
35+
font-weight: 500;
3636
color: var(--sl-color-gray-1);
3737
}
3838

@@ -64,20 +64,19 @@ header site-search button {
6464

6565
/* Temporarily hide the first h1 in the markdown content as these are defined in frontmatter */
6666
.sl-markdown-content h1:first-of-type {
67-
display:none;
67+
display: none;
6868
}
6969

7070
.sl-link-card {
7171
border-radius: 0;
7272
}
7373

7474
.group-label {
75-
text-transform:capitalize;
75+
text-transform: capitalize;
7676
}
7777

78-
7978
.sl-link-button.primary {
8079
border-radius: 0;
81-
background:white;
82-
border:none;
83-
}
80+
background: white;
81+
border: none;
82+
}

0 commit comments

Comments
 (0)