Skip to content

Commit d897515

Browse files
authored
Fix design resource links on the site (line#6585)
Motivation: - Design resource links are broken on: https://armeria.dev/community/design-resources/ Modifications: - Fix GitHub path to point to the `/site-new/` directory instead of `/site/` Result: - Design resource links are now valid. - Links in "Edit this page" buttons are now valid.
1 parent 84ecc9a commit d897515

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

site-new/docusaurus.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default async function createConfigAsync() {
8484
docs: {
8585
sidebarPath: './sidebars.ts',
8686
path: 'src/content/docs',
87-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
87+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
8888
remarkPlugins: [remarkApiLink, remarkGithub],
8989
},
9090
blog: {
@@ -102,7 +102,7 @@ export default async function createConfigAsync() {
102102
type: ['rss'],
103103
xslt: false,
104104
},
105-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
105+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
106106
onInlineTags: 'warn',
107107
onInlineAuthors: 'warn',
108108
onUntruncatedBlogPosts: 'warn',
@@ -251,7 +251,7 @@ export default async function createConfigAsync() {
251251
path: 'src/content/community',
252252
routeBasePath: 'community',
253253
sidebarPath: './sidebarsCommunity.ts',
254-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
254+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
255255
remarkPlugins: [remarkApiLink, remarkGithub],
256256
},
257257
],
@@ -268,7 +268,7 @@ export default async function createConfigAsync() {
268268
const sidebarItems = await defaultSidebarItemsGenerator(args);
269269
return sortReleaseNoteSidebarItems(sidebarItems);
270270
},
271-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
271+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
272272
remarkPlugins: [remarkApiLink, remarkGithub, remarkReleaseDate],
273273
},
274274
],
@@ -289,7 +289,7 @@ export default async function createConfigAsync() {
289289
type: ['rss'],
290290
xslt: false,
291291
},
292-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
292+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
293293
onInlineTags: 'warn',
294294
onInlineAuthors: 'warn',
295295
onUntruncatedBlogPosts: 'throw',
@@ -312,7 +312,7 @@ export default async function createConfigAsync() {
312312
type: ['rss'],
313313
xslt: false,
314314
},
315-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
315+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
316316
onInlineTags: 'warn',
317317
onInlineAuthors: 'warn',
318318
onUntruncatedBlogPosts: 'throw',
@@ -335,7 +335,7 @@ export default async function createConfigAsync() {
335335
type: ['rss'],
336336
xslt: false,
337337
},
338-
editUrl: 'https://github.com/line/armeria/edit/main/site/',
338+
editUrl: 'https://github.com/line/armeria/edit/main/site-new/',
339339
onInlineTags: 'warn',
340340
onInlineAuthors: 'warn',
341341
onUntruncatedBlogPosts: 'throw',

site-new/src/content/community/articles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ArticleList from '@site/src/components/article-list';
55
:::tip
66

77
Got some articles or slides to share? 😊
8-
Send a pull request by editing [this page](https://github.com/line/armeria/edit/main/site/community/articles.mdx).
8+
Send a pull request by editing [this page](https://github.com/line/armeria/edit/main/site-new/src/content/community/articles.mdx).
99

1010
:::
1111

site-new/src/content/community/design-resources.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ clarification.
1818

1919
:::
2020

21-
Follow the rules outlined in [the guideline (PDF)](https://github.com/line/armeria/raw/main/site/src/design/armeria_guideline.pdf)
21+
Follow the rules outlined in [the guideline (PDF)](https://github.com/line/armeria/raw/main/site-new/src/design/armeria_guideline.pdf)
2222
when using the logo. In principle, all logos must be used as-is and without alteration or modification.
2323

2424
## Key colors
@@ -36,42 +36,42 @@ when using the logo. In principle, all logos must be used as-is and without alte
3636
<LogoVariationContainer>
3737
<LogoVariation
3838
name="Logo without text"
39-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon.svg"
39+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon.svg"
4040
/>
4141
<LogoVariation
4242
name="Logo with text"
43-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_and_text_horiz.svg"
43+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_and_text_horiz.svg"
4444
/>
4545
<LogoVariation
4646
name="Grayscale logo with text"
47-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_and_text_horiz_grayscale.svg"
47+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_and_text_horiz_grayscale.svg"
4848
/>
4949
<LogoVariation
5050
name="Logo with text"
5151
subname="(Inverted)"
52-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_and_text_horiz_inverted.svg"
52+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_and_text_horiz_inverted.svg"
5353
background="#3a3a3a"
5454
/>
5555
<LogoVariation
5656
name="Grayscale logo with text"
5757
subname="(Inverted)"
58-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_and_text_horiz_inverted_grayscale.svg"
58+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_and_text_horiz_inverted_grayscale.svg"
5959
background="#3a3a3a"
6060
/>
6161
<LogoVariation
6262
name="Logo with text"
6363
subname="(Inverted pink)"
64-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_and_text_horiz_inverted_pink.svg"
64+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_and_text_horiz_inverted_pink.svg"
6565
background="#ff0089"
6666
/>
6767
<LogoVariation
6868
name="Logo with text"
6969
subname="(horizontal layout)"
70-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_and_text_vert.svg"
70+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_and_text_vert.svg"
7171
/>
7272
<LogoVariation
7373
name="Text only"
74-
src="https://github.com/line/armeria/raw/main/site/src/design/armeria_text.svg"
74+
src="https://github.com/line/armeria/raw/main/site-new/src/design/armeria_text.svg"
7575
altText="Text only"
7676
/>
7777
</LogoVariationContainer>
@@ -80,8 +80,8 @@ when using the logo. In principle, all logos must be used as-is and without alte
8080

8181
If you are interested in how we ended up with the current logo, check these files:
8282

83-
- [The draft for the current logo](https://github.com/line/armeria/raw/main/site/src/design/armeria_draft.pdf)
84-
- [The old logo](https://github.com/line/armeria/raw/main/site/src/design/armeria_icon_legacy.svg)
83+
- [The draft for the current logo](https://github.com/line/armeria/raw/main/site-new/src/design/armeria_draft.pdf)
84+
- [The old logo](https://github.com/line/armeria/raw/main/site-new/src/design/armeria_icon_legacy.svg)
8585

8686
## Credits
8787

0 commit comments

Comments
 (0)