Skip to content

chore: Remove own build pipeline from docs #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ body:
placeholder: |
https://github.com/[your]/[repo]
or
https://sveltejs.github.io/eslint-plugin-svelte/playground/#[hash]
https://eslint-online-playground.netlify.app/#[hash]
validations:
required: true
- type: textarea
Expand Down
90 changes: 45 additions & 45 deletions README.md

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion docs-svelte-kit/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,20 @@ const config = [
'jsdoc/require-jsdoc': 'off',
'@typescript-eslint/no-shadow': 'off',
'no-shadow': 'off',
// SvelteKit's docs usually use const instead of function.
'func-style': 'off',
// SvelteKit sometimes needs to use @sveltejs/kit package's `error` instead of return.
'consistent-return': 'off',
'@typescript-eslint/naming-convention': 'off',
'new-cap': 'off',
complexity: 'off',
'n/no-missing-import': 'off',
'n/file-extension-in-import': 'off',
'n/no-extraneous-import': 'off'
'n/no-extraneous-import': 'off',
// We need to use {@html} for markdown rendering.
'svelte/no-at-html-tags': 'off',
// Delegate it to Svelte compiler's check.
'svelte/valid-compile': 'off'
}
},
{
Expand Down
7 changes: 6 additions & 1 deletion docs-svelte-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/markdown-it": "^14.1.1",
"@types/markdown-it-container": "^2.0.10",
"@types/markdown-it-emoji": "^3.0.1",
"@types/node": "^20.12.12",
"@types/node": "^20.14.11",
"@types/prismjs": "^1.26.4",
"@types/stylus": "^0.48.42",
"@typescript/vfs": "^1.5.0",
Expand All @@ -55,9 +55,14 @@
"stylus": "^0.63.0",
"svelte": "^5.0.0-next.112",
"svelte-adapter-ghpages": "0.2.2",
"svelte-preprocess": "^6.0.2",
"util": "^0.12.5",
"vite": "^5.2.11",
"vite-plugin-eslint4b": "^0.4.2",
"vite-plugin-svelte-md": "^0.1.7"
},
"dependencies": {
"@shikijs/markdown-it": "^1.10.3",
"markdown-it": "^14.1.0"
}
}
119 changes: 62 additions & 57 deletions docs-svelte-kit/src/app.css
Original file line number Diff line number Diff line change
@@ -1,105 +1,110 @@
@import "@fontsource/fira-mono";
@import '@fontsource/fira-mono';

:root {
font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
--font-mono: "Fira Mono", monospace;
--pure-white: #ffffff;
--primary-color: #b9c6d2;
--secondary-color: #676778;
--tertiary-color: #edf0f8;
--accent-color: #ff3e00;
--heading-color: rgba(0, 0, 0, 0.7);
--text-color: #444444;
--background-without-opacity: rgba(255, 255, 255, 0.7);
--column-width: 42rem;
--column-margin-top: 4rem;
font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';
--font-mono: 'Fira Mono', monospace;
--pure-white: #ffffff;
--primary-color: #b9c6d2;
--secondary-color: #676778;
--tertiary-color: #edf0f8;
--accent-color: #ff3e00;
--heading-color: rgba(0, 0, 0, 0.7);
--text-color: #444444;
--background-without-opacity: rgba(255, 255, 255, 0.7);
--column-width: 42rem;
--column-margin-top: 4rem;
}

body {
min-height: 100vh;
margin: 0;
background-color: var(--primary-color);
min-height: 100vh;
margin: 0;
background-color: var(--primary-color);
line-height: 1.5;
}

body::before {
content: "";
width: 80vw;
height: 100vh;
position: absolute;
top: 0;
left: 10vw;
z-index: -1;
background: radial-gradient(
50% 50% at 50% 50%,
var(--pure-white) 0%,
rgba(255, 255, 255, 0) 100%
);
opacity: 0.05;
content: '';
width: 80vw;
height: 100vh;
position: absolute;
top: 0;
left: 10vw;
z-index: -1;
background: radial-gradient(
50% 50% at 50% 50%,
var(--pure-white) 0%,
rgba(255, 255, 255, 0) 100%
);
opacity: 0.05;
}

#svelte {
min-height: 100vh;
display: flex;
flex-direction: column;
min-height: 100vh;
display: flex;
flex-direction: column;
}

h1,
h2,
p {
font-weight: 400;
color: var(--heading-color);
font-weight: 400;
color: var(--heading-color);
}

p {
line-height: 1.5;
line-height: 1.5;
}

a {
color: var(--accent-color);
text-decoration: none;
color: var(--accent-color);
text-decoration: none;
}

a:hover {
text-decoration: underline;
text-decoration: underline;
}

h1 {
font-size: 2rem;
text-align: center;
font-size: 2rem;
text-align: center;
}

h2 {
font-size: 1rem;
font-size: 1rem;
}

pre {
font-size: 16px;
font-family: var(--font-mono);
background-color: rgba(255, 255, 255, 0.45);
border-radius: 3px;
box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
padding: 0.5em;
overflow-x: auto;
color: var(--text-color);
font-size: 16px;
background-color: rgba(255, 255, 255, 0.45);
border-radius: 3px;
box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
padding: 0.5em;
overflow-x: auto;
color: var(--text-color);
}

code {
font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji' !important;
}

input,
button {
font-size: inherit;
font-family: inherit;
font-size: inherit;
font-family: inherit;
}

button:focus:not(:focus-visible) {
outline: none;
outline: none;
}

@media (min-width: 720px) {
h1 {
font-size: 2.4rem;
}
h1 {
font-size: 2.4rem;
}
}

:target {
scroll-margin-top: 80px;
scroll-margin-top: 80px;
}
Loading
Loading