This repository was archived by the owner on Jul 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +1564
-70
lines changed
Expand file tree Collapse file tree 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
41/node_modules
52/.next
63/.out
Original file line number Diff line number Diff line change 1- /** @type {import('next').NextConfig } */
2-
31const 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 : {
86 codeblocks : false ,
9- } ,
10- defaultShowCopyCode : true ,
7+ } ,
8+ defaultShowCopyCode : true ,
119} ) ;
12-
10+
1311module . 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 2626 "react" : " ^18.2.0" ,
2727 "react-dom" : " ^18.2.0" ,
2828 "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"
3032 },
3133 "devDependencies" : {
3234 "@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
22info :
33 title : Linear Fox OpenAPI
44 description : >
@@ -20,10 +20,10 @@ externalDocs:
2020servers :
2121 - url : https://api.linearfox.com
2222 description : Main API (Account)
23- - url : https://ai.api.example .com
23+ - url : https://ai.api.linearfox .com
2424 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)
2727components :
2828 securitySchemes :
2929 bearerAuth :
You can’t perform that action at this time.
0 commit comments