Skip to content

Commit ba4da39

Browse files
committed
Adjust attribution links
1 parent 25d49b4 commit ba4da39

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

src/lib/dc/export-document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const defaultCodeFontSize = "15px";
4848
const dcLightPageBackground = "#ffffff";
4949
const dcDarkPageBackground = "#151515";
5050
const dcDarkPanelBackground = "#1b1b1b";
51-
const attributionHref = "https://github.com/0disoft/dc-code-paste";
51+
const attributionHref = "https://0disoft.github.io/dc-code-paste/";
5252
const attributionText = "Created with dc-code-paste";
5353

5454
type DocumentPalette = {

src/routes/+page.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Clipboard,
77
Code2,
88
FileText,
9+
Github,
910
Heading1,
1011
Highlighter,
1112
History,
@@ -2451,6 +2452,16 @@
24512452
<Save size={17} />
24522453
<span>저장함</span>
24532454
</button>
2455+
<a
2456+
class="tool-link"
2457+
href="https://github.com/0disoft/dc-code-paste"
2458+
target="_blank"
2459+
rel="noreferrer"
2460+
title="GitHub 저장소"
2461+
aria-label="GitHub 저장소 새 탭으로 열기"
2462+
>
2463+
<Github size={17} />
2464+
</a>
24542465
</div>
24552466

24562467
<div class="tool-group inline-group">
@@ -3432,14 +3443,16 @@
34323443
}
34333444
34343445
.toolbar button,
3446+
.toolbar .tool-link,
34353447
.toolbar label,
34363448
.switch {
34373449
height: 36px;
34383450
flex: 0 0 auto;
34393451
white-space: nowrap;
34403452
}
34413453
3442-
.toolbar button {
3454+
.toolbar button,
3455+
.toolbar .tool-link {
34433456
display: inline-flex;
34443457
align-items: center;
34453458
justify-content: center;
@@ -3452,6 +3465,7 @@
34523465
color: var(--text);
34533466
font-weight: 500;
34543467
cursor: pointer;
3468+
text-decoration: none;
34553469
}
34563470
34573471
.toolbar :global(svg) {

tests/unit/export-document.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("exportDocumentToDcHtml", () => {
4242
const footerStart = html.indexOf("Created with dc-code-paste");
4343

4444
expect(footerStart).toBeGreaterThan(html.indexOf("본문 내용"));
45-
expect(html).toContain('href="https://github.com/0disoft/dc-code-paste"');
45+
expect(html).toContain('href="https://0disoft.github.io/dc-code-paste/"');
4646
expect(html).toContain('target="_blank"');
4747
expect(html).toContain('rel="noopener noreferrer"');
4848
expect(html).toContain('align="right"');

0 commit comments

Comments
 (0)