Skip to content

Commit

Permalink
chore: 📝 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
willin committed Dec 31, 2023
1 parent a11b4ed commit 9397876
Show file tree
Hide file tree
Showing 22 changed files with 49 additions and 235 deletions.
9 changes: 9 additions & 0 deletions .changeset/empty-rings-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@svelte-dev/auth-sso": patch
"@svelte-dev/session": patch
"@svelte-dev/auth": patch
"@svelte-dev/i18n": patch
"web": patch
---

remove typedocs
5 changes: 5 additions & 0 deletions .changeset/warm-garlics-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@svelte-dev/auth-sso": patch
---

change sso endpoint
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@

### Packages

| Package | Meta | Docs | Changelog |
| ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ---------------------------------------------- |
| [@svelte-dev/session](packages/session/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/session?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/session) [![npm](https://img.shields.io/npm/dm/@svelte-dev/session?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/session) [![npm](https://img.shields.io/npm/dt/@svelte-dev/session?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/session) | [Docs](https://svelte.js.cool/docs/session/) | [Changelog](packages/session/CHANGELOG.md) |
| [@svelte-dev/auth](packages/auth/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/auth?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth) | [Docs](https://svelte.js.cool/docs/auth/) | [Changelog](packages/auth/CHANGELOG.md) |
| [@svelte-dev/i18n](packages/i18n/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/i18n?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/i18n) [![npm](https://img.shields.io/npm/dm/@svelte-dev/i18n?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/i18n) [![npm](https://img.shields.io/npm/dt/@svelte-dev/i18n?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/i18n) | [Docs](https://svelte.js.cool/docs/i18n/) | [Changelog](packages/i18n/CHANGELOG.md) |
| [@svelte-dev/auth-oauth2](packages/auth-oauth2/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-oauth2?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-oauth2) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-oauth2?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-oauth2) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-oauth2?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-oauth2) | | [Changelog](packages/auth-oauth2/CHANGELOG.md) |
| [@svelte-dev/auth-github](packages/auth-github/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-github?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-github) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-github?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-github) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-github?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-github) | | [Changelog](packages/auth-github/CHANGELOG.md) |
| [@svelte-dev/auth-alipay](packages/auth-alipay/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-alipay?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-alipay) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-alipay?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-alipay) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-alipay?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-alipay) | | [Changelog](packages/auth-alipay/CHANGELOG.md) |
| [@svelte-dev/auth-afdian](packages/auth-afdian/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-afdian?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-afdian) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-afdian?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-afdian) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-afdian?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-afdian) | | [Changelog](packages/auth-afdian/CHANGELOG.md) |
| [@svelte-dev/auth-sso](packages/auth-sso/) | [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-sso?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-sso) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-sso?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-sso) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-sso?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-sso) | | [Changelog](packages/auth-sso/CHANGELOG.md) |

[Webiste](https://svelte.js.cool) is under [apps/web](apps/web/).
- [@svelte-dev/session](packages/session/) [![npm](https://img.shields.io/npm/v/@svelte-dev/session?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/session) [![npm](https://img.shields.io/npm/dm/@svelte-dev/session?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/session) [![npm](https://img.shields.io/npm/dt/@svelte-dev/session?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/session) [Docs](https://svelte.js.cool/docs/session/) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/session/CHANGELOG.md) |
- [@svelte-dev/auth](packages/auth/) [![npm](https://img.shields.io/npm/v/@svelte-dev/auth?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth) [Docs](https://svelte.js.cool/docs/auth/) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/auth/CHANGELOG.md) |
- [@svelte-dev/i18n](packages/i18n/) [![npm](https://img.shields.io/npm/v/@svelte-dev/i18n?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/i18n) [![npm](https://img.shields.io/npm/dm/@svelte-dev/i18n?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/i18n) [![npm](https://img.shields.io/npm/dt/@svelte-dev/i18n?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/i18n) [Docs](https://svelte.js.cool/docs/i18n/) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/i18n/CHANGELOG.md) |
- [@svelte-dev/auth-oauth2](packages/auth-oauth2/) [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-oauth2?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-oauth2) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-oauth2?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-oauth2) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-oauth2?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-oauth2) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/auth-oauth2/CHANGELOG.md) |
- [@svelte-dev/auth-github](packages/auth-github/) [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-github?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-github) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-github?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-github) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-github?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-github) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/auth-github/CHANGELOG.md) |
- [@svelte-dev/auth-alipay](packages/auth-alipay/) [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-alipay?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-alipay) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-alipay?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-alipay) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-alipay?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-alipay) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/auth-alipay/CHANGELOG.md) |
- [@svelte-dev/auth-afdian](packages/auth-afdian/) [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-afdian?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-afdian) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-afdian?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-afdian) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-afdian?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-afdian) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/auth-afdian/CHANGELOG.md) |
- [@svelte-dev/auth-sso](packages/auth-sso/) [![npm](https://img.shields.io/npm/v/@svelte-dev/auth-sso?style=flat-square&logo=npm)](https://npmjs.org/package/@svelte-dev/auth-sso) [![npm](https://img.shields.io/npm/dm/@svelte-dev/auth-sso?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-sso) [![npm](https://img.shields.io/npm/dt/@svelte-dev/auth-sso?style=flat-square&label=down)](https://npmjs.org/package/@svelte-dev/auth-sso) [![](https://img.shields.io/badge/CHANGELOG-md-blue)](packages/auth-sso/CHANGELOG.md) |
[Webiste](https://svelte.js.cool) is under [apps/web](apps/web/).

## 赞助 Sponsor

Expand Down
14 changes: 7 additions & 7 deletions apps/web/src/routes/(zh)/auth/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ desc: 一个简单好用的 Svelte 身份管理库
import { page } from "$app/stores";
</script>

```js title="hello.js" /age/#v /name/#v /setAge/#s /setName/#s /50/#i /'Taylor'/#i
const [age, setAge] = useState(50);
const [name, setName] = useState('Taylor');
```

![Logo](https://repository-images.githubusercontent.com/726691357/f09bf6fc-3844-4584-8eee-6bfb425d8a38)

## 特性
Expand Down Expand Up @@ -194,9 +189,14 @@ export {};

> 欢迎共享您的策略。
## TypeDocs
## API 文档

[自动化生成的接口文档](/docs/auth/)
- [API 接口文档](https://paka.dev/npm/@svelte-dev/auth/api)
- [OAuth2 API 接口文档](https://paka.dev/npm/@svelte-dev/auth-oauth2/api)
- [Github API 接口文档](https://paka.dev/npm/@svelte-dev/auth-github/api)
- [Alipay API 接口文档](https://paka.dev/npm/@svelte-dev/auth-alipay/api)
- [Afdian API 接口文档](https://paka.dev/npm/@svelte-dev/auth-afdian/api)
- [SSO API 接口文档](https://paka.dev/npm/@svelte-dev/auth-sso/api)

## 赞助

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/routes/(zh)/i18n/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ import '$lib/i18n';
{$t('message')}
```

## TypeDocs
## API 文档

[自动化生成的接口文档](/docs/i18n/)
[API 接口文档](https://paka.dev/npm/@svelte-dev/i18n/api)

## 赞助

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/routes/(zh)/session/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ export class YourStrategy<Data = SessionData, FlashData = Data>
}
```
## TypeDocs
## API 文档
[自动化生成的接口文档](/docs/session/)
[API 接口文档](https://paka.dev/npm/@svelte-dev/session/api)
## 赞助
Expand Down
11 changes: 8 additions & 3 deletions apps/web/src/routes/en/auth/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,14 @@ export {};

> Welcome to share your strategies here.
## TypeDocs

[API Spec](/docs/auth/)
## API Spec

- [API Spec](https://paka.dev/npm/@svelte-dev/auth/api)
- [OAuth2 API Spec](https://paka.dev/npm/@svelte-dev/auth-oauth2/api)
- [Github API Spec](https://paka.dev/npm/@svelte-dev/auth-github/api)
- [Alipay API Spec](https://paka.dev/npm/@svelte-dev/auth-alipay/api)
- [Afdian API Spec](https://paka.dev/npm/@svelte-dev/auth-afdian/api)
- [SSO API Spec](https://paka.dev/npm/@svelte-dev/auth-sso/api)

## Sponsor

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/routes/en/i18n/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ Use in page:
{$t('message')}
```

## TypeDocs
## Api Spec

[API Spec](/docs/i18n/)
[API Spec](https://paka.dev/npm/@svelte-dev/i18n/api)

## Sponsor

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/routes/en/session/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ export class YourStrategy<Data = SessionData, FlashData = Data>
}
```

## TypeDocs
## API Spec

[API Spec](/docs/session/)
[API Spec](https://paka.dev/npm/@svelte-dev/session/api)

## Sponsor

Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"private": true,
"scripts": {
"build": "turbo run build",
"build:docs": "turbo run build:docs",
"dev": "turbo run dev --parallel",
"test": "turbo run test --parallel",
"changeset:version": "changeset version",
Expand Down
6 changes: 3 additions & 3 deletions packages/auth-sso/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export class SSOStrategy<User> extends OAuth2Strategy<User, SSOProfile, SSOExtra
callbackURL,
userAgent,
scope,
authorizationURL = 'https://sso.willin.wang/authorize',
tokenURL = 'https://sso.willin.wang/token',
userInfoURL = 'https://sso.willin.wang/userinfo'
authorizationURL = 'https://sso.willin.wang/auth/authorize',
tokenURL = 'https://sso.willin.wang/auth/token',
userInfoURL = 'https://sso.willin.wang/auth/userinfo'
}: SSOStrategyOptions,
verify: StrategyVerifyCallback<User, OAuth2StrategyVerifyParams<SSOProfile, SSOExtraParams>>
) {
Expand Down
6 changes: 0 additions & 6 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"scripts": {
"dev": "echo vite dev",
"build": "vite build && npm run package",
"dev:docs": "typedoc --watch",
"build:docs": "typedoc",
"lint": "prettier --write . && eslint . --fix",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
Expand Down Expand Up @@ -68,10 +66,6 @@
"svelte": "^5.0.0-next.22",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typedoc-plugin-extras": "^3.0.0",
"typedoc-plugin-google-ads": "^1.6.0",
"typedoc-plugin-keywords": "^1.6.0",
"typedocs": "^0.6.7",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.34.0"
Expand Down
17 changes: 0 additions & 17 deletions packages/auth/tsconfig.typedoc.json

This file was deleted.

44 changes: 0 additions & 44 deletions packages/auth/typedoc.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"scripts": {
"dev": "echo vite dev",
"build": "vite build && npm run package",
"dev:docs": "typedoc --watch",
"build:docs": "typedoc",
"lint": "prettier --write . && eslint . --fix",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
Expand Down Expand Up @@ -64,10 +62,6 @@
"svelte": "^5.0.0-next.22",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typedoc-plugin-extras": "^3.0.0",
"typedoc-plugin-google-ads": "^1.6.0",
"typedoc-plugin-keywords": "^1.6.0",
"typedocs": "^0.6.7",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.34.0"
Expand Down
17 changes: 0 additions & 17 deletions packages/i18n/tsconfig.typedoc.json

This file was deleted.

41 changes: 0 additions & 41 deletions packages/i18n/typedoc.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/session/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
"scripts": {
"dev": "echo vite dev",
"build": "vite build && npm run package",
"dev:docs": "typedoc --watch",
"build:docs": "typedoc",
"lint": "prettier --write . && eslint . --fix",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
Expand Down Expand Up @@ -67,10 +65,6 @@
"svelte": "^5.0.0-next.22",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typedoc-plugin-extras": "^3.0.0",
"typedoc-plugin-google-ads": "^1.6.0",
"typedoc-plugin-keywords": "^1.6.0",
"typedocs": "^0.6.7",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.34.0"
Expand Down
17 changes: 0 additions & 17 deletions packages/session/tsconfig.typedoc.json

This file was deleted.

Loading

0 comments on commit 9397876

Please sign in to comment.