Skip to content

Commit 261bfda

Browse files
committed
Fix renaming package naming issues
1 parent 1a460d2 commit 261bfda

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

docs/astro.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const isDeploy = process.env.GITHUB_ACTIONS === 'true';
77
const repositoryName = (isDeploy && process.env.GITHUB_REPOSITORY) ? (process.env.GITHUB_REPOSITORY).split('/')[1] : undefined;
88
const siteBaseUrl = (isDeploy && process.env.GITHUB_REPOSITORY_OWNER) ? `https://${process.env.GITHUB_REPOSITORY_OWNER}.github.io` : undefined;
99

10-
// https://astro.build/config
1110
export default defineConfig({
1211
site: siteBaseUrl,
1312
base: repositoryName,

packages/starlight-theme-mtasa/fonts/finlandica/font-face.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
font-style: normal;
55
font-display: swap;
66
font-weight: 400 700;
7-
src: url(starlight-theme-mtasa/finlandica-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
7+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
88
unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
99
}
1010

@@ -14,7 +14,7 @@
1414
font-style: normal;
1515
font-display: swap;
1616
font-weight: 400 700;
17-
src: url(starlight-theme-mtasa/finlandica-cyrillic-wght-normal.woff2) format('woff2-variations');
17+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-cyrillic-wght-normal.woff2) format('woff2-variations');
1818
unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
1919
}
2020

@@ -24,7 +24,7 @@
2424
font-style: normal;
2525
font-display: swap;
2626
font-weight: 400 700;
27-
src: url(starlight-theme-mtasa/finlandica-latin-ext-wght-normal.woff2) format('woff2-variations');
27+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-latin-ext-wght-normal.woff2) format('woff2-variations');
2828
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
2929
}
3030

@@ -34,7 +34,7 @@
3434
font-style: normal;
3535
font-display: swap;
3636
font-weight: 400 700;
37-
src: url(starlight-theme-mtasa/finlandica-latin-wght-normal.woff2) format('woff2-variations');
37+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-latin-wght-normal.woff2) format('woff2-variations');
3838
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
3939
}
4040

@@ -44,7 +44,7 @@
4444
font-style: italic;
4545
font-display: swap;
4646
font-weight: 400 700;
47-
src: url(starlight-theme-mtasa/finlandica-cyrillic-ext-wght-italic.woff2) format('woff2-variations');
47+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-cyrillic-ext-wght-italic.woff2) format('woff2-variations');
4848
unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
4949
}
5050

@@ -54,7 +54,7 @@
5454
font-style: italic;
5555
font-display: swap;
5656
font-weight: 400 700;
57-
src: url(starlight-theme-mtasa/finlandica-cyrillic-wght-italic.woff2) format('woff2-variations');
57+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-cyrillic-wght-italic.woff2) format('woff2-variations');
5858
unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
5959
}
6060

@@ -64,7 +64,7 @@
6464
font-style: italic;
6565
font-display: swap;
6666
font-weight: 400 700;
67-
src: url(starlight-theme-mtasa/finlandica-latin-ext-wght-italic.woff2) format('woff2-variations');
67+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-latin-ext-wght-italic.woff2) format('woff2-variations');
6868
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
6969
}
7070

@@ -74,6 +74,6 @@
7474
font-style: italic;
7575
font-display: swap;
7676
font-weight: 400 700;
77-
src: url(starlight-theme-mtasa/finlandica-latin-wght-italic.woff2) format('woff2-variations');
77+
src: url(@multitheftauto/starlight-theme-mtasa/finlandica-latin-wght-italic.woff2) format('woff2-variations');
7878
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
7979
}

packages/starlight-theme-mtasa/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
import type { StarlightPlugin } from '@astrojs/starlight/types';
22

3+
const packageName = '@multitheftauto/starlight-theme-mtasa';
4+
35
export default function mtasaStarlightThemePlugin(): StarlightPlugin {
46
return {
57
name: 'starlight-theme-mtasa',
68
hooks: {
79
setup({ config, updateConfig }) {
810
updateConfig({
911
customCss: [
10-
'starlight-theme-mtasa/theme.css',
11-
'starlight-theme-mtasa/font-face.css',
12+
`${packageName}/theme.css`,
13+
`${packageName}/font-face.css`,
1214
...config.customCss ?? [],
1315
],
1416
components: {
15-
ThemeSelect: 'starlight-theme-mtasa/ThemeSelect.astro',
16-
Header: 'starlight-theme-mtasa/Header.astro',
17+
ThemeSelect: `${packageName}/ThemeSelect.astro`,
18+
Header: `${packageName}/Header.astro`,
1719
...config.components ?? {},
1820
}
1921
})

packages/starlight-theme-mtasa/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
remove the padding so we can utilize the full width of the page,
2121
and include the height of the MTA navigation in the calculation of the header. */
2222
.page > .header {
23-
background: var(--sl-color-bg-nav) url('starlight-theme-mtasa/color-strip.png') no-repeat left bottom / 100% 3px;
23+
background: var(--sl-color-bg-nav) url('@multitheftauto/starlight-theme-mtasa/color-strip.png') no-repeat left bottom / 100% 3px;
2424
padding: 0;
2525
}
2626

0 commit comments

Comments
 (0)