robindoc 0.0.0-experimental-e502245 → 0.0.0-experimental-dc26dca
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/elements/article/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGxD,OAAO,EAAE,KAAK,cAAc,EAAE,4BAAsC;AAGpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM;;;CAmB5C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAEnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,YAEjD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM;;;;;CAmBxC,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,OAAO,KAAK,GAAG,KAAK,EAAE,EACtB,WAAW;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,YAa/E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,iBAAiB,MAAM,EAAE,QAAQ,SAAS;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/elements/article/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGxD,OAAO,EAAE,KAAK,cAAc,EAAE,4BAAsC;AAGpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM;;;CAmB5C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAEnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,YAEjD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM;;;;;CAmBxC,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,OAAO,KAAK,GAAG,KAAK,EAAE,EACtB,WAAW;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,YAa/E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,iBAAiB,MAAM,EAAE,QAAQ,SAAS;;;CAyBtF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO;;;;;;;;;;;UAoBjC,cAAc;;;;CAKrD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"github-slugger";import e from"gray-matter";import{lexer as r}from"marked";import{join as n,dirname as o}from"path";import{parseTokenText as s}from"../../../core/utils/content-tools.js";const a=n=>{const{content:o}=e(n),a=r(o.trim()),i=new t,c=a.reduce((t,e)=>{if("heading"===e.type&&(2===e.depth||3===e.depth)){const r=s(e);t.push({title:r,id:i.slug(r),token:e,nested:3===e.depth})}return t},[]);return{tokens:a,headings:c}},i=t=>t.toLowerCase().replace(/\W/g,"_").replace(/_+/g,"_"),c=t=>/^[A-Z][a-zA-Z0-9]+$/.test(t),g=t=>{let e={},r=t;const n=t.match(/[a-z]+=("[^"]+"|'[^']+'|[^ ]+)|[a-z]+/g);if(Array.isArray(n)){const[t,...o]=n;r=t,e=o.reduce((t,e)=>{const[r,...n]=e.split("=");return t[r]=!n||(0===n.length||n.join("=").replace(/(^["']|['"]$)/g,"")),t},{})}return{lang:r,configuration:e}},l=(t,e)=>{if(Array.isArray(t)||!Object.keys(e).length)return!1;if("code"===t.type){const{lang:r,configuration:n}=g(t.lang);if(e["string"==typeof n.tab?i(n.tab):r]||!n.switcher)return!0}return"space"!==t.type&&"code"!==t.type},
|
|
1
|
+
import t from"github-slugger";import e from"gray-matter";import{lexer as r}from"marked";import{join as n,dirname as o}from"path";import{parseTokenText as s}from"../../../core/utils/content-tools.js";const a=n=>{const{content:o}=e(n),a=r(o.trim()),i=new t,c=a.reduce((t,e)=>{if("heading"===e.type&&(2===e.depth||3===e.depth)){const r=s(e);t.push({title:r,id:i.slug(r),token:e,nested:3===e.depth})}return t},[]);return{tokens:a,headings:c}},i=t=>t.toLowerCase().replace(/\W/g,"_").replace(/_+/g,"_"),c=t=>/^[A-Z][a-zA-Z0-9]+$/.test(t),g=t=>{let e={},r=t;const n=t.match(/[a-z]+=("[^"]+"|'[^']+'|[^ ]+)|[a-z]+/g);if(Array.isArray(n)){const[t,...o]=n;r=t,e=o.reduce((t,e)=>{const[r,...n]=e.split("=");return t[r]=!n||(0===n.length||n.join("=").replace(/(^["']|['"]$)/g,"")),t},{})}return{lang:r,configuration:e}},l=(t,e)=>{if(Array.isArray(t)||!Object.keys(e).length)return!1;if("code"===t.type){const{lang:r,configuration:n}=g(t.lang);if(e["string"==typeof n.tab?i(n.tab):r]||!n.switcher)return!0}return"space"!==t.type&&"code"!==t.type},h=(t,e,r)=>{let s=t;const a=/^(https?:\/\/|\/)/.test(t);if(s.startsWith("#"))return{href:t,external:!1};if(r&&!a){const a=r.find(t=>t.clientPath===e);if(!a)throw new Error("Can not find requested page in parsed data");{const[,e,i]=t.match(/^([^?#]+)([?#].+)?/)||[t,t],c=n(o(a.origPath),e).replace(/\\/g,"/"),g=r.find(t=>t.origPath===c);g?s=g.clientPath+(i||""):(console.error(`Can not find link to internal file: "${t}"`),s="")}}return{href:s,external:a}},p=t=>{const e=t.raw.match(/^> \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\n/);if(e){const[r,n]=e,o={...t,raw:t.raw.substring(r.length)};if(o.tokens){const t={...o.tokens[0]};if(t.raw=t.raw.substring(n.length+4),t.text=t.text.substring(n.length+4),t.tokens[0]){const e={...t.tokens[0]};e.raw=e.raw.substring(n.length+4),e.text=e.text.substring(n.length+4),t.tokens[0]=e}o.tokens[0]=t}return{token:o,type:n.toLowerCase()}}return{token:t,type:null}};export{i as formatId,h as formatLinkHref,l as isNewCodeToken,p as parseBlockqoute,g as parseCodeLang,a as parseMarkdown,c as validateComponentName};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../src/components/elements/article/utils.ts"],"sourcesContent":["import GithubSlugger from \"github-slugger\";\nimport matter from \"gray-matter\";\nimport { lexer, type Tokens, type Token } from \"marked\";\nimport { dirname, join } from \"path\";\n\nimport { type BlockquoteType } from \"@src/components/ui/blockquote\";\nimport { parseTokenText } from \"@src/core/utils/content-tools\";\n\nimport { type PagesType } from \"./types\";\n\nexport type AnchorData = {\n title: string;\n id: string;\n nested: boolean;\n token: Token;\n};\n\nexport const parseMarkdown = (content: string) => {\n const { content: matterContent } = matter(content);\n const tokens = lexer(matterContent.trim());\n\n const slugger = new GithubSlugger();\n const headings = tokens.reduce<AnchorData[]>((acc, token) => {\n if (token.type === \"heading\" && (token.depth === 2 || token.depth === 3)) {\n const title = parseTokenText(token);\n acc.push({\n title,\n id: slugger.slug(title),\n token,\n nested: token.depth === 3,\n });\n }\n return acc;\n }, []);\n\n return { tokens, headings };\n};\n\nexport const formatId = (raw: string) => {\n return raw.toLowerCase().replace(/\\W/g, \"_\").replace(/_+/g, \"_\");\n};\n\nexport const validateComponentName = (name: string) => {\n return /^[A-Z][a-zA-Z0-9]+$/.test(name);\n};\n\nexport const parseCodeLang = (raw: string) => {\n let configuration: { [key: string]: string | boolean } = {};\n let lang: string = raw;\n\n const match = raw.match(/[a-z]+=(\"[^\"]+\"|'[^']+'|[^ ]+)|[a-z]+/g);\n if (Array.isArray(match)) {\n const [language, ...modifiers] = match as string[];\n lang = language;\n configuration = modifiers.reduce<{ [key: string]: string | boolean }>((acc, cur) => {\n const [key, ...value] = cur.split(\"=\");\n if (value) {\n acc[key] = value.length === 0 ? true : value.join(\"=\").replace(/(^[\"']|['\"]$)/g, \"\");\n } else {\n acc[key] = true;\n }\n return acc;\n }, {});\n }\n return { lang, configuration };\n};\n\nexport const isNewCodeToken = (\n token: Token | Token[],\n codeQueue: { [lang: string]: { element: React.ReactNode; tabName: string } },\n) => {\n if (Array.isArray(token) || !Object.keys(codeQueue).length) return false;\n\n if (token.type === \"code\") {\n const { lang, configuration } = parseCodeLang(token.lang);\n const tabKey = typeof configuration.tab === \"string\" ? formatId(configuration.tab) : lang;\n if (codeQueue[tabKey] || !configuration.switcher) return true;\n }\n\n if (token.type !== \"space\" && token.type !== \"code\") return true;\n\n return false;\n};\n\nexport const formatLinkHref = (href: string, currentPathname: string, pages?: PagesType) => {\n let finalHref: string = href;\n const external = /^(https?:\\/\\/|\\/)/.test(href);\n\n if (pages && !external) {\n const currentPageData = pages.find((item) => item.clientPath === currentPathname);\n\n if (currentPageData) {\n const [, linkMain, linkAdditional] = href.match(/^([^?#]+)([?#].+)?/) || [href, href];\n const linkOrigPath = join(dirname(currentPageData.origPath), linkMain).replace(/\\\\/g, \"/\");\n const linkData = pages.find((item) => item.origPath === linkOrigPath);\n\n if (linkData) {\n finalHref = linkData.clientPath + (linkAdditional || \"\");\n } else {\n console.error(`Can not find link to internal file: \"${href}\"`);\n finalHref = \"\";\n }\n } else {\n throw new Error(\"Can not find requested page in parsed data\");\n }\n }\n return { href: finalHref, external };\n};\n\nexport const parseBlockqoute = (token: Tokens.Blockquote | Tokens.Generic) => {\n const typeMatch = token.raw.match(/^> \\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]\\n/);\n if (typeMatch) {\n const [raw, type] = typeMatch;\n const newToken = { ...token, raw: token.raw.substring(raw.length) };\n if (newToken.tokens) {\n const firstToken = { ...newToken.tokens[0] } as Tokens.Paragraph;\n firstToken.raw = firstToken.raw.substring(type.length + 4);\n firstToken.text = firstToken.text.substring(type.length + 4);\n if (firstToken.tokens[0]) {\n const firstSubtoken = { ...firstToken.tokens[0] } as Tokens.Paragraph;\n firstSubtoken.raw = firstSubtoken.raw.substring(type.length + 4);\n firstSubtoken.text = firstSubtoken.text.substring(type.length + 4);\n firstToken.tokens[0] = firstSubtoken;\n }\n newToken.tokens[0] = firstToken;\n }\n\n return {\n token: newToken,\n type: type.toLowerCase() as BlockquoteType,\n };\n }\n\n return { token, type: null };\n};\n"],"names":["parseMarkdown","content","matterContent","matter","tokens","lexer","trim","slugger","GithubSlugger","headings","reduce","acc","token","type","depth","title","parseTokenText","push","id","slug","nested","formatId","raw","toLowerCase","replace","validateComponentName","name","test","parseCodeLang","configuration","lang","match","Array","isArray","language","modifiers","cur","key","value","split","length","join","isNewCodeToken","codeQueue","Object","keys","tab","switcher","formatLinkHref","href","currentPathname","pages","finalHref","external","currentPageData","find","item","clientPath","Error","linkMain","linkAdditional","linkOrigPath","dirname","origPath","linkData","console","error","parseBlockqoute","typeMatch","newToken","substring","firstToken","text","firstSubtoken"],"mappings":"uMAiBO,MAAMA,EAAiBC,IAC1B,MAAQA,QAASC,GAAkBC,EAAOF,GACpCG,EAASC,EAAMH,EAAcI,QAE7BC,EAAU,IAAIC,EACdC,EAAWL,EAAOM,OAAqB,CAACC,EAAKC,KAC/C,GAAmB,YAAfA,EAAMC,OAAuC,IAAhBD,EAAME,OAA+B,IAAhBF,EAAME,OAAc,CACtE,MAAMC,EAAQC,EAAeJ,GAC7BD,EAAIM,KAAK,CACLF,QACAG,GAAIX,EAAQY,KAAKJ,GACjBH,QACAQ,OAAwB,IAAhBR,EAAME,OAEtB,CACA,OAAOH,GACR,IAEH,MAAO,CAAEP,SAAQK,aAGRY,EAAYC,GACdA,EAAIC,cAAcC,QAAQ,MAAO,KAAKA,QAAQ,MAAO,KAGnDC,EAAyBC,GAC3B,sBAAsBC,KAAKD,GAGzBE,EAAiBN,IAC1B,IAAIO,EAAqD,CAAA,EACrDC,EAAeR,EAEnB,MAAMS,EAAQT,EAAIS,MAAM,0CACxB,GAAIC,MAAMC,QAAQF,GAAQ,CACtB,MAAOG,KAAaC,GAAaJ,EACjCD,EAAOI,EACPL,EAAgBM,EAAUzB,OAA4C,CAACC,EAAKyB,KACxE,MAAOC,KAAQC,GAASF,EAAIG,MAAM,KAMlC,OAJI5B,EAAI0B,IADJC,IAC4B,IAAjBA,EAAME,QAAsBF,EAAMG,KAAK,KAAKjB,QAAQ,iBAAkB,KAI9Eb,GACR,CAAA,EACP,CACA,MAAO,CAAEmB,OAAMD,kBAGNa,EAAiB,CAC1B9B,EACA+B,KAEA,GAAIX,MAAMC,QAAQrB,KAAWgC,OAAOC,KAAKF,GAAWH,OAAQ,OAAO,EAEnE,GAAmB,SAAf5B,EAAMC,KAAiB,CACvB,MAAMiB,KAAEA,EAAID,cAAEA,GAAkBD,EAAchB,EAAMkB,MAEpD,GAAIa,EADwC,iBAAtBd,EAAciB,IAAmBzB,EAASQ,EAAciB,KAAOhB,KAC3DD,EAAckB,SAAU,OAAO,CAC7D,CAEA,MAAmB,UAAfnC,EAAMC,MAAmC,SAAfD,EAAMC,MAK3BmC,EAAiB,CAACC,EAAcC,EAAyBC,KAClE,IAAIC,EAAoBH,EACxB,MAAMI,EAAW,oBAAoB1B,KAAKsB,GAE1C,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../src/components/elements/article/utils.ts"],"sourcesContent":["import GithubSlugger from \"github-slugger\";\nimport matter from \"gray-matter\";\nimport { lexer, type Tokens, type Token } from \"marked\";\nimport { dirname, join } from \"path\";\n\nimport { type BlockquoteType } from \"@src/components/ui/blockquote\";\nimport { parseTokenText } from \"@src/core/utils/content-tools\";\n\nimport { type PagesType } from \"./types\";\n\nexport type AnchorData = {\n title: string;\n id: string;\n nested: boolean;\n token: Token;\n};\n\nexport const parseMarkdown = (content: string) => {\n const { content: matterContent } = matter(content);\n const tokens = lexer(matterContent.trim());\n\n const slugger = new GithubSlugger();\n const headings = tokens.reduce<AnchorData[]>((acc, token) => {\n if (token.type === \"heading\" && (token.depth === 2 || token.depth === 3)) {\n const title = parseTokenText(token);\n acc.push({\n title,\n id: slugger.slug(title),\n token,\n nested: token.depth === 3,\n });\n }\n return acc;\n }, []);\n\n return { tokens, headings };\n};\n\nexport const formatId = (raw: string) => {\n return raw.toLowerCase().replace(/\\W/g, \"_\").replace(/_+/g, \"_\");\n};\n\nexport const validateComponentName = (name: string) => {\n return /^[A-Z][a-zA-Z0-9]+$/.test(name);\n};\n\nexport const parseCodeLang = (raw: string) => {\n let configuration: { [key: string]: string | boolean } = {};\n let lang: string = raw;\n\n const match = raw.match(/[a-z]+=(\"[^\"]+\"|'[^']+'|[^ ]+)|[a-z]+/g);\n if (Array.isArray(match)) {\n const [language, ...modifiers] = match as string[];\n lang = language;\n configuration = modifiers.reduce<{ [key: string]: string | boolean }>((acc, cur) => {\n const [key, ...value] = cur.split(\"=\");\n if (value) {\n acc[key] = value.length === 0 ? true : value.join(\"=\").replace(/(^[\"']|['\"]$)/g, \"\");\n } else {\n acc[key] = true;\n }\n return acc;\n }, {});\n }\n return { lang, configuration };\n};\n\nexport const isNewCodeToken = (\n token: Token | Token[],\n codeQueue: { [lang: string]: { element: React.ReactNode; tabName: string } },\n) => {\n if (Array.isArray(token) || !Object.keys(codeQueue).length) return false;\n\n if (token.type === \"code\") {\n const { lang, configuration } = parseCodeLang(token.lang);\n const tabKey = typeof configuration.tab === \"string\" ? formatId(configuration.tab) : lang;\n if (codeQueue[tabKey] || !configuration.switcher) return true;\n }\n\n if (token.type !== \"space\" && token.type !== \"code\") return true;\n\n return false;\n};\n\nexport const formatLinkHref = (href: string, currentPathname: string, pages?: PagesType) => {\n let finalHref: string = href;\n const external = /^(https?:\\/\\/|\\/)/.test(href);\n\n if (finalHref.startsWith(\"#\")) return { href, external: false };\n\n if (pages && !external) {\n const currentPageData = pages.find((item) => item.clientPath === currentPathname);\n\n if (currentPageData) {\n const [, linkMain, linkAdditional] = href.match(/^([^?#]+)([?#].+)?/) || [href, href];\n const linkOrigPath = join(dirname(currentPageData.origPath), linkMain).replace(/\\\\/g, \"/\");\n const linkData = pages.find((item) => item.origPath === linkOrigPath);\n\n if (linkData) {\n finalHref = linkData.clientPath + (linkAdditional || \"\");\n } else {\n console.error(`Can not find link to internal file: \"${href}\"`);\n finalHref = \"\";\n }\n } else {\n throw new Error(\"Can not find requested page in parsed data\");\n }\n }\n return { href: finalHref, external };\n};\n\nexport const parseBlockqoute = (token: Tokens.Blockquote | Tokens.Generic) => {\n const typeMatch = token.raw.match(/^> \\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]\\n/);\n if (typeMatch) {\n const [raw, type] = typeMatch;\n const newToken = { ...token, raw: token.raw.substring(raw.length) };\n if (newToken.tokens) {\n const firstToken = { ...newToken.tokens[0] } as Tokens.Paragraph;\n firstToken.raw = firstToken.raw.substring(type.length + 4);\n firstToken.text = firstToken.text.substring(type.length + 4);\n if (firstToken.tokens[0]) {\n const firstSubtoken = { ...firstToken.tokens[0] } as Tokens.Paragraph;\n firstSubtoken.raw = firstSubtoken.raw.substring(type.length + 4);\n firstSubtoken.text = firstSubtoken.text.substring(type.length + 4);\n firstToken.tokens[0] = firstSubtoken;\n }\n newToken.tokens[0] = firstToken;\n }\n\n return {\n token: newToken,\n type: type.toLowerCase() as BlockquoteType,\n };\n }\n\n return { token, type: null };\n};\n"],"names":["parseMarkdown","content","matterContent","matter","tokens","lexer","trim","slugger","GithubSlugger","headings","reduce","acc","token","type","depth","title","parseTokenText","push","id","slug","nested","formatId","raw","toLowerCase","replace","validateComponentName","name","test","parseCodeLang","configuration","lang","match","Array","isArray","language","modifiers","cur","key","value","split","length","join","isNewCodeToken","codeQueue","Object","keys","tab","switcher","formatLinkHref","href","currentPathname","pages","finalHref","external","startsWith","currentPageData","find","item","clientPath","Error","linkMain","linkAdditional","linkOrigPath","dirname","origPath","linkData","console","error","parseBlockqoute","typeMatch","newToken","substring","firstToken","text","firstSubtoken"],"mappings":"uMAiBO,MAAMA,EAAiBC,IAC1B,MAAQA,QAASC,GAAkBC,EAAOF,GACpCG,EAASC,EAAMH,EAAcI,QAE7BC,EAAU,IAAIC,EACdC,EAAWL,EAAOM,OAAqB,CAACC,EAAKC,KAC/C,GAAmB,YAAfA,EAAMC,OAAuC,IAAhBD,EAAME,OAA+B,IAAhBF,EAAME,OAAc,CACtE,MAAMC,EAAQC,EAAeJ,GAC7BD,EAAIM,KAAK,CACLF,QACAG,GAAIX,EAAQY,KAAKJ,GACjBH,QACAQ,OAAwB,IAAhBR,EAAME,OAEtB,CACA,OAAOH,GACR,IAEH,MAAO,CAAEP,SAAQK,aAGRY,EAAYC,GACdA,EAAIC,cAAcC,QAAQ,MAAO,KAAKA,QAAQ,MAAO,KAGnDC,EAAyBC,GAC3B,sBAAsBC,KAAKD,GAGzBE,EAAiBN,IAC1B,IAAIO,EAAqD,CAAA,EACrDC,EAAeR,EAEnB,MAAMS,EAAQT,EAAIS,MAAM,0CACxB,GAAIC,MAAMC,QAAQF,GAAQ,CACtB,MAAOG,KAAaC,GAAaJ,EACjCD,EAAOI,EACPL,EAAgBM,EAAUzB,OAA4C,CAACC,EAAKyB,KACxE,MAAOC,KAAQC,GAASF,EAAIG,MAAM,KAMlC,OAJI5B,EAAI0B,IADJC,IAC4B,IAAjBA,EAAME,QAAsBF,EAAMG,KAAK,KAAKjB,QAAQ,iBAAkB,KAI9Eb,GACR,CAAA,EACP,CACA,MAAO,CAAEmB,OAAMD,kBAGNa,EAAiB,CAC1B9B,EACA+B,KAEA,GAAIX,MAAMC,QAAQrB,KAAWgC,OAAOC,KAAKF,GAAWH,OAAQ,OAAO,EAEnE,GAAmB,SAAf5B,EAAMC,KAAiB,CACvB,MAAMiB,KAAEA,EAAID,cAAEA,GAAkBD,EAAchB,EAAMkB,MAEpD,GAAIa,EADwC,iBAAtBd,EAAciB,IAAmBzB,EAASQ,EAAciB,KAAOhB,KAC3DD,EAAckB,SAAU,OAAO,CAC7D,CAEA,MAAmB,UAAfnC,EAAMC,MAAmC,SAAfD,EAAMC,MAK3BmC,EAAiB,CAACC,EAAcC,EAAyBC,KAClE,IAAIC,EAAoBH,EACxB,MAAMI,EAAW,oBAAoB1B,KAAKsB,GAE1C,GAAIG,EAAUE,WAAW,KAAM,MAAO,CAAEL,OAAMI,UAAU,GAExD,GAAIF,IAAUE,EAAU,CACpB,MAAME,EAAkBJ,EAAMK,KAAMC,GAASA,EAAKC,aAAeR,GAEjE,IAAIK,EAYA,MAAM,IAAII,MAAM,8CAZC,CACjB,MAAM,CAAGC,EAAUC,GAAkBZ,EAAKlB,MAAM,uBAAyB,CAACkB,EAAMA,GAC1Ea,EAAerB,EAAKsB,EAAQR,EAAgBS,UAAWJ,GAAUpC,QAAQ,MAAO,KAChFyC,EAAWd,EAAMK,KAAMC,GAASA,EAAKO,WAAaF,GAEpDG,EACAb,EAAYa,EAASP,YAAcG,GAAkB,KAErDK,QAAQC,MAAM,wCAAwClB,MACtDG,EAAY,GAEpB,CAGJ,CACA,MAAO,CAAEH,KAAMG,EAAWC,aAGjBe,EAAmBxD,IAC5B,MAAMyD,EAAYzD,EAAMU,IAAIS,MAAM,kDAClC,GAAIsC,EAAW,CACX,MAAO/C,EAAKT,GAAQwD,EACdC,EAAW,IAAK1D,EAAOU,IAAKV,EAAMU,IAAIiD,UAAUjD,EAAIkB,SAC1D,GAAI8B,EAASlE,OAAQ,CACjB,MAAMoE,EAAa,IAAKF,EAASlE,OAAO,IAGxC,GAFAoE,EAAWlD,IAAMkD,EAAWlD,IAAIiD,UAAU1D,EAAK2B,OAAS,GACxDgC,EAAWC,KAAOD,EAAWC,KAAKF,UAAU1D,EAAK2B,OAAS,GACtDgC,EAAWpE,OAAO,GAAI,CACtB,MAAMsE,EAAgB,IAAKF,EAAWpE,OAAO,IAC7CsE,EAAcpD,IAAMoD,EAAcpD,IAAIiD,UAAU1D,EAAK2B,OAAS,GAC9DkC,EAAcD,KAAOC,EAAcD,KAAKF,UAAU1D,EAAK2B,OAAS,GAChEgC,EAAWpE,OAAO,GAAKsE,CAC3B,CACAJ,EAASlE,OAAO,GAAKoE,CACzB,CAEA,MAAO,CACH5D,MAAO0D,EACPzD,KAAMA,EAAKU,cAEnB,CAEA,MAAO,CAAEX,QAAOC,KAAM"}
|
package/lib/styles.css
CHANGED
|
@@ -1,93 +1,4 @@
|
|
|
1
|
-
.r-
|
|
2
|
-
position: sticky;
|
|
3
|
-
background-color: var(--r-main-50);
|
|
4
|
-
top: 0;
|
|
5
|
-
border-bottom: 1px solid var(--r-main-300);
|
|
6
|
-
height: 60px;
|
|
7
|
-
z-index: 1000;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.r-header-body {
|
|
12
|
-
height: 100%;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: 24px;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.r-header-logo {
|
|
21
|
-
display: block;
|
|
22
|
-
margin-right: 24px;
|
|
23
|
-
color: var(--r-main-700);
|
|
24
|
-
transition: color 0.2s;
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
}
|
|
27
|
-
.r-header-logo:hover, .r-header-logo:focus {
|
|
28
|
-
color: var(--r-main-950);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.r-header-nav {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
gap: 12px 16px;
|
|
35
|
-
}
|
|
36
|
-
@media screen and (width >= 1024px) {
|
|
37
|
-
.r-header-nav {
|
|
38
|
-
flex-direction: row;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.r-header-link {
|
|
43
|
-
color: var(--r-main-600);
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
padding: 4px 0;
|
|
46
|
-
transition: color 0.2s;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
}
|
|
49
|
-
.r-header-link:hover, .r-header-link:focus-visible {
|
|
50
|
-
color: var(--r-main-950);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.r-header-link._target {
|
|
54
|
-
color: var(--r-primary-800);
|
|
55
|
-
}
|
|
56
|
-
.r-header-link._target:hover, .r-header-link._target:focus-visible {
|
|
57
|
-
color: var(--r-primary-700);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.r-header-actions {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column-reverse;
|
|
63
|
-
gap: 16px;
|
|
64
|
-
align-items: stretch;
|
|
65
|
-
}
|
|
66
|
-
@media screen and (width >= 1024px) {
|
|
67
|
-
.r-header-actions {
|
|
68
|
-
flex-direction: row;
|
|
69
|
-
align-items: center;
|
|
70
|
-
gap: 28px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.r-header-sections {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
gap: 12px;
|
|
78
|
-
}
|
|
79
|
-
@media screen and (width < 768px) {
|
|
80
|
-
.r-header-sections .r-dropdown {
|
|
81
|
-
flex: 1;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
@media screen and (width < 768px) {
|
|
85
|
-
.r-header-sections .r-dropdown-drop {
|
|
86
|
-
max-width: none;
|
|
87
|
-
width: 100%;
|
|
88
|
-
left: 0;
|
|
89
|
-
}
|
|
90
|
-
}.r-footer {
|
|
1
|
+
.r-footer {
|
|
91
2
|
border-top: 1px solid var(--r-main-300);
|
|
92
3
|
padding-top: 16px;
|
|
93
4
|
padding-bottom: 16px;
|
|
@@ -122,6 +33,28 @@
|
|
|
122
33
|
}
|
|
123
34
|
.r-powered-link:hover {
|
|
124
35
|
color: var(--r-primary-900);
|
|
36
|
+
}.r-docs-container {
|
|
37
|
+
min-height: calc(100dvh - var(--r-header-height));
|
|
38
|
+
overflow-wrap: break-word;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
@media screen and (width >= 768px) {
|
|
42
|
+
.r-docs-container {
|
|
43
|
+
display: grid;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
column-gap: 32px;
|
|
46
|
+
grid-template-areas: "sidebar breadcrumbs" "sidebar contents" "sidebar content" "sidebar pagination";
|
|
47
|
+
grid-template-columns: 1fr calc(100% - 248px);
|
|
48
|
+
grid-template-rows: auto auto 1fr auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@media screen and (width >= 1180px) {
|
|
52
|
+
.r-docs-container {
|
|
53
|
+
column-gap: 40px;
|
|
54
|
+
grid-template-areas: "sidebar breadcrumbs contents" "sidebar content contents" "sidebar pagination contents";
|
|
55
|
+
grid-template-columns: 1fr 640px 1fr;
|
|
56
|
+
grid-template-rows: auto 1fr auto;
|
|
57
|
+
}
|
|
125
58
|
}.r-root {
|
|
126
59
|
--r-header-height: 60px;
|
|
127
60
|
position: relative;
|
|
@@ -354,27 +287,94 @@
|
|
|
354
287
|
--r-cl-60: #86181d;
|
|
355
288
|
--r-cl-61: #144620;
|
|
356
289
|
--r-cl-62: #c24e00;
|
|
357
|
-
}.r-
|
|
358
|
-
|
|
359
|
-
|
|
290
|
+
}.r-header {
|
|
291
|
+
position: sticky;
|
|
292
|
+
background-color: var(--r-main-50);
|
|
293
|
+
top: 0;
|
|
294
|
+
border-bottom: 1px solid var(--r-main-300);
|
|
295
|
+
height: 60px;
|
|
296
|
+
z-index: 1000;
|
|
360
297
|
box-sizing: border-box;
|
|
361
298
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
299
|
+
|
|
300
|
+
.r-header-body {
|
|
301
|
+
height: 100%;
|
|
302
|
+
display: flex;
|
|
303
|
+
justify-content: space-between;
|
|
304
|
+
align-items: center;
|
|
305
|
+
gap: 24px;
|
|
306
|
+
box-sizing: border-box;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.r-header-logo {
|
|
310
|
+
display: block;
|
|
311
|
+
margin-right: 24px;
|
|
312
|
+
color: var(--r-main-700);
|
|
313
|
+
transition: color 0.2s;
|
|
314
|
+
box-sizing: border-box;
|
|
315
|
+
}
|
|
316
|
+
.r-header-logo:hover, .r-header-logo:focus {
|
|
317
|
+
color: var(--r-main-950);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.r-header-nav {
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-direction: column;
|
|
323
|
+
gap: 12px 16px;
|
|
324
|
+
}
|
|
325
|
+
@media screen and (width >= 1024px) {
|
|
326
|
+
.r-header-nav {
|
|
327
|
+
flex-direction: row;
|
|
370
328
|
}
|
|
371
329
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
330
|
+
|
|
331
|
+
.r-header-link {
|
|
332
|
+
color: var(--r-main-600);
|
|
333
|
+
text-decoration: none;
|
|
334
|
+
padding: 4px 0;
|
|
335
|
+
transition: color 0.2s;
|
|
336
|
+
box-sizing: border-box;
|
|
337
|
+
}
|
|
338
|
+
.r-header-link:hover, .r-header-link:focus-visible {
|
|
339
|
+
color: var(--r-main-950);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.r-header-link._target {
|
|
343
|
+
color: var(--r-primary-800);
|
|
344
|
+
}
|
|
345
|
+
.r-header-link._target:hover, .r-header-link._target:focus-visible {
|
|
346
|
+
color: var(--r-primary-700);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.r-header-actions {
|
|
350
|
+
display: flex;
|
|
351
|
+
flex-direction: column-reverse;
|
|
352
|
+
gap: 16px;
|
|
353
|
+
align-items: stretch;
|
|
354
|
+
}
|
|
355
|
+
@media screen and (width >= 1024px) {
|
|
356
|
+
.r-header-actions {
|
|
357
|
+
flex-direction: row;
|
|
358
|
+
align-items: center;
|
|
359
|
+
gap: 28px;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.r-header-sections {
|
|
364
|
+
display: flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
gap: 12px;
|
|
367
|
+
}
|
|
368
|
+
@media screen and (width < 768px) {
|
|
369
|
+
.r-header-sections .r-dropdown {
|
|
370
|
+
flex: 1;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
@media screen and (width < 768px) {
|
|
374
|
+
.r-header-sections .r-dropdown-drop {
|
|
375
|
+
max-width: none;
|
|
376
|
+
width: 100%;
|
|
377
|
+
left: 0;
|
|
378
378
|
}
|
|
379
379
|
}.r-blog-container {
|
|
380
380
|
min-height: calc(100dvh - var(--r-header-height));
|
|
@@ -401,58 +401,6 @@
|
|
|
401
401
|
z-index: 1001;
|
|
402
402
|
}.r-keylink.keylink-to-navigation:focus {
|
|
403
403
|
margin-top: -40px;
|
|
404
|
-
}.r-article {
|
|
405
|
-
padding: 20px 0 40px;
|
|
406
|
-
grid-area: content;
|
|
407
|
-
}
|
|
408
|
-
@media screen and (width >= 1180px) {
|
|
409
|
-
.r-article {
|
|
410
|
-
padding: 32px 0 40px;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
.r-article > *:first-child {
|
|
414
|
-
margin-top: 0;
|
|
415
|
-
}
|
|
416
|
-
.r-article > *:last-child {
|
|
417
|
-
margin-bottom: 0;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.r-checkbox {
|
|
421
|
-
cursor: pointer;
|
|
422
|
-
width: 20px;
|
|
423
|
-
height: 20px;
|
|
424
|
-
margin: 4px;
|
|
425
|
-
vertical-align: middle;
|
|
426
|
-
box-sizing: border-box;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.r-label {
|
|
430
|
-
cursor: pointer;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.r-task-ol,
|
|
434
|
-
.r-task-ul {
|
|
435
|
-
list-style: none;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.r-task-label {
|
|
439
|
-
display: block;
|
|
440
|
-
width: 100%;
|
|
441
|
-
padding-top: 2px;
|
|
442
|
-
padding-bottom: 2px;
|
|
443
|
-
box-sizing: border-box;
|
|
444
|
-
}
|
|
445
|
-
.r-task-label:hover .r-checkbox {
|
|
446
|
-
filter: brightness(0.8);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.r-task-li.r-task-li {
|
|
450
|
-
margin-block-start: 2px;
|
|
451
|
-
margin-block-end: 2px;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.r-label-text {
|
|
455
|
-
vertical-align: middle;
|
|
456
404
|
}.r-sidebar {
|
|
457
405
|
grid-area: sidebar;
|
|
458
406
|
box-sizing: border-box;
|
|
@@ -725,6 +673,136 @@
|
|
|
725
673
|
|
|
726
674
|
.r-sidebar-drop[open] > .r-sidebar-drop-btn > .r-sidebar-drop-icon {
|
|
727
675
|
transform: rotate(90deg);
|
|
676
|
+
}.r-article {
|
|
677
|
+
padding: 20px 0 40px;
|
|
678
|
+
grid-area: content;
|
|
679
|
+
}
|
|
680
|
+
@media screen and (width >= 1180px) {
|
|
681
|
+
.r-article {
|
|
682
|
+
padding: 32px 0 40px;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
.r-article > *:first-child {
|
|
686
|
+
margin-top: 0;
|
|
687
|
+
}
|
|
688
|
+
.r-article > *:last-child {
|
|
689
|
+
margin-bottom: 0;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.r-checkbox {
|
|
693
|
+
cursor: pointer;
|
|
694
|
+
width: 20px;
|
|
695
|
+
height: 20px;
|
|
696
|
+
margin: 4px;
|
|
697
|
+
vertical-align: middle;
|
|
698
|
+
box-sizing: border-box;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.r-label {
|
|
702
|
+
cursor: pointer;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.r-task-ol,
|
|
706
|
+
.r-task-ul {
|
|
707
|
+
list-style: none;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.r-task-label {
|
|
711
|
+
display: block;
|
|
712
|
+
width: 100%;
|
|
713
|
+
padding-top: 2px;
|
|
714
|
+
padding-bottom: 2px;
|
|
715
|
+
box-sizing: border-box;
|
|
716
|
+
}
|
|
717
|
+
.r-task-label:hover .r-checkbox {
|
|
718
|
+
filter: brightness(0.8);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.r-task-li.r-task-li {
|
|
722
|
+
margin-block-start: 2px;
|
|
723
|
+
margin-block-end: 2px;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.r-label-text {
|
|
727
|
+
vertical-align: middle;
|
|
728
|
+
}.r-theme-switcher {
|
|
729
|
+
position: relative;
|
|
730
|
+
display: flex;
|
|
731
|
+
gap: 4px;
|
|
732
|
+
width: 108px;
|
|
733
|
+
height: 36px;
|
|
734
|
+
padding: 2px;
|
|
735
|
+
background-color: var(--r-main-950);
|
|
736
|
+
border-radius: 14px;
|
|
737
|
+
box-sizing: border-box;
|
|
738
|
+
}
|
|
739
|
+
.r-theme-switcher::before {
|
|
740
|
+
content: "";
|
|
741
|
+
position: absolute;
|
|
742
|
+
display: block;
|
|
743
|
+
height: 32px;
|
|
744
|
+
width: 32px;
|
|
745
|
+
top: 2px;
|
|
746
|
+
left: 2px;
|
|
747
|
+
background-color: var(--r-main-50);
|
|
748
|
+
border-radius: 12px;
|
|
749
|
+
transition: left 0.2s;
|
|
750
|
+
box-sizing: border-box;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.r-theme-switcher-btn {
|
|
754
|
+
padding: 8px;
|
|
755
|
+
background: none;
|
|
756
|
+
border: 0;
|
|
757
|
+
border-radius: 12px;
|
|
758
|
+
cursor: pointer;
|
|
759
|
+
color: var(--r-main-50);
|
|
760
|
+
fill: var(--r-main-950);
|
|
761
|
+
z-index: 1;
|
|
762
|
+
transition: color 0.2s 0.1s, fill 0.2s;
|
|
763
|
+
}
|
|
764
|
+
.r-theme-switcher-btn:hover {
|
|
765
|
+
color: var(--r-main-50);
|
|
766
|
+
fill: var(--r-main-50);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.r-theme-dark:not(.r-theme-system) .r-theme-switcher::before {
|
|
770
|
+
left: 2px;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.r-theme-dark:not(.r-theme-system) .r-theme-switcher-btn__dark {
|
|
774
|
+
color: var(--r-main-950);
|
|
775
|
+
pointer-events: none;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.r-theme-switcher::before,
|
|
779
|
+
.r-theme-system .r-theme-switcher::before {
|
|
780
|
+
left: 38px;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.r-theme-system .r-theme-switcher-btn__system {
|
|
784
|
+
color: var(--r-main-950);
|
|
785
|
+
pointer-events: none;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.r-theme-light:not(.r-theme-system) .r-theme-switcher::before {
|
|
789
|
+
left: 74px;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.r-theme-light:not(.r-theme-system) .r-theme-switcher-btn__light {
|
|
793
|
+
color: var(--r-main-950);
|
|
794
|
+
pointer-events: none;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.r-theme-switcher-svg {
|
|
798
|
+
display: block;
|
|
799
|
+
}.r-container {
|
|
800
|
+
max-width: 1180px;
|
|
801
|
+
padding-right: 12px;
|
|
802
|
+
padding-left: 12px;
|
|
803
|
+
margin-right: auto;
|
|
804
|
+
margin-left: auto;
|
|
805
|
+
box-sizing: border-box;
|
|
728
806
|
}.r-header-menu {
|
|
729
807
|
display: flex;
|
|
730
808
|
justify-content: flex-end;
|
|
@@ -1026,84 +1104,6 @@
|
|
|
1026
1104
|
}
|
|
1027
1105
|
.r-header-social-git:hover, .r-header-social-git:focus {
|
|
1028
1106
|
color: var(--r-main-950);
|
|
1029
|
-
}.r-container {
|
|
1030
|
-
max-width: 1180px;
|
|
1031
|
-
padding-right: 12px;
|
|
1032
|
-
padding-left: 12px;
|
|
1033
|
-
margin-right: auto;
|
|
1034
|
-
margin-left: auto;
|
|
1035
|
-
box-sizing: border-box;
|
|
1036
|
-
}.r-theme-switcher {
|
|
1037
|
-
position: relative;
|
|
1038
|
-
display: flex;
|
|
1039
|
-
gap: 4px;
|
|
1040
|
-
width: 108px;
|
|
1041
|
-
height: 36px;
|
|
1042
|
-
padding: 2px;
|
|
1043
|
-
background-color: var(--r-main-950);
|
|
1044
|
-
border-radius: 14px;
|
|
1045
|
-
box-sizing: border-box;
|
|
1046
|
-
}
|
|
1047
|
-
.r-theme-switcher::before {
|
|
1048
|
-
content: "";
|
|
1049
|
-
position: absolute;
|
|
1050
|
-
display: block;
|
|
1051
|
-
height: 32px;
|
|
1052
|
-
width: 32px;
|
|
1053
|
-
top: 2px;
|
|
1054
|
-
left: 2px;
|
|
1055
|
-
background-color: var(--r-main-50);
|
|
1056
|
-
border-radius: 12px;
|
|
1057
|
-
transition: left 0.2s;
|
|
1058
|
-
box-sizing: border-box;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
.r-theme-switcher-btn {
|
|
1062
|
-
padding: 8px;
|
|
1063
|
-
background: none;
|
|
1064
|
-
border: 0;
|
|
1065
|
-
border-radius: 12px;
|
|
1066
|
-
cursor: pointer;
|
|
1067
|
-
color: var(--r-main-50);
|
|
1068
|
-
fill: var(--r-main-950);
|
|
1069
|
-
z-index: 1;
|
|
1070
|
-
transition: color 0.2s 0.1s, fill 0.2s;
|
|
1071
|
-
}
|
|
1072
|
-
.r-theme-switcher-btn:hover {
|
|
1073
|
-
color: var(--r-main-50);
|
|
1074
|
-
fill: var(--r-main-50);
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
.r-theme-dark:not(.r-theme-system) .r-theme-switcher::before {
|
|
1078
|
-
left: 2px;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
.r-theme-dark:not(.r-theme-system) .r-theme-switcher-btn__dark {
|
|
1082
|
-
color: var(--r-main-950);
|
|
1083
|
-
pointer-events: none;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
.r-theme-switcher::before,
|
|
1087
|
-
.r-theme-system .r-theme-switcher::before {
|
|
1088
|
-
left: 38px;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
.r-theme-system .r-theme-switcher-btn__system {
|
|
1092
|
-
color: var(--r-main-950);
|
|
1093
|
-
pointer-events: none;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
.r-theme-light:not(.r-theme-system) .r-theme-switcher::before {
|
|
1097
|
-
left: 74px;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
.r-theme-light:not(.r-theme-system) .r-theme-switcher-btn__light {
|
|
1101
|
-
color: var(--r-main-950);
|
|
1102
|
-
pointer-events: none;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
.r-theme-switcher-svg {
|
|
1106
|
-
display: block;
|
|
1107
1107
|
}.r-keylink {
|
|
1108
1108
|
display: block;
|
|
1109
1109
|
position: relative;
|
|
@@ -1667,6 +1667,9 @@
|
|
|
1667
1667
|
scrollbar-width: thin;
|
|
1668
1668
|
scrollbar-color: var(--r-main-200) transparent;
|
|
1669
1669
|
box-sizing: border-box;
|
|
1670
|
+
}.r-img {
|
|
1671
|
+
max-width: 100%;
|
|
1672
|
+
box-sizing: border-box;
|
|
1670
1673
|
}.r-h1 {
|
|
1671
1674
|
font-size: 32px;
|
|
1672
1675
|
line-height: 1.4;
|
|
@@ -1707,9 +1710,6 @@
|
|
|
1707
1710
|
line-height: 1.4;
|
|
1708
1711
|
margin-block-start: 1.8em;
|
|
1709
1712
|
margin-block-end: 1.8em;
|
|
1710
|
-
}.r-img {
|
|
1711
|
-
max-width: 100%;
|
|
1712
|
-
box-sizing: border-box;
|
|
1713
1713
|
}.r-p {
|
|
1714
1714
|
line-height: 1.8;
|
|
1715
1715
|
margin-block-start: 1em;
|
|
@@ -1926,6 +1926,10 @@
|
|
|
1926
1926
|
background-color: currentColor;
|
|
1927
1927
|
border-radius: 0 0 0 4px;
|
|
1928
1928
|
box-sizing: border-box;
|
|
1929
|
+
}.r-ul {
|
|
1930
|
+
padding-inline-start: 2rem;
|
|
1931
|
+
margin-block-start: 1em;
|
|
1932
|
+
margin-block-end: 1em;
|
|
1929
1933
|
}.r-li {
|
|
1930
1934
|
line-height: 1.8;
|
|
1931
1935
|
margin-block-start: 6px;
|
|
@@ -1941,10 +1945,10 @@
|
|
|
1941
1945
|
padding-inline-start: 2rem;
|
|
1942
1946
|
margin-block-start: 1em;
|
|
1943
1947
|
margin-block-end: 1em;
|
|
1944
|
-
}.r-
|
|
1945
|
-
padding
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
+
}.r-td {
|
|
1949
|
+
padding: 6px 12px;
|
|
1950
|
+
border-bottom: 1px solid var(--r-main-400);
|
|
1951
|
+
border-collapse: collapse;
|
|
1948
1952
|
}.r-table {
|
|
1949
1953
|
min-width: 100%;
|
|
1950
1954
|
text-align: left;
|
|
@@ -1955,12 +1959,10 @@
|
|
|
1955
1959
|
border-top: 1px solid var(--r-main-500);
|
|
1956
1960
|
border-bottom: 1px solid var(--r-main-500);
|
|
1957
1961
|
border-collapse: collapse;
|
|
1958
|
-
}.r-td {
|
|
1959
|
-
padding: 6px 12px;
|
|
1960
|
-
border-bottom: 1px solid var(--r-main-400);
|
|
1961
|
-
border-collapse: collapse;
|
|
1962
1962
|
}.r-thead {
|
|
1963
1963
|
background-color: var(--r-main-100);
|
|
1964
|
+
}.r-task-ol {
|
|
1965
|
+
list-style: none;
|
|
1964
1966
|
}.r-task-li.r-task-li {
|
|
1965
1967
|
margin-block-start: 2px;
|
|
1966
1968
|
margin-block-end: 2px;
|
|
@@ -1990,8 +1992,6 @@
|
|
|
1990
1992
|
|
|
1991
1993
|
.r-task-label-text {
|
|
1992
1994
|
vertical-align: middle;
|
|
1993
|
-
}.r-task-ol {
|
|
1994
|
-
list-style: none;
|
|
1995
1995
|
}.r-task-ul {
|
|
1996
1996
|
list-style: none;
|
|
1997
1997
|
}.r-backdrop {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robindoc",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-dc26dca",
|
|
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": {
|