Skip to content

Commit

Permalink
doc: swagger integration in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Apr 10, 2024
1 parent bc39bd7 commit 6e0a98f
Show file tree
Hide file tree
Showing 13 changed files with 4,052 additions and 375 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- 'manual/**'
- '.github/workflows/doc.yml'
- 'swagger.json'
branches:
- main
workflow_dispatch:
Expand All @@ -22,6 +23,7 @@ jobs:
- name: Generate documentation website
id: doc
run: |
cp ./swagger.json ./manual/static/swagger/
cd manual
npm ci
npm run build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import lunr from "/home/runner/work/izanami/izanami/manual/node_modules/lunr/lunr.js";
require("/home/runner/work/izanami/izanami/manual/node_modules/lunr-languages/lunr.stemmer.support.js")(lunr);
import lunr from "/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/lunr/lunr.js";
require("/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/lunr-languages/lunr.stemmer.support.js")(lunr);
require("@easyops-cn/docusaurus-search-local/dist/client/shared/lunrLanguageZh").lunrLanguageZh(lunr);
require("/home/runner/work/izanami/izanami/manual/node_modules/lunr-languages/lunr.multi.js")(lunr);
require("/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/lunr-languages/lunr.multi.js")(lunr);
export const language = ["en","zh"];
export const removeDefaultStopWordFilter = false;
export const removeDefaultStemmer = false;
export { default as Mark } from "/home/runner/work/izanami/izanami/manual/node_modules/mark.js/dist/mark.js"
export const searchIndexUrl = "search-index{dir}.json?_=6efffdb2";
export { default as Mark } from "/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/mark.js/dist/mark.js"
export const searchIndexUrl = "search-index{dir}.json?_=84859445";
export const searchResultLimits = 8;
export const searchResultContextMaxLength = 50;
export const explicitSearchResultPath = true;
Expand Down
8 changes: 4 additions & 4 deletions manual/.docusaurus/client-modules.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default [
require("/home/runner/work/izanami/izanami/manual/node_modules/infima/dist/css/default/default.css"),
require("/home/runner/work/izanami/izanami/manual/node_modules/@docusaurus/theme-classic/lib/prism-include-languages"),
require("/home/runner/work/izanami/izanami/manual/node_modules/@docusaurus/theme-classic/lib/nprogress"),
require("/home/runner/work/izanami/izanami/manual/src/css/custom.css"),
require("/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/infima/dist/css/default/default.css"),
require("/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/@docusaurus/theme-classic/lib/prism-include-languages"),
require("/Users/77199M/workspace/oss/izanami-v2/manual/node_modules/@docusaurus/theme-classic/lib/nprogress"),
require("/Users/77199M/workspace/oss/izanami-v2/manual/src/css/custom.css"),
];
162 changes: 85 additions & 77 deletions manual/.docusaurus/registry.js

Large diffs are not rendered by default.

43 changes: 39 additions & 4 deletions manual/.docusaurus/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,49 @@ import React from 'react';
import ComponentCreator from '@docusaurus/ComponentCreator';

export default [
{
path: '/izanami/__docusaurus/debug',
component: ComponentCreator('/izanami/__docusaurus/debug', 'ab4'),
exact: true
},
{
path: '/izanami/__docusaurus/debug/config',
component: ComponentCreator('/izanami/__docusaurus/debug/config', '71e'),
exact: true
},
{
path: '/izanami/__docusaurus/debug/content',
component: ComponentCreator('/izanami/__docusaurus/debug/content', '7bd'),
exact: true
},
{
path: '/izanami/__docusaurus/debug/globalData',
component: ComponentCreator('/izanami/__docusaurus/debug/globalData', '1a4'),
exact: true
},
{
path: '/izanami/__docusaurus/debug/metadata',
component: ComponentCreator('/izanami/__docusaurus/debug/metadata', 'd94'),
exact: true
},
{
path: '/izanami/__docusaurus/debug/registry',
component: ComponentCreator('/izanami/__docusaurus/debug/registry', '49c'),
exact: true
},
{
path: '/izanami/__docusaurus/debug/routes',
component: ComponentCreator('/izanami/__docusaurus/debug/routes', '108'),
exact: true
},
{
path: '/izanami/search',
component: ComponentCreator('/izanami/search', '67a'),
component: ComponentCreator('/izanami/search', 'b82'),
exact: true
},
{
path: '/izanami/docs',
component: ComponentCreator('/izanami/docs', '828'),
component: ComponentCreator('/izanami/docs', 'fde'),
routes: [
{
path: '/izanami/docs',
Expand Down Expand Up @@ -165,7 +200,7 @@ export default [
},
{
path: '/izanami/v1',
component: ComponentCreator('/izanami/v1', '433'),
component: ComponentCreator('/izanami/v1', 'b1a'),
routes: [
{
path: '/izanami/v1',
Expand Down Expand Up @@ -429,7 +464,7 @@ export default [
},
{
path: '/izanami/',
component: ComponentCreator('/izanami/', 'a38'),
component: ComponentCreator('/izanami/', '89a'),
exact: true
},
{
Expand Down
Loading

0 comments on commit 6e0a98f

Please sign in to comment.