From 69c58395e584e42f953da76d822755f603e98533 Mon Sep 17 00:00:00 2001 From: oriverk Date: Mon, 4 Dec 2023 23:00:43 +0900 Subject: [PATCH] chore: modify codes --- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- .github/pull_request_template.md | 11 ++- .vscode/setting.json | 7 +- src/env.d.ts | 1 + src/pages/markdown-guide.md | 2 +- src/styles/markdown.css | 107 ++++++++++++++++++++++ 6 files changed, 122 insertions(+), 8 deletions(-) create mode 100644 src/styles/markdown.css diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 0c21c96..df6c3f9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -9,7 +9,7 @@ assignees: '' # Feature request -## Is your feature request related to a problem? Please describe. +## Is your feature request related to a problem? Please describe A clear and concise description of what you want and what your use case is. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4fe45ed..b90a656 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,10 +1,11 @@ # related issues + Fixes # -# Changes proposed in this pull request -- -- -- +## Changes proposed in this pull request + +- hoge ## the background (as memo) -- + +- foo diff --git a/.vscode/setting.json b/.vscode/setting.json index cdbfdff..005a879 100644 --- a/.vscode/setting.json +++ b/.vscode/setting.json @@ -11,5 +11,10 @@ "astro", "typescript", "typescriptreact" - ] + ], + "[svelte]": { + "editor.formatOnSave": true, + "editor.deafultFormatter": "svelte.svelte-vscode" + } + } \ No newline at end of file diff --git a/src/env.d.ts b/src/env.d.ts index fd54680..d7cd952 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -11,6 +11,7 @@ interface ImportMetaEnv { readonly SECRET_ALGOLIA_ADMIN_KEY: string } +// eslint-disable-next-line no-unused-vars interface ImportMeta { readonly env: ImportMetaEnv } diff --git a/src/pages/markdown-guide.md b/src/pages/markdown-guide.md index 6b5906f..439c1d9 100644 --- a/src/pages/markdown-guide.md +++ b/src/pages/markdown-guide.md @@ -67,7 +67,7 @@ function hello (){ in MDX v2, bare link and link with `<>` is completely deprecated to avoid `<>` as jsx component. -```txt +```plaintext https://ixanary.com ``` diff --git a/src/styles/markdown.css b/src/styles/markdown.css new file mode 100644 index 0000000..361ee84 --- /dev/null +++ b/src/styles/markdown.css @@ -0,0 +1,107 @@ +h1 { + font-size: 2.5rem; + font-weight: 700; +} + +h2 { + font-size: 2rem; + font-weight: 700; +} + +h2::before { + content: '## '; + content: '## ' / ''; +} + +h3 { + font-size: 1.5rem; + font-weight: 700; +} + +h3::before { + content: '### '; + content: '### ' / ''; +} + +h4 { + font-size: 1.25rem; + font-weight: 700; +} + +h4::before { + content: '#### '; + content: '#### ' / ''; +} + +h5 { + font-size: 1rem; + font-weight: 700; +} + +h6 { + font-size: 0.875rem; + font-weight: 700; + margin: 0; +} + +p { + margin-top: 1.25em; + margin-top: 1.25em; +} + +blockquote { + padding: 0.5rem 1rem; + background-color: rgba(var(--color-gray) / 0.1); + border-left: 0.25rem solid rgb(var(--color-lightgray)); +} + +code { + font-family: monospace; + font-size: 0.875rem; + padding: 0.25rem 0.5rem; + border-radius: 0.25rem; +} + +:not(pre)>code { + padding: 0; + margin: 0 0.1rem; +} + +:not(pre)>code::before, +:not(pre)>code::after { + content: '`'; + content: '`' / ''; +} + +pre { + margin: 0; + padding: 0.5rem 1rem; + border-radius: 0.25rem; +} + +pre code { + font-size: 1rem; + padding: 0; +} + +table { + margin: 0; + border-collapse: collapse; +} + +th { + padding: 0.25rem 0.5rem; + border: 1px solid #ccc; + text-align: center; +} + +td { + padding: 0.25rem 0.5rem; + border: 1px solid #ccc; +} + +caption { + color: rgb(var(--color-lightgray)); + font-size: 1rem; + padding: 0.5rem 0; +}