robindoc 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/ui/table/thead/index.d.ts +0 -1
- package/lib/components/ui/table/thead/index.d.ts.map +1 -1
- package/lib/components/ui/table/thead/index.js.map +1 -1
- package/lib/components/ui/table/tr/index.d.ts +1 -0
- package/lib/components/ui/table/tr/index.d.ts.map +1 -1
- package/lib/components/ui/table/tr/index.js.map +1 -1
- package/lib/core/providers/file-system.js +1 -1
- package/lib/core/providers/file-system.js.map +1 -1
- package/lib/styles.css +266 -238
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/table/thead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/table/thead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,UAAU;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAE/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/ui/table/thead/index.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\n\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/ui/table/thead/index.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\n\nexport interface TheadProps {\n className?: string;\n}\n\nexport const Thead: React.FC<React.PropsWithChildren<TheadProps>> = ({ className, children }) => {\n return <thead className={clsx(\"r-thead\", className)}>{children}</thead>;\n};\n"],"names":["Thead","className","children","React","createElement","clsx"],"mappings":"yCAOO,MAAMA,EAAuD,EAAGC,YAAWC,cACvEC,EAAAC,cAAA,QAAA,CAAOH,UAAWI,EAAK,UAAWJ,IAAaC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/table/tr/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,OAAO;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAEzD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/table/tr/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,WAAW,CAAC;AAEnB,MAAM,WAAW,OAAO;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAEzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/ui/table/tr/index.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\n\nexport interface TrProps {\n className?: string;\n}\n\nexport const Tr: React.FC<React.PropsWithChildren<TrProps>> = ({ className, children }) => {\n return <tr className={clsx(\"r-tr\", className)}>{children}</tr>;\n};\n"],"names":["Tr","className","children","React","createElement","clsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/ui/table/tr/index.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\n\nimport \"./tr.scss\";\n\nexport interface TrProps {\n className?: string;\n}\n\nexport const Tr: React.FC<React.PropsWithChildren<TrProps>> = ({ className, children }) => {\n return <tr className={clsx(\"r-tr\", className)}>{children}</tr>;\n};\n"],"names":["Tr","className","children","React","createElement","clsx"],"mappings":"yCASO,MAAMA,EAAiD,EAAGC,YAAWC,cACjEC,EAAAC,cAAA,KAAA,CAAIH,UAAWI,EAAK,OAAQJ,IAAaC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{readFile as t}from"fs/promises";import{glob as e}from"
|
|
1
|
+
import{readFile as t}from"fs/promises";import{glob as e}from"tinyglobby";import s from"path";import{BaseProvider as o}from"./base.js";import{extensionsMap as r}from"../data/contents.js";import{getFileUrl as i,normalizePathname as a}from"../utils/path-tools.js";class c extends o{type="local";sourceRoot;constructor(t=process.cwd()){super(t),this.sourceRoot=t.replaceAll("\\","/"),this.filesPromise=this.loadFiles("")}async getPageSourcePathname(t){if(this.sourceRoot.endsWith(".md")||this.sourceRoot.endsWith(".mdx"))return this.sourceRoot;const e=s.posix.join(this.sourceRoot,t).replaceAll("\\","/").replace(/\/$/,"");return super.getPageSourcePathname(t,e)}async load(e){const s=await this.getPageSourcePathname(e);if(!s)throw new Error(`Can not find file for "${e}"`);return await t(s,"utf-8")}async getFileSrc(e,o,i){if(o.match(/https?:\/\//))return o;const a=s.posix.join(process.cwd(),e?.replace(/^\//,"./")||"",o.replace(/^\//,"./")),c=s.posix.relative(process.cwd(),a),{dir:n,ext:l}=s.parse(c),p=i&&new RegExp(`^(${i?.join("|")})(/|$)`),u=p&&n.match(p);let h=o;if(u)h=`${c.replace(u[1],"")}`;else if(l in r){const e=await t(c,"base64");h=`data:${r[l]};base64,${e}`}return h}async loadFiles(t){const o=t?.replace(/^\//,""),r=(await e(["**/*.{md,mdx}","**/structure.json"],{cwd:this.sourceRoot})).reduce((t,e)=>{if(!o||o&&e.startsWith(o)){const r=s.relative(process.cwd(),(this.sourceRoot||".")+"/"+e).replace(/\\/g,"/");if(e.match(/\.mdx?$/)){const s=i("/"+e),c=a(s.substring(o?.length||0)),n=c.replace(/\/[0-9]+[-_](.)/g,"/$1");t.docs.push({origPath:r,clientPath:n,origClientPath:c})}else t.structures.push(r)}return t},{docs:[],structures:[]});return r.docs.sort((t,e)=>t.origClientPath.localeCompare(e.origClientPath)),this.filesPromise=r,r}}export{c as FileSystemProvider};
|
|
2
2
|
//# sourceMappingURL=file-system.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system.js","sources":["../../../src/core/providers/file-system.ts"],"sourcesContent":["import { readFile } from \"fs/promises\";\nimport { glob } from \"
|
|
1
|
+
{"version":3,"file":"file-system.js","sources":["../../../src/core/providers/file-system.ts"],"sourcesContent":["import { readFile } from \"fs/promises\";\nimport { glob } from \"tinyglobby\";\nimport path from \"path\";\n\nimport { type BranchFiles } from \"../types/content\";\nimport { BaseProvider } from \"./base\";\nimport { extensionsMap } from \"../data/contents\";\nimport { getFileUrl, normalizePathname } from \"../utils/path-tools\";\n\nexport class FileSystemProvider extends BaseProvider {\n readonly type = \"local\";\n\n sourceRoot: string;\n\n constructor(sourceRoot: string = process.cwd()) {\n super(sourceRoot);\n this.sourceRoot = sourceRoot.replaceAll(\"\\\\\", \"/\");\n this.filesPromise = this.loadFiles(\"\");\n }\n\n async getPageSourcePathname(uri: string) {\n if (this.sourceRoot.endsWith(\".md\") || this.sourceRoot.endsWith(\".mdx\")) {\n return this.sourceRoot;\n }\n const fullUri = path.posix.join(this.sourceRoot, uri).replaceAll(\"\\\\\", \"/\").replace(/\\/$/, \"\");\n return super.getPageSourcePathname(uri, fullUri);\n }\n\n async load(uri: string) {\n const filePath = await this.getPageSourcePathname(uri);\n if (!filePath) {\n throw new Error(`Can not find file for \"${uri}\"`);\n }\n const content = await readFile(filePath, \"utf-8\");\n return content;\n }\n\n async getFileSrc(uri: string, href: string, publicDirs?: string[]) {\n if (href.match(/https?:\\/\\//)) return href;\n\n const assetPath = path.posix.join(process.cwd(), uri?.replace(/^\\//, \"./\") || \"\", href.replace(/^\\//, \"./\"));\n const relativePath = path.posix.relative(process.cwd(), assetPath);\n const { dir, ext } = path.parse(relativePath);\n const publicDirsRule = publicDirs && new RegExp(`^(${publicDirs?.join(\"|\")})(\\/|$)`);\n const publicDirMatch = publicDirsRule && dir.match(publicDirsRule);\n\n let src = href;\n if (publicDirMatch) {\n src = `${relativePath.replace(publicDirMatch[1], \"\")}`;\n } else if (ext in extensionsMap) {\n const base64Image = await readFile(relativePath, \"base64\");\n src = `data:${extensionsMap[ext as keyof typeof extensionsMap]};base64,${base64Image}`;\n }\n return src;\n }\n\n private async loadFiles(pathname?: string) {\n const pathnameClean = pathname?.replace(/^\\//, \"\");\n const files = await glob([\"**/*.{md,mdx}\", \"**/structure.json\"], { cwd: this.sourceRoot });\n\n const fileTree = files.reduce<BranchFiles>(\n (acc, item) => {\n if (!pathnameClean || (pathnameClean && item.startsWith(pathnameClean))) {\n const origPath = path\n .relative(process.cwd(), (this.sourceRoot || \".\") + \"/\" + item)\n .replace(/\\\\/g, \"/\");\n\n if (item.match(/\\.mdx?$/)) {\n const clientUrl = getFileUrl(\"/\" + item);\n const origClientPath = normalizePathname(clientUrl.substring(pathnameClean?.length || 0));\n const clientPath = origClientPath.replace(/\\/[0-9]+[-_](.)/g, \"/$1\");\n\n acc.docs.push({\n origPath,\n clientPath,\n origClientPath,\n });\n } else {\n acc.structures.push(origPath);\n }\n }\n return acc;\n },\n { docs: [], structures: [] },\n );\n fileTree.docs.sort((a, b) => a.origClientPath.localeCompare(b.origClientPath));\n this.filesPromise = fileTree;\n return fileTree;\n }\n}\n"],"names":["FileSystemProvider","BaseProvider","type","sourceRoot","constructor","process","cwd","super","this","replaceAll","filesPromise","loadFiles","getPageSourcePathname","uri","endsWith","fullUri","path","posix","join","replace","load","filePath","Error","readFile","getFileSrc","href","publicDirs","match","assetPath","relativePath","relative","dir","ext","parse","publicDirsRule","RegExp","publicDirMatch","src","extensionsMap","base64Image","pathname","pathnameClean","fileTree","glob","reduce","acc","item","startsWith","origPath","clientUrl","getFileUrl","origClientPath","normalizePathname","substring","length","clientPath","docs","push","structures","sort","a","b","localeCompare"],"mappings":"qQASM,MAAOA,UAA2BC,EAC3BC,KAAO,QAEhBC,WAEA,WAAAC,CAAYD,EAAqBE,QAAQC,OACrCC,MAAMJ,GACNK,KAAKL,WAAaA,EAAWM,WAAW,KAAM,KAC9CD,KAAKE,aAAeF,KAAKG,UAAU,GACvC,CAEA,2BAAMC,CAAsBC,GACxB,GAAIL,KAAKL,WAAWW,SAAS,QAAUN,KAAKL,WAAWW,SAAS,QAC5D,OAAON,KAAKL,WAEhB,MAAMY,EAAUC,EAAKC,MAAMC,KAAKV,KAAKL,WAAYU,GAAKJ,WAAW,KAAM,KAAKU,QAAQ,MAAO,IAC3F,OAAOZ,MAAMK,sBAAsBC,EAAKE,EAC5C,CAEA,UAAMK,CAAKP,GACP,MAAMQ,QAAiBb,KAAKI,sBAAsBC,GAClD,IAAKQ,EACD,MAAM,IAAIC,MAAM,0BAA0BT,MAG9C,aADsBU,EAASF,EAAU,QAE7C,CAEA,gBAAMG,CAAWX,EAAaY,EAAcC,GACxC,GAAID,EAAKE,MAAM,eAAgB,OAAOF,EAEtC,MAAMG,EAAYZ,EAAKC,MAAMC,KAAKb,QAAQC,MAAOO,GAAKM,QAAQ,MAAO,OAAS,GAAIM,EAAKN,QAAQ,MAAO,OAChGU,EAAeb,EAAKC,MAAMa,SAASzB,QAAQC,MAAOsB,IAClDG,IAAEA,EAAGC,IAAEA,GAAQhB,EAAKiB,MAAMJ,GAC1BK,EAAiBR,GAAc,IAAIS,OAAO,KAAKT,GAAYR,KAAK,cAChEkB,EAAiBF,GAAkBH,EAAIJ,MAAMO,GAEnD,IAAIG,EAAMZ,EACV,GAAIW,EACAC,EAAM,GAAGR,EAAaV,QAAQiB,EAAe,GAAI,WAC9C,GAAIJ,KAAOM,EAAe,CAC7B,MAAMC,QAAoBhB,EAASM,EAAc,UACjDQ,EAAM,QAAQC,EAAcN,aAA6CO,GAC7E,CACA,OAAOF,CACX,CAEQ,eAAM1B,CAAU6B,GACpB,MAAMC,EAAgBD,GAAUrB,QAAQ,MAAO,IAGzCuB,SAFcC,EAAK,CAAC,gBAAiB,qBAAsB,CAAErC,IAAKE,KAAKL,cAEtDyC,OACnB,CAACC,EAAKC,KACF,IAAKL,GAAkBA,GAAiBK,EAAKC,WAAWN,GAAiB,CACrE,MAAMO,EAAWhC,EACZc,SAASzB,QAAQC,OAAQE,KAAKL,YAAc,KAAO,IAAM2C,GACzD3B,QAAQ,MAAO,KAEpB,GAAI2B,EAAKnB,MAAM,WAAY,CACvB,MAAMsB,EAAYC,EAAW,IAAMJ,GAC7BK,EAAiBC,EAAkBH,EAAUI,UAAUZ,GAAea,QAAU,IAChFC,EAAaJ,EAAehC,QAAQ,mBAAoB,OAE9D0B,EAAIW,KAAKC,KAAK,CACVT,WACAO,aACAJ,kBAER,MACIN,EAAIa,WAAWD,KAAKT,EAE5B,CACA,OAAOH,GAEX,CAAEW,KAAM,GAAIE,WAAY,KAI5B,OAFAhB,EAASc,KAAKG,KAAK,CAACC,EAAGC,IAAMD,EAAET,eAAeW,cAAcD,EAAEV,iBAC9D3C,KAAKE,aAAegC,EACbA,CACX"}
|
package/lib/styles.css
CHANGED
|
@@ -1,41 +1,4 @@
|
|
|
1
|
-
.r-
|
|
2
|
-
border-top: 1px solid var(--r-main-300);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.r-footer-container.r-footer-container {
|
|
6
|
-
padding: 16px 24px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.r-footer-row {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 32px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.r-footer-additional {
|
|
17
|
-
margin-top: 20px;
|
|
18
|
-
justify-content: flex-end;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.r-copyright {
|
|
22
|
-
color: var(--r-main-800);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.r-powered {
|
|
26
|
-
font-size: 14px;
|
|
27
|
-
display: block;
|
|
28
|
-
color: var(--r-main-600);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.r-powered-link {
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
text-decoration: none;
|
|
34
|
-
color: var(--r-main-950);
|
|
35
|
-
}
|
|
36
|
-
.r-powered-link:hover {
|
|
37
|
-
color: var(--r-primary-900);
|
|
38
|
-
}.r-header {
|
|
1
|
+
.r-header {
|
|
39
2
|
position: sticky;
|
|
40
3
|
background-color: var(--r-main-50);
|
|
41
4
|
top: 0;
|
|
@@ -129,6 +92,43 @@
|
|
|
129
92
|
width: 100%;
|
|
130
93
|
left: 0;
|
|
131
94
|
}
|
|
95
|
+
}.r-footer {
|
|
96
|
+
border-top: 1px solid var(--r-main-300);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.r-footer-container.r-footer-container {
|
|
100
|
+
padding: 16px 24px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.r-footer-row {
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: space-between;
|
|
106
|
+
align-items: center;
|
|
107
|
+
gap: 32px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.r-footer-additional {
|
|
111
|
+
margin-top: 20px;
|
|
112
|
+
justify-content: flex-end;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.r-copyright {
|
|
116
|
+
color: var(--r-main-800);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.r-powered {
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
display: block;
|
|
122
|
+
color: var(--r-main-600);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.r-powered-link {
|
|
126
|
+
font-weight: 600;
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
color: var(--r-main-950);
|
|
129
|
+
}
|
|
130
|
+
.r-powered-link:hover {
|
|
131
|
+
color: var(--r-primary-900);
|
|
132
132
|
}.r-root {
|
|
133
133
|
--r-header-height: 60px;
|
|
134
134
|
position: relative;
|
|
@@ -409,58 +409,6 @@
|
|
|
409
409
|
z-index: 1001;
|
|
410
410
|
}.r-keylink.keylink-to-navigation:focus {
|
|
411
411
|
margin-top: -40px;
|
|
412
|
-
}.r-article {
|
|
413
|
-
padding: 20px 0 40px;
|
|
414
|
-
grid-area: content;
|
|
415
|
-
}
|
|
416
|
-
@media screen and (width >= 1180px) {
|
|
417
|
-
.r-article {
|
|
418
|
-
padding: 32px 0 40px;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
.r-article > *:first-child {
|
|
422
|
-
margin-top: 0;
|
|
423
|
-
}
|
|
424
|
-
.r-article > *:last-child {
|
|
425
|
-
margin-bottom: 0;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.r-checkbox {
|
|
429
|
-
cursor: pointer;
|
|
430
|
-
width: 20px;
|
|
431
|
-
height: 20px;
|
|
432
|
-
margin: 4px;
|
|
433
|
-
vertical-align: middle;
|
|
434
|
-
box-sizing: border-box;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.r-label {
|
|
438
|
-
cursor: pointer;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
.r-task-ol,
|
|
442
|
-
.r-task-ul {
|
|
443
|
-
list-style: none;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.r-task-label {
|
|
447
|
-
display: block;
|
|
448
|
-
width: 100%;
|
|
449
|
-
padding-top: 2px;
|
|
450
|
-
padding-bottom: 2px;
|
|
451
|
-
box-sizing: border-box;
|
|
452
|
-
}
|
|
453
|
-
.r-task-label:hover .r-checkbox {
|
|
454
|
-
filter: brightness(0.8);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.r-task-li.r-task-li {
|
|
458
|
-
margin-block-start: 2px;
|
|
459
|
-
margin-block-end: 2px;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.r-label-text {
|
|
463
|
-
vertical-align: middle;
|
|
464
412
|
}.r-sidebar {
|
|
465
413
|
grid-area: sidebar;
|
|
466
414
|
box-sizing: border-box;
|
|
@@ -752,79 +700,58 @@
|
|
|
752
700
|
|
|
753
701
|
.r-sidebar-drop[open] > .r-sidebar-drop-btn > .r-sidebar-drop-icon {
|
|
754
702
|
transform: rotate(90deg);
|
|
755
|
-
}.r-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
gap: 4px;
|
|
759
|
-
width: 109px;
|
|
760
|
-
height: 37px;
|
|
761
|
-
padding: 2px;
|
|
762
|
-
background-color: var(--r-main-100);
|
|
763
|
-
border: 1px solid var(--r-main-200);
|
|
764
|
-
border-radius: 100px;
|
|
765
|
-
box-sizing: border-box;
|
|
703
|
+
}.r-article {
|
|
704
|
+
padding: 20px 0 40px;
|
|
705
|
+
grid-area: content;
|
|
766
706
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
top:
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
border-radius: 100px;
|
|
778
|
-
transition: left 0.2s;
|
|
779
|
-
box-sizing: border-box;
|
|
707
|
+
@media screen and (width >= 1180px) {
|
|
708
|
+
.r-article {
|
|
709
|
+
padding: 32px 0 40px;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
.r-article > *:first-child {
|
|
713
|
+
margin-top: 0;
|
|
714
|
+
}
|
|
715
|
+
.r-article > *:last-child {
|
|
716
|
+
margin-bottom: 0;
|
|
780
717
|
}
|
|
781
718
|
|
|
782
|
-
.r-
|
|
783
|
-
padding: 8px;
|
|
784
|
-
background: none;
|
|
785
|
-
border: 0;
|
|
786
|
-
border-radius: 100px;
|
|
719
|
+
.r-checkbox {
|
|
787
720
|
cursor: pointer;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
.r-theme-switcher-btn:hover {
|
|
794
|
-
color: var(--r-main-950);
|
|
795
|
-
fill: var(--r-main-600);
|
|
721
|
+
width: 20px;
|
|
722
|
+
height: 20px;
|
|
723
|
+
margin: 4px;
|
|
724
|
+
vertical-align: middle;
|
|
725
|
+
box-sizing: border-box;
|
|
796
726
|
}
|
|
797
727
|
|
|
798
|
-
.r-
|
|
799
|
-
|
|
728
|
+
.r-label {
|
|
729
|
+
cursor: pointer;
|
|
800
730
|
}
|
|
801
731
|
|
|
802
|
-
.r-
|
|
803
|
-
.r-
|
|
804
|
-
|
|
805
|
-
color: var(--r-main-950);
|
|
806
|
-
fill: var(--r-main-950);
|
|
807
|
-
pointer-events: none;
|
|
732
|
+
.r-task-ol,
|
|
733
|
+
.r-task-ul {
|
|
734
|
+
list-style: none;
|
|
808
735
|
}
|
|
809
736
|
|
|
810
|
-
.r-
|
|
811
|
-
|
|
812
|
-
|
|
737
|
+
.r-task-label {
|
|
738
|
+
display: block;
|
|
739
|
+
width: 100%;
|
|
740
|
+
padding-top: 2px;
|
|
741
|
+
padding-bottom: 2px;
|
|
742
|
+
box-sizing: border-box;
|
|
743
|
+
}
|
|
744
|
+
.r-task-label:hover .r-checkbox {
|
|
745
|
+
filter: brightness(0.8);
|
|
813
746
|
}
|
|
814
747
|
|
|
815
|
-
.r-
|
|
816
|
-
|
|
748
|
+
.r-task-li.r-task-li {
|
|
749
|
+
margin-block-start: 2px;
|
|
750
|
+
margin-block-end: 2px;
|
|
817
751
|
}
|
|
818
752
|
|
|
819
|
-
.r-
|
|
820
|
-
|
|
821
|
-
}.r-container {
|
|
822
|
-
max-width: 1180px;
|
|
823
|
-
padding-right: 12px;
|
|
824
|
-
padding-left: 12px;
|
|
825
|
-
margin-right: auto;
|
|
826
|
-
margin-left: auto;
|
|
827
|
-
box-sizing: border-box;
|
|
753
|
+
.r-label-text {
|
|
754
|
+
vertical-align: middle;
|
|
828
755
|
}.r-header-menu {
|
|
829
756
|
display: flex;
|
|
830
757
|
justify-content: flex-end;
|
|
@@ -1193,6 +1120,79 @@
|
|
|
1193
1120
|
}
|
|
1194
1121
|
.r-header-social-git:hover, .r-header-social-git:focus {
|
|
1195
1122
|
color: var(--r-main-950);
|
|
1123
|
+
}.r-container {
|
|
1124
|
+
max-width: 1180px;
|
|
1125
|
+
padding-right: 12px;
|
|
1126
|
+
padding-left: 12px;
|
|
1127
|
+
margin-right: auto;
|
|
1128
|
+
margin-left: auto;
|
|
1129
|
+
box-sizing: border-box;
|
|
1130
|
+
}.r-theme-switcher {
|
|
1131
|
+
position: relative;
|
|
1132
|
+
display: flex;
|
|
1133
|
+
gap: 4px;
|
|
1134
|
+
width: 109px;
|
|
1135
|
+
height: 37px;
|
|
1136
|
+
padding: 2px;
|
|
1137
|
+
background-color: var(--r-main-100);
|
|
1138
|
+
border: 1px solid var(--r-main-200);
|
|
1139
|
+
border-radius: 100px;
|
|
1140
|
+
box-sizing: border-box;
|
|
1141
|
+
}
|
|
1142
|
+
.r-theme-switcher::before {
|
|
1143
|
+
content: "";
|
|
1144
|
+
position: absolute;
|
|
1145
|
+
display: block;
|
|
1146
|
+
height: 32px;
|
|
1147
|
+
width: 32px;
|
|
1148
|
+
top: 2px;
|
|
1149
|
+
left: 2px;
|
|
1150
|
+
background-color: var(--r-main-50);
|
|
1151
|
+
border: 1px solid var(--r-main-200);
|
|
1152
|
+
border-radius: 100px;
|
|
1153
|
+
transition: left 0.2s;
|
|
1154
|
+
box-sizing: border-box;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.r-theme-switcher-btn {
|
|
1158
|
+
padding: 8px;
|
|
1159
|
+
background: none;
|
|
1160
|
+
border: 0;
|
|
1161
|
+
border-radius: 100px;
|
|
1162
|
+
cursor: pointer;
|
|
1163
|
+
color: var(--r-main-700);
|
|
1164
|
+
fill: transparent;
|
|
1165
|
+
z-index: 1;
|
|
1166
|
+
transition: color 0.2s 0.1s, fill 0.2s;
|
|
1167
|
+
}
|
|
1168
|
+
.r-theme-switcher-btn:hover {
|
|
1169
|
+
color: var(--r-main-950);
|
|
1170
|
+
fill: var(--r-main-600);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.r-theme-dark:not(.r-theme-system) .r-theme-switcher::before {
|
|
1174
|
+
left: 2px;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
.r-theme-dark:not(.r-theme-system) .r-theme-switcher-btn__dark,
|
|
1178
|
+
.r-theme-system .r-theme-switcher-btn__system,
|
|
1179
|
+
.r-theme-light:not(.r-theme-system) .r-theme-switcher-btn__light {
|
|
1180
|
+
color: var(--r-main-950);
|
|
1181
|
+
fill: var(--r-main-950);
|
|
1182
|
+
pointer-events: none;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.r-theme-switcher::before,
|
|
1186
|
+
.r-theme-system .r-theme-switcher::before {
|
|
1187
|
+
left: 38px;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.r-theme-light:not(.r-theme-system) .r-theme-switcher::before {
|
|
1191
|
+
left: 74px;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.r-theme-switcher-svg {
|
|
1195
|
+
display: block;
|
|
1196
1196
|
}.r-keylink {
|
|
1197
1197
|
display: block;
|
|
1198
1198
|
position: relative;
|
|
@@ -1452,47 +1452,9 @@
|
|
|
1452
1452
|
}
|
|
1453
1453
|
.r-contents-git:hover {
|
|
1454
1454
|
color: var(--r-main-900);
|
|
1455
|
-
}.r-
|
|
1456
|
-
grid-area: breadcrumbs;
|
|
1457
|
-
list-style: none;
|
|
1458
|
-
margin: 0;
|
|
1459
|
-
padding: 20px 0 0;
|
|
1460
|
-
line-height: 2;
|
|
1461
|
-
}
|
|
1462
|
-
@media screen and (width >= 768px) {
|
|
1463
|
-
.r-breadcrumbs {
|
|
1464
|
-
padding: 32px 0 0;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
.r-breadcrumb {
|
|
1469
|
-
display: inline;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
.r-breadcrumb._previous::after {
|
|
1473
|
-
content: "/";
|
|
1474
|
-
font-weight: 600;
|
|
1475
|
-
margin-inline: 8px;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
.r-breadcrumb-link {
|
|
1455
|
+
}.r-last-modified {
|
|
1479
1456
|
color: var(--r-main-700);
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1482
|
-
.r-breadcrumb-link:hover {
|
|
1483
|
-
color: var(--r-primary-800);
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
.r-breadcrumb-link,
|
|
1487
|
-
.r-breadcrumb-title {
|
|
1488
|
-
display: inline;
|
|
1489
|
-
padding: 6px 0;
|
|
1490
|
-
margin: 0;
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
.r-breadcrumb-title {
|
|
1494
|
-
color: var(--r-main-950);
|
|
1495
|
-
font-weight: 600;
|
|
1457
|
+
margin-block-start: 16px;
|
|
1496
1458
|
}.r-pagination {
|
|
1497
1459
|
grid-area: pagination;
|
|
1498
1460
|
display: grid;
|
|
@@ -1565,9 +1527,63 @@
|
|
|
1565
1527
|
|
|
1566
1528
|
.r-pagination-svg {
|
|
1567
1529
|
display: block;
|
|
1568
|
-
}.r-
|
|
1530
|
+
}.r-breadcrumbs {
|
|
1531
|
+
grid-area: breadcrumbs;
|
|
1532
|
+
list-style: none;
|
|
1533
|
+
margin: 0;
|
|
1534
|
+
padding: 20px 0 0;
|
|
1535
|
+
line-height: 2;
|
|
1536
|
+
}
|
|
1537
|
+
@media screen and (width >= 768px) {
|
|
1538
|
+
.r-breadcrumbs {
|
|
1539
|
+
padding: 32px 0 0;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.r-breadcrumb {
|
|
1544
|
+
display: inline;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
.r-breadcrumb._previous::after {
|
|
1548
|
+
content: "/";
|
|
1549
|
+
font-weight: 600;
|
|
1550
|
+
margin-inline: 8px;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
.r-breadcrumb-link {
|
|
1569
1554
|
color: var(--r-main-700);
|
|
1570
|
-
|
|
1555
|
+
text-decoration: none;
|
|
1556
|
+
}
|
|
1557
|
+
.r-breadcrumb-link:hover {
|
|
1558
|
+
color: var(--r-primary-800);
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
.r-breadcrumb-link,
|
|
1562
|
+
.r-breadcrumb-title {
|
|
1563
|
+
display: inline;
|
|
1564
|
+
padding: 6px 0;
|
|
1565
|
+
margin: 0;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
.r-breadcrumb-title {
|
|
1569
|
+
color: var(--r-main-950);
|
|
1570
|
+
font-weight: 600;
|
|
1571
|
+
}.r-backdrop {
|
|
1572
|
+
position: fixed;
|
|
1573
|
+
top: 0;
|
|
1574
|
+
right: 0;
|
|
1575
|
+
bottom: 0;
|
|
1576
|
+
left: 0;
|
|
1577
|
+
opacity: 0;
|
|
1578
|
+
visibility: hidden;
|
|
1579
|
+
pointer-events: none;
|
|
1580
|
+
z-index: 100;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
.r-backdrop._visible {
|
|
1584
|
+
opacity: 1;
|
|
1585
|
+
visibility: visible;
|
|
1586
|
+
pointer-events: all;
|
|
1571
1587
|
}.r-git-logo {
|
|
1572
1588
|
display: block;
|
|
1573
1589
|
}.r-external-mark {
|
|
@@ -1601,22 +1617,6 @@
|
|
|
1601
1617
|
background-color: currentColor;
|
|
1602
1618
|
border-radius: 0 0 0 4px;
|
|
1603
1619
|
box-sizing: border-box;
|
|
1604
|
-
}.r-backdrop {
|
|
1605
|
-
position: fixed;
|
|
1606
|
-
top: 0;
|
|
1607
|
-
right: 0;
|
|
1608
|
-
bottom: 0;
|
|
1609
|
-
left: 0;
|
|
1610
|
-
opacity: 0;
|
|
1611
|
-
visibility: hidden;
|
|
1612
|
-
pointer-events: none;
|
|
1613
|
-
z-index: 100;
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
.r-backdrop._visible {
|
|
1617
|
-
opacity: 1;
|
|
1618
|
-
visibility: visible;
|
|
1619
|
-
pointer-events: all;
|
|
1620
1620
|
}.r-kbd-container {
|
|
1621
1621
|
display: flex;
|
|
1622
1622
|
gap: 4px;
|
|
@@ -1712,15 +1712,16 @@
|
|
|
1712
1712
|
scrollbar-color: var(--r-main-200) transparent;
|
|
1713
1713
|
box-sizing: border-box;
|
|
1714
1714
|
}.r-blockquote {
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
border-left:
|
|
1715
|
+
padding: 4px 12px 4px 20px;
|
|
1716
|
+
border: 4px solid var(--r-main-100);
|
|
1717
|
+
border-left: 4px solid var(--r-main-600);
|
|
1718
1718
|
border-top-right-radius: 2px;
|
|
1719
1719
|
border-bottom-right-radius: 2px;
|
|
1720
1720
|
font: inherit;
|
|
1721
1721
|
margin-inline: 0;
|
|
1722
1722
|
margin-block-start: 1em;
|
|
1723
1723
|
margin-block-end: 1em;
|
|
1724
|
+
border-radius: 8px;
|
|
1724
1725
|
}
|
|
1725
1726
|
|
|
1726
1727
|
.r-blockquote-title {
|
|
@@ -1767,19 +1768,6 @@
|
|
|
1767
1768
|
}
|
|
1768
1769
|
.r-blockquote-caution .r-blockquote-title {
|
|
1769
1770
|
color: var(--r-caution);
|
|
1770
|
-
}.r-code-block {
|
|
1771
|
-
font-family: var(--monospace-font, monospace, monospace);
|
|
1772
|
-
font-size: 16px;
|
|
1773
|
-
line-height: 1.33;
|
|
1774
|
-
border-radius: 6px;
|
|
1775
|
-
padding: 16px 20px;
|
|
1776
|
-
margin: 0;
|
|
1777
|
-
color: var(--r-primary-800);
|
|
1778
|
-
background-color: var(--r-main-50);
|
|
1779
|
-
overflow-x: auto;
|
|
1780
|
-
scrollbar-width: thin;
|
|
1781
|
-
scrollbar-color: var(--r-main-200) transparent;
|
|
1782
|
-
box-sizing: border-box;
|
|
1783
1771
|
}.r-code-span {
|
|
1784
1772
|
font-family: var(--monospace-font, monospace, monospace);
|
|
1785
1773
|
background-color: var(--r-main-100);
|
|
@@ -1794,6 +1782,19 @@
|
|
|
1794
1782
|
|
|
1795
1783
|
.r-code-span + .r-content-link-external {
|
|
1796
1784
|
margin-left: -12px;
|
|
1785
|
+
}.r-code-block {
|
|
1786
|
+
font-family: var(--monospace-font, monospace, monospace);
|
|
1787
|
+
font-size: 16px;
|
|
1788
|
+
line-height: 1.33;
|
|
1789
|
+
border-radius: 6px;
|
|
1790
|
+
padding: 16px 20px;
|
|
1791
|
+
margin: 0;
|
|
1792
|
+
color: var(--r-primary-800);
|
|
1793
|
+
background-color: var(--r-main-50);
|
|
1794
|
+
overflow-x: auto;
|
|
1795
|
+
scrollbar-width: thin;
|
|
1796
|
+
scrollbar-color: var(--r-main-200) transparent;
|
|
1797
|
+
box-sizing: border-box;
|
|
1797
1798
|
}.r-h1 {
|
|
1798
1799
|
font-size: 32px;
|
|
1799
1800
|
line-height: 1.4;
|
|
@@ -2022,43 +2023,72 @@
|
|
|
2022
2023
|
margin-block-start: 1em;
|
|
2023
2024
|
margin-block-end: 1em;
|
|
2024
2025
|
}.r-table {
|
|
2026
|
+
position: relative;
|
|
2025
2027
|
min-width: 100%;
|
|
2026
2028
|
text-align: left;
|
|
2027
2029
|
border-collapse: collapse;
|
|
2028
2030
|
box-sizing: border-box;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
border-
|
|
2031
|
+
background-color: var(--r-main-50);
|
|
2032
|
+
margin: 4px;
|
|
2033
|
+
border-radius: 6px;
|
|
2034
|
+
}
|
|
2035
|
+
.r-table::before {
|
|
2036
|
+
content: "";
|
|
2037
|
+
inset: -4px;
|
|
2038
|
+
position: absolute;
|
|
2039
|
+
background-color: var(--r-main-100);
|
|
2040
|
+
z-index: -1;
|
|
2041
|
+
border-radius: 8px;
|
|
2042
|
+
border: 1px solid var(--r-main-200);
|
|
2043
|
+
}.r-th {
|
|
2044
|
+
padding: 8px 12px;
|
|
2032
2045
|
border-collapse: collapse;
|
|
2046
|
+
background-color: var(--r-main-100);
|
|
2047
|
+
border-bottom: 1px solid var(--r-main-200);
|
|
2048
|
+
}
|
|
2049
|
+
.r-thead .r-th:first-child {
|
|
2050
|
+
border-top-left-radius: 6px;
|
|
2051
|
+
}
|
|
2052
|
+
.r-thead .r-th:last-child {
|
|
2053
|
+
border-top-right-radius: 6px;
|
|
2054
|
+
}
|
|
2055
|
+
.r-th:not(:last-child) {
|
|
2056
|
+
border-right: 1px solid var(--r-main-200);
|
|
2033
2057
|
}
|
|
2034
2058
|
|
|
2035
|
-
.r-
|
|
2059
|
+
.r-th_left {
|
|
2036
2060
|
text-align: left;
|
|
2037
2061
|
}
|
|
2038
2062
|
|
|
2039
|
-
.r-
|
|
2063
|
+
.r-th_center {
|
|
2040
2064
|
text-align: center;
|
|
2041
2065
|
}
|
|
2042
2066
|
|
|
2043
|
-
.r-
|
|
2067
|
+
.r-th_right {
|
|
2044
2068
|
text-align: right;
|
|
2045
|
-
}.r-
|
|
2046
|
-
padding:
|
|
2047
|
-
border-top: 1px solid var(--r-main-500);
|
|
2048
|
-
border-bottom: 1px solid var(--r-main-500);
|
|
2069
|
+
}.r-td {
|
|
2070
|
+
padding: 8px 12px;
|
|
2049
2071
|
border-collapse: collapse;
|
|
2050
2072
|
}
|
|
2073
|
+
.r-td:not(:last-child) {
|
|
2074
|
+
border-right: 1px solid var(--r-main-200);
|
|
2075
|
+
}
|
|
2051
2076
|
|
|
2052
|
-
.r-
|
|
2077
|
+
.r-td_left {
|
|
2053
2078
|
text-align: left;
|
|
2054
2079
|
}
|
|
2055
2080
|
|
|
2056
|
-
.r-
|
|
2081
|
+
.r-td_center {
|
|
2057
2082
|
text-align: center;
|
|
2058
2083
|
}
|
|
2059
2084
|
|
|
2060
|
-
.r-
|
|
2085
|
+
.r-td_right {
|
|
2061
2086
|
text-align: right;
|
|
2087
|
+
}.r-tr {
|
|
2088
|
+
border-collapse: collapse;
|
|
2089
|
+
}
|
|
2090
|
+
.r-tr:not(:first-child) {
|
|
2091
|
+
border-top: 1px solid var(--r-main-200);
|
|
2062
2092
|
}.r-task-li.r-task-li {
|
|
2063
2093
|
margin-block-start: 2px;
|
|
2064
2094
|
margin-block-end: 2px;
|
|
@@ -2088,8 +2118,6 @@
|
|
|
2088
2118
|
|
|
2089
2119
|
.r-task-label-text {
|
|
2090
2120
|
vertical-align: middle;
|
|
2091
|
-
}.r-thead {
|
|
2092
|
-
background-color: var(--r-main-100);
|
|
2093
2121
|
}.r-task-ol {
|
|
2094
2122
|
list-style: none;
|
|
2095
2123
|
}.r-task-ul {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robindoc",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "Robindoc is a framework for automatically creating documentation websites based on markdown files, built on React.js Server Components",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"clsx": "2.1.1",
|
|
37
37
|
"dot-prop": "10.1.0",
|
|
38
38
|
"github-slugger": "2.0.0",
|
|
39
|
-
"
|
|
39
|
+
"tinyglobby": "0.2.15",
|
|
40
40
|
"gray-matter": "4.0.3",
|
|
41
41
|
"html-react-parser": "5.2.11",
|
|
42
42
|
"marked": "17.0.1",
|