mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
docs: api reference (#1048)
* docs: api reference * chore(docs): add peer denpendencies for redoc-cli
This commit is contained in:
parent
3145c9b348
commit
00e32f08da
4 changed files with 918 additions and 91 deletions
1
packages/docs/.gitignore
vendored
1
packages/docs/.gitignore
vendored
|
@ -7,6 +7,7 @@
|
||||||
# Generated files
|
# Generated files
|
||||||
.docusaurus
|
.docusaurus
|
||||||
.cache-loader
|
.cache-loader
|
||||||
|
/static/api/index.html
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
@ -64,6 +64,12 @@ const config = {
|
||||||
position: 'left',
|
position: 'left',
|
||||||
label: 'SDK',
|
label: 'SDK',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: '/api',
|
||||||
|
target: '_blank',
|
||||||
|
position: 'left',
|
||||||
|
label: 'API',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'localeDropdown',
|
type: 'localeDropdown',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
|
|
|
@ -4,11 +4,12 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docusaurus": "docusaurus",
|
"docusaurus": "docusaurus",
|
||||||
"start": "docusaurus start",
|
"start": "pnpm build:api && docusaurus start",
|
||||||
"build": "docusaurus build",
|
"build": "pnpm build:api && docusaurus build",
|
||||||
|
"build:api": "redoc-cli build https://logto.dev/api/swagger.json -o static/api/index.html --title 'Logto Core API Reference'",
|
||||||
"swizzle": "docusaurus swizzle",
|
"swizzle": "docusaurus swizzle",
|
||||||
"deploy": "docusaurus deploy",
|
"deploy": "pnpm build:api && docusaurus deploy",
|
||||||
"clear": "docusaurus clear",
|
"clear": "rm static/api/index.html && docusaurus clear",
|
||||||
"serve": "docusaurus serve",
|
"serve": "docusaurus serve",
|
||||||
"write-translations": "docusaurus write-translations",
|
"write-translations": "docusaurus write-translations",
|
||||||
"write-heading-ids": "docusaurus write-heading-ids",
|
"write-heading-ids": "docusaurus write-heading-ids",
|
||||||
|
@ -29,7 +30,11 @@
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
"@types/node": "^17.0.23",
|
"@types/node": "^17.0.23",
|
||||||
"@types/react": "^17.0.14",
|
"@types/react": "^17.0.14",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.6.3",
|
||||||
|
"redoc-cli": "^0.13.16",
|
||||||
|
"react-is": "^16.8.0",
|
||||||
|
"webpack": "^5.0.0",
|
||||||
|
"core-js": "^3.1.4"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|
987
pnpm-lock.yaml
987
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue