File tree 6 files changed +1564
-70
lines changed
6 files changed +1564
-70
lines changed Original file line number Diff line number Diff line change 1
- # Linear Fox Specified gitignore
2
-
3
- # all
4
1
/node_modules
5
2
/.next
6
3
/.out
Original file line number Diff line number Diff line change 1
- /** @type {import('next').NextConfig } */
2
-
3
1
const withNextra = require ( "nextra" ) ( {
4
- theme : "nextra-theme-docs" ,
5
- themeConfig : "./theme.config.tsx" ,
6
- staticImage : true ,
7
- flexsearch : {
2
+ theme : "nextra-theme-docs" ,
3
+ themeConfig : "./theme.config.tsx" ,
4
+ staticImage : true ,
5
+ flexsearch : {
8
6
codeblocks : false ,
9
- } ,
10
- defaultShowCopyCode : true ,
7
+ } ,
8
+ defaultShowCopyCode : true ,
11
9
} ) ;
12
-
10
+
13
11
module . exports = withNextra ( {
14
- reactStrictMode : true ,
15
- swcMinify : true ,
16
- } ) ;
12
+ reactStrictMode : true ,
13
+ swcMinify : true ,
14
+ webpack : ( config , { isServer } ) => {
15
+ if ( ! isServer ) {
16
+ config . resolve . fallback = { fs : false } ;
17
+ }
18
+ config . module . rules . push ( {
19
+ test : / \. y a ? m l $ / ,
20
+ use : 'yaml-loader' ,
21
+ } ) ;
22
+ return config ;
23
+ } ,
24
+ } ) ;
Original file line number Diff line number Diff line change 26
26
"react" : " ^18.2.0" ,
27
27
"react-dom" : " ^18.2.0" ,
28
28
"urlcat" : " ^3.0.0" ,
29
- "clsx" : " ^1.2.1"
29
+ "clsx" : " ^1.2.1" ,
30
+ "swagger-ui-react" : " ^5.11.9" ,
31
+ "yaml-loader" : " ^0.8.1"
30
32
},
31
33
"devDependencies" : {
32
34
"@types/node" : " 18.11.10" ,
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import SwaggerUI from 'swagger-ui-react' ;
3
+ import 'swagger-ui-react/swagger-ui.css' ;
4
+ import apiSpec from 'pages/openapi/linearfox-openapi.yml' ;
5
+
6
+ const ApiDocs = ( ) => {
7
+ return (
8
+ < div >
9
+ < SwaggerUI spec = { apiSpec } />
10
+ </ div >
11
+ ) ;
12
+ } ;
13
+
14
+ export default ApiDocs ;
Original file line number Diff line number Diff line change 1
- openapi : 3.0.3
1
+ openapi : 3.1.0
2
2
info :
3
3
title : Linear Fox OpenAPI
4
4
description : >
@@ -20,10 +20,10 @@ externalDocs:
20
20
servers :
21
21
- url : https://api.linearfox.com
22
22
description : Main API (Account)
23
- - url : https://ai.api.example .com
23
+ - url : https://ai.api.linearfox .com
24
24
description : AI - API
25
- - url : https://research.api.example .com
26
- description : Research API
25
+ - url : https://research.api.linearfox .com
26
+ description : Research API (Test)
27
27
components :
28
28
securitySchemes :
29
29
bearerAuth :
You can’t perform that action at this time.
0 commit comments