Skip to content

Commit 83005d7

Browse files
committed
Merge branch 'docs-main' into docs-develop
2 parents 8eba62b + 5f156ae commit 83005d7

File tree

135 files changed

+35661
-0
lines changed

Some content is hidden

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

135 files changed

+35661
-0
lines changed

.github/workflows/docs.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy documentation to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["v2-web3-onboard-develop", "feature/documentation"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
defaults:
31+
run:
32+
working-directory: ./docs
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v3
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v2
39+
40+
- name: Setup Nodejs and yarn
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: "16"
44+
cache: yarn
45+
46+
- name: Install dependencies
47+
run: yarn install --immutable
48+
49+
- name: Build Documentation
50+
run: yarn build
51+
52+
- name: Peak at folder contents
53+
run: ls -al
54+
55+
- name: Upload artifact
56+
uses: actions/upload-pages-artifact@v1
57+
with:
58+
# Upload entire repository
59+
path: './docs/build'
60+
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v1

docs/.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

docs/.eslintrc.cjs

Lines changed: 20 additions & 0 deletions
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+
}

docs/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
.vercel

docs/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

docs/.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

docs/.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"useTabs": false,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"printWidth": 100,
7+
"semi": false
8+
}

docs/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# create-svelte
2+
3+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4+
5+
## Creating a project
6+
7+
If you're seeing this, you've probably already done this step. Congrats!
8+
9+
```bash
10+
# create a new project in the current directory
11+
npm init svelte
12+
13+
# create a new project in my-app
14+
npm init svelte my-app
15+
```
16+
17+
## Developing
18+
19+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20+
21+
```bash
22+
npm run dev
23+
24+
# or start the server and open the app in a new browser tab
25+
npm run dev -- --open
26+
```
27+
28+
## Building
29+
30+
To create a production version of your app:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
You can preview the production build with `npm run preview`.
37+
38+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

docs/package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "docs",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"dev": "svelte-kit dev",
6+
"build": "svelte-kit build",
7+
"package": "svelte-kit package",
8+
"preview": "svelte-kit preview",
9+
"prepare": "svelte-kit sync",
10+
"test": "playwright test",
11+
"check": "svelte-check --tsconfig ./tsconfig.json",
12+
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
13+
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
14+
"format": "prettier --write --plugin-search-dir=. ."
15+
},
16+
"devDependencies": {
17+
"@iconify-json/ri": "^1.1.1",
18+
"@playwright/test": "^1.22.2",
19+
"@sveltejs/kit": "next",
20+
"@svelteness/kit-docs": "^0.22.12",
21+
"@tailwindcss/typography": "^0.5.2",
22+
"@typescript-eslint/eslint-plugin": "^5.27.0",
23+
"@typescript-eslint/parser": "^5.27.0",
24+
"@vitebook/client": "^0.100.5",
25+
"@vitebook/core": "^0.100.5",
26+
"@vitebook/markdown-shiki": "^0.100.5",
27+
"@vitebook/markdown-svelte": "^0.100.5",
28+
"autoprefixer": "^10.4.7",
29+
"clsx": "^1.1.1",
30+
"daisyui": "^2.17.0",
31+
"eslint": "^8.16.0",
32+
"eslint-config-prettier": "^8.3.0",
33+
"eslint-plugin-svelte3": "^4.0.0",
34+
"postcss": "^8.4.14",
35+
"prettier": "^2.6.2",
36+
"prettier-plugin-svelte": "^2.7.0",
37+
"shiki": "^0.10.1",
38+
"svelte": "^3.44.0",
39+
"svelte-check": "^2.7.1",
40+
"svelte-preprocess": "^4.10.7",
41+
"tslib": "^2.3.1",
42+
"typescript": "^4.7.2",
43+
"@sveltejs/adapter-static": "^1.0.0-next.39",
44+
"@sveltejs/adapter-vercel": "next",
45+
"unplugin-icons": "^0.13.4"
46+
},
47+
"type": "module",
48+
"dependencies": {
49+
"@web3-onboard/core": "^2.7.0",
50+
"@web3-onboard/injected-wallets": "^2.0.16"
51+
}
52+
}

docs/playwright.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { PlaywrightTestConfig } from '@playwright/test'
2+
3+
const config: PlaywrightTestConfig = {
4+
webServer: {
5+
command: 'npm run build && npm run preview',
6+
port: 3000
7+
}
8+
}
9+
10+
export default config

0 commit comments

Comments
 (0)