Skip to content

Commit eb52910

Browse files
committed
initial commit
0 parents  commit eb52910

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+7108
-0
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
quote_type = single
11+
12+
[*.{js, js.ts, ts}]
13+
indent_size = 2
14+
15+
[*.svelte]
16+
indent_size = 4
17+
18+

.env.development

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
VITE_PUBLIC_BASE_PATH=http://localhost:3000
2+
3+
sitemapChangeFreq = "monthly"
4+
sitemapPriority = "0.5"

.eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5+
plugins: ['svelte3', '@typescript-eslint'],
6+
ignorePatterns: ['*.cjs'],
7+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8+
settings: {
9+
'svelte3/typescript': () => require('typescript')
10+
},
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020
14+
},
15+
env: {
16+
browser: true,
17+
es2017: true,
18+
node: true
19+
}
20+
};

.gitignore

+145
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
### Node ###
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
.pnpm-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# Snowpack dependency directory (https://snowpack.dev/)
47+
web_modules/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Optional REPL history
59+
.node_repl_history
60+
61+
# Output of 'npm pack'
62+
*.tgz
63+
64+
# Yarn Integrity file
65+
.yarn-integrity
66+
67+
# dotenv environment variables file
68+
.env
69+
.env.test
70+
.env.production
71+
72+
# parcel-bundler cache (https://parceljs.org/)
73+
.cache
74+
.parcel-cache
75+
76+
# Next.js build output
77+
.next
78+
out
79+
80+
# Gatsby files
81+
.cache/
82+
# Comment in the public line in if your project uses Gatsby and not Next.js
83+
# https://nextjs.org/blog/next-9-1#public-directory-support
84+
# public
85+
86+
# Stores VSCode versions used for testing VSCode extensions
87+
.vscode-test
88+
89+
# yarn v2
90+
.yarn/cache
91+
.yarn/unplugged
92+
.yarn/build-state.yml
93+
.yarn/install-state.gz
94+
.pnp.*
95+
96+
### OSX ###
97+
# General
98+
.DS_Store
99+
.AppleDouble
100+
.LSOverride
101+
102+
# Icon must end with two \r
103+
Icon
104+
105+
106+
# Thumbnails
107+
._*
108+
109+
# Files that might appear in the root of a volume
110+
.DocumentRevisions-V100
111+
.fseventsd
112+
.Spotlight-V100
113+
.TemporaryItems
114+
.Trashes
115+
.VolumeIcon.icns
116+
.com.apple.timemachine.donotpresent
117+
118+
# Directories potentially created on remote AFP share
119+
.AppleDB
120+
.AppleDesktop
121+
Network Trash Folder
122+
Temporary Items
123+
.apdisk
124+
125+
### VisualStudioCode ###
126+
.vscode/*
127+
!.vscode/settings.json
128+
!.vscode/tasks.json
129+
!.vscode/launch.json
130+
!.vscode/extensions.json
131+
*.code-workspace
132+
133+
# Local History for Visual Studio Code
134+
.history/
135+
136+
### VisualStudioCode Patch ###
137+
# Ignore all local history of files
138+
.history
139+
.ionide
140+
141+
# SvelteKit
142+
/build
143+
/.svelte-kit
144+
/package
145+
*.sh

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.svelte-kit/**
2+
static/**
3+
build/**
4+
node_modules/**

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"bracketSpacing": true,
7+
"svelteSortOrder": "scripts-markup-styles"
8+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Sveltin.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# docs.sveltin.io

config/defaults.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const sveltinVersion = '0.1.0';
2+
3+
export { sveltinVersion as default };

config/menu.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const menu = [
2+
{
3+
identifier: 'home',
4+
name: 'Home',
5+
url: '/',
6+
weight: 1
7+
}
8+
];
9+
10+
export { menu as default };

config/user_settings.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const userSettings = {
2+
googleFonts: [
3+
{
4+
name: 'IBM+Plex+Sans',
5+
weight: [200, 300, 400, 500, 600, 700]
6+
},
7+
{
8+
name: 'IBM+Plex+Mono',
9+
weight: [100, 200, 300, 400]
10+
}
11+
],
12+
googleAnalytics: {
13+
UA_ID: ''
14+
},
15+
github: {
16+
username: 'sveltinio',
17+
repository: 'sveltin'
18+
}
19+
};
20+
21+
export { userSettings as default };

config/website.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
const website = {
2+
name: 'docs',
3+
baseURL: 'https://docs.sveltin.io',
4+
language: 'en-GB',
5+
title: 'docs',
6+
slogan: '',
7+
description: '',
8+
logo: 'logo.png',
9+
logo_small: 'logo_small.png',
10+
copyright: '2021, YOUR_NAME_HERE',
11+
keywords: '',
12+
contactEmail: '',
13+
sitemap: {
14+
changefreq: 'weekly',
15+
priority: 0.5
16+
},
17+
socials: {
18+
linkedin: '',
19+
twitter: '',
20+
github: '',
21+
facebook: '',
22+
instagram: '',
23+
youtube: ''
24+
},
25+
webmaster: {
26+
name: 'indaco',
27+
address: 'Somewhere, World (Milky Way)',
28+
contactEmail: 'github@mircoveltri.me'
29+
}
30+
};
31+
32+
export { website };

mdsvex.config.js

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import { createRequire } from 'module';
2+
const require = createRequire(import.meta.url);
3+
4+
import relativeImages from 'mdsvex-relative-images';
5+
import preview, { textFormatter, htmlFormatter } from 'remark-preview';
6+
7+
import emoji from 'remark-emoji';
8+
import remarkSlug from 'remark-slug';
9+
import remarkExternalLinks from 'remark-external-links';
10+
import readingTime from 'remark-reading-time';
11+
import rehypeAutoLinkHeadings from 'rehype-autolink-headings';
12+
import rehypeSlug from 'rehype-slug';
13+
import headings from './src/lib/utils/headings.js';
14+
15+
const config = {
16+
extensions: ['.svelte.md', '.md', '.svx'],
17+
smartypants: {
18+
dashes: 'oldschool'
19+
},
20+
remarkPlugins: [
21+
remarkSlug,
22+
headings,
23+
emoji,
24+
readingTime(),
25+
relativeImages,
26+
// external links open in a new tab
27+
[remarkExternalLinks, { target: '_blank', rel: 'noopener' }],
28+
// Add an HTML preview snippet (formatted).
29+
// It is used on the RSS feed
30+
preview(
31+
textFormatter({
32+
length: 50
33+
}),
34+
htmlFormatter({
35+
length: 200,
36+
maxBlocks: 1
37+
}),
38+
{
39+
attribute: 'previewHtml'
40+
}
41+
)
42+
],
43+
rehypePlugins: [
44+
rehypeSlug[
45+
(rehypeAutoLinkHeadings,
46+
{
47+
behavior: 'wrap'
48+
})
49+
]
50+
]
51+
};
52+
53+
export default config;

0 commit comments

Comments
 (0)