Skip to content

Commit 90e439c

Browse files
chore: fix prettier
1 parent fe1af48 commit 90e439c

File tree

13 files changed

+228
-204
lines changed

13 files changed

+228
-204
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pnpm-lock.yaml
22
**/*.md
3+
**/*.mdx

docs/tutorialkit.dev/astro.config.ts

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,47 @@ export default defineConfig({
1717
logo: {
1818
dark: './src/assets/brand/tutorialkit-logo-dark.svg',
1919
light: './src/assets/brand/tutorialkit-logo-light.svg',
20-
replacesTitle: true
20+
replacesTitle: true,
2121
},
2222
plugins: [starlightLinksValidator()],
23-
sidebar: [{
24-
label: 'Guides',
25-
items: [
26-
// Each item here is one entry in the navigation menu.
23+
sidebar: [
2724
{
28-
label: 'About',
29-
link: '/guides/about/'
30-
}, {
31-
label: 'Installation',
32-
link: '/guides/installation/'
33-
}, {
34-
label: 'Creating a Lesson',
35-
link: '/guides/creating-content/'
36-
}, {
37-
label: 'Configuration',
38-
link: '/guides/configuration/'
39-
}, {
40-
label: 'Deployment',
41-
link: '/guides/deployment/'
42-
}, {
43-
label: 'User Interface Reference',
44-
link: '/guides/ui/'
45-
}]
46-
}],
25+
label: 'Guides',
26+
items: [
27+
// Each item here is one entry in the navigation menu.
28+
{
29+
label: 'About',
30+
link: '/guides/about/',
31+
},
32+
{
33+
label: 'Installation',
34+
link: '/guides/installation/',
35+
},
36+
{
37+
label: 'Creating a Lesson',
38+
link: '/guides/creating-content/',
39+
},
40+
{
41+
label: 'Configuration',
42+
link: '/guides/configuration/',
43+
},
44+
{
45+
label: 'Deployment',
46+
link: '/guides/deployment/',
47+
},
48+
{
49+
label: 'User Interface Reference',
50+
link: '/guides/ui/',
51+
},
52+
],
53+
},
54+
],
4755
// social: {
48-
// github: 'https://github.com/withastro/starlight',
56+
// github: 'https://github.com/withastro/starlight',
4957
// },
5058
tableOfContents: {
51-
maxHeadingLevel: 5
52-
}
59+
maxHeadingLevel: 5,
60+
},
5361
}),
5462
],
5563
});

docs/tutorialkit.dev/src/components/Buttons/Button/Button.module.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,29 @@
1515
font-weight: 500;
1616
text-align: center;
1717
text-decoration: none;
18-
box-shadow: inset 0 0 0 1px
19-
hsla(var(--outline-color-hsl), var(--outline-opacity));
18+
box-shadow: inset 0 0 0 1px hsla(var(--outline-color-hsl), var(--outline-opacity));
2019
background-color: hsla(224, 32%, 28%, 0.24);
2120
backdrop-filter: blur(8px);
2221
transition: var(--transition-fast);
2322
transition-property: background-color, box-shadow, color;
24-
[data-theme="light"] & {
23+
[data-theme='light'] & {
2524
--outline-color-hsl: 0, 0%, 0%;
2625
background-color: hsla(224, 32%, 28%, 0.08);
2726
}
2827
&:hover {
2928
--outline-opacity: 0.1;
3029
color: var(--custom-color-text-strong) !important; // !important for starlight override only
3130
background-color: hsla(224, 32%, 28%, 0.54);
32-
[data-theme="light"] & {
31+
[data-theme='light'] & {
3332
--outline-opacity: 0.16;
3433
background-color: hsla(224, 32%, 28%, 0.04);
3534
}
3635
}
3736

3837
&.accent {
3938
color: #fff !important; // !important for starlight override only
40-
box-shadow: inset 0 1px 0 1px rgba(255,255,255,0.16);
41-
background-color: #1488FC;
39+
box-shadow: inset 0 1px 0 1px rgba(255, 255, 255, 0.16);
40+
background-color: #1488fc;
4241
&:hover {
4342
background-color: #2793ff;
4443
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type ButtonTheme = 'default'|'accent';
1+
export type ButtonTheme = 'default' | 'accent';

docs/tutorialkit.dev/src/components/Layout/Head.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import Default from '@astrojs/starlight/components/Head.astro';
99
<script is:inline async src="https://www.googletagmanager.com/gtag/js?id=G-64MFE82HG5"></script>
1010
<script is:inline>
1111
window.dataLayer = window.dataLayer || [];
12-
function gtag(){dataLayer.push(arguments);}
12+
function gtag() {
13+
dataLayer.push(arguments);
14+
}
1315
gtag('js', new Date());
1416
gtag('config', 'G-64MFE82HG5');
1517
</script>
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
22
interface Props {
3-
required?: boolean;
4-
inherited?: boolean;
5-
values?: string;
6-
type?: string;
3+
required?: boolean;
4+
inherited?: boolean;
5+
values?: string;
6+
type?: string;
77
}
88
99
const { required = false, inherited = false, values, type } = Astro.props;
1010
---
1111

1212
<table>
13-
<thead>
14-
<tr>
15-
<th>Required</th>
16-
<th>{values ? 'Values' : 'Type'}</th>
17-
<th>Inherited</th>
18-
</tr>
19-
</thead>
20-
<tbody>
21-
<tr>
22-
<td>{required ? 'yes' : 'no'}</td>
23-
<td>{values ? values : type}</td>
24-
<td>{inherited ? 'yes' : 'no'}</td>
25-
</tr>
26-
</tbody>
13+
<thead>
14+
<tr>
15+
<th>Required</th>
16+
<th>{values ? 'Values' : 'Type'}</th>
17+
<th>Inherited</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
<tr>
22+
<td>{required ? 'yes' : 'no'}</td>
23+
<td>{values ? values : type}</td>
24+
<td>{inherited ? 'yes' : 'no'}</td>
25+
</tr>
26+
</tbody>
2727
</table>
2828

2929
<style>
30-
td {
31-
text-align: center;
32-
}
30+
td {
31+
text-align: center;
32+
}
3333
</style>

docs/tutorialkit.dev/src/components/Tabs/PackageManagerTabs.astro

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
33
---
44

55
<Tabs syncKey="package-managers">
6-
<TabItem label="npm">
7-
<slot name="npm" />
8-
</TabItem>
9-
<TabItem label="pnpm">
10-
<slot name="pnpm" />
11-
</TabItem>
12-
<TabItem label="Yarn">
13-
<slot name="yarn" />
14-
</TabItem>
6+
<TabItem label="npm">
7+
<slot name="npm" />
8+
</TabItem>
9+
<TabItem label="pnpm">
10+
<slot name="pnpm" />
11+
</TabItem>
12+
<TabItem label="Yarn">
13+
<slot name="yarn" />
14+
</TabItem>
1515
</Tabs>
Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
11
<!-- WIP -->
2-
32
<main>
3+
<nav>
4+
<div class="logo">TutorialKit</div>
5+
</nav>
6+
7+
<section class="left">
48
<nav>
5-
<div class="logo">TutorialKit</div>
9+
<a
10+
><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"
11+
><path
12+
fill="currentColor"
13+
d="m7.85 13l2.85 2.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L4.7 12.7q-.3-.3-.3-.7t.3-.7l4.575-4.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7L7.85 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"
14+
></path></svg
15+
></a
16+
>
17+
<div class="breadcrumbs">Basics / The first chapter in part 1 / Welcome to TutorialKit</div>
18+
<a
19+
><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"
20+
><path
21+
fill="currentColor"
22+
d="M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z"
23+
></path></svg
24+
></a
25+
>
626
</nav>
727

8-
<section class="left">
9-
<nav>
10-
<a><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="m7.85 13l2.85 2.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L4.7 12.7q-.3-.3-.3-.7t.3-.7l4.575-4.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7L7.85 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"/></svg></a>
11-
<div class="breadcrumbs">Basics / The first chapter in part 1 / Welcome to TutorialKit</div>
12-
<a><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z"/></svg></a>
13-
</nav>
14-
15-
<div class="content">
16-
<h1>Hello world</h1>
17-
<p>Welcome to our first lesson!</p>
18-
</div>
19-
</section>
20-
21-
<section class="right">
28+
<div class="content">
29+
<h1>Hello world</h1>
30+
<p>Welcome to our first lesson!</p>
31+
</div>
32+
</section>
2233

23-
</section>
34+
<section class="right"></section>
2435
</main>
2536

2637
<style>
27-
.logo {
28-
font-weight: bold;
29-
}
38+
.logo {
39+
font-weight: bold;
40+
}
3041
</style>

docs/tutorialkit.dev/src/content/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { defineCollection } from 'astro:content';
22
import { docsSchema } from '@astrojs/starlight/schema';
33

44
export const collections = {
5-
docs: defineCollection({ schema: docsSchema() }),
5+
docs: defineCollection({ schema: docsSchema() }),
66
};

0 commit comments

Comments
 (0)