Skip to content

Commit 3d0de68

Browse files
committed
Switched to single quote and added prettier config file and fixes a problem with the gacode
1 parent 8c69f32 commit 3d0de68

File tree

3 files changed

+50
-45
lines changed

3 files changed

+50
-45
lines changed

.codedoc/config.ts

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,38 @@ import {
33
DefaultConfig,
44
DefaultMarkdownCustomInlineComponents,
55
DefaultMarkdownCustomComponents,
6-
} from "@codedoc/core";
6+
} from '@codedoc/core';
77

8-
import { Loading, formulaPlugin } from "@codedoc/core/components";
8+
import { Loading, formulaPlugin } from '@codedoc/core/components';
99

10-
import { theme } from "./theme";
11-
import { Big } from "./components/big";
12-
import { PersonCard } from "./components/person-card";
13-
import { JoinButton$ } from "./components/join-beta/button";
14-
import { JoinCreatorButton$ } from "./components/join-creator/button";
10+
import { theme } from './theme';
11+
import { Big } from './components/big';
12+
import { PersonCard } from './components/person-card';
13+
import { JoinButton$ } from './components/join-beta/button';
14+
import { JoinCreatorButton$ } from './components/join-creator/button';
1515

16-
import { LogoutButton$ } from "./components/account/logout";
17-
import { LoginButton$ } from "./components/account/login";
18-
import { AccountStatusBound } from "./components/account/status-bound";
19-
import { AccountPropBound } from "./components/account/prop-bound";
16+
import { LogoutButton$ } from './components/account/logout';
17+
import { LoginButton$ } from './components/account/login';
18+
import { AccountStatusBound } from './components/account/status-bound';
19+
import { AccountPropBound } from './components/account/prop-bound';
2020
import {
2121
AccountProp$,
2222
AccountPropCode$,
23-
} from "./components/account/account-prop";
24-
import { EditNameButton$ } from "./components/account/edit-name";
25-
import { BindRepoButton$ } from "./components/account/bind-repo";
23+
} from './components/account/account-prop';
24+
import { EditNameButton$ } from './components/account/edit-name';
25+
import { BindRepoButton$ } from './components/account/bind-repo';
2626
import {
2727
PublishButton$,
2828
RefreshPublishWebhookButton$,
29-
} from "./components/account/publish-blog";
30-
import { PublishStatus$ } from "./components/account/publish-status";
29+
} from './components/account/publish-blog';
30+
import { PublishStatus$ } from './components/account/publish-status';
3131
import {
3232
ArticlePreview,
3333
ArticlePreviewRow,
3434
deferBgImages$,
35-
} from "./components/article-preview";
35+
} from './components/article-preview';
3636

37-
import { googleAnalytics } from "./plugins/ga";
37+
import { googleAnalytics } from './plugins/ga';
3838

3939
export const config = /*#__PURE__*/ configuration({
4040
theme,
@@ -43,42 +43,42 @@ export const config = /*#__PURE__*/ configuration({
4343
},
4444
page: {
4545
title: {
46-
base: "coding.blog",
46+
base: 'coding.blog',
4747
},
4848
scripts: [],
49-
favicon: "/favicon.ico",
49+
favicon: '/favicon.ico',
5050
meta: {
51-
subject: "A Blog for Everything Coding",
51+
subject: 'A Blog for Everything Coding',
5252
description:
53-
"An open-source blog system for coding and coders. No content-marketing, no ads in disguise. Pure quality articles.",
53+
'An open-source blog system for coding and coders. No content-marketing, no ads in disguise. Pure quality articles.',
5454
keywords: [
55-
"blog",
56-
"article",
57-
"software",
58-
"programming",
59-
"code",
60-
"open-source",
61-
"open source",
62-
"coding",
63-
"tech",
64-
"IT",
65-
"blogging",
66-
"tutorials",
67-
"articles",
68-
"convenient",
69-
"beautiful",
70-
"modern",
55+
'blog',
56+
'article',
57+
'software',
58+
'programming',
59+
'code',
60+
'open-source',
61+
'open source',
62+
'coding',
63+
'tech',
64+
'IT',
65+
'blogging',
66+
'tutorials',
67+
'articles',
68+
'convenient',
69+
'beautiful',
70+
'modern',
7171
],
7272
},
7373
},
7474
dest: {
75-
html: "dist",
76-
assets: "dist",
75+
html: 'dist',
76+
assets: 'dist',
7777
},
7878
bundle: {
7979
init: [...DefaultConfig.bundle.init, deferBgImages$],
8080
},
81-
plugins: [formulaPlugin, googleAnalytics("UA-177467962-1")],
81+
plugins: [formulaPlugin, googleAnalytics('UA-177467962-1')],
8282
markdown: {
8383
customInlineComponents: {
8484
...DefaultMarkdownCustomInlineComponents,
@@ -109,8 +109,8 @@ export const config = /*#__PURE__*/ configuration({
109109
},
110110
misc: {
111111
github: {
112-
user: "CONNECT-platform",
113-
repo: "coding-blog",
112+
user: 'CONNECT-platform',
113+
repo: 'coding-blog',
114114
},
115115
},
116116
});

.codedoc/plugins/ga/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export function googleAnalytics(gacode: string) {
1313
scripts: [
1414
<script>{`
1515
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
16-
ga('create', 'UA-${gacode}-Y', 'auto');
16+
ga('create', '${gacode}', 'auto');
1717
ga('send', 'pageview');
1818
`}</script>,
1919
<script async src='https://www.google-analytics.com/analytics.js'/>
20-
]
20+
],
2121
}
2222
}
2323
};

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"singleQuote": true
5+
}

0 commit comments

Comments
 (0)