feat: add matlab.md
cheatsheet (#21).
This commit is contained in:
parent
c66d1c0294
commit
02d0a495a6
@ -20,8 +20,9 @@ Quick Reference
|
|||||||
<!--rehype:style=padding-bottom: 23px;-->
|
<!--rehype:style=padding-bottom: 23px;-->
|
||||||
|
|
||||||
[CMake](./docs/cmake.md)<!--rehype:style=background: rgb(92 107 192/var(\-\-bg\-opacity));&class=contributing-->
|
[CMake](./docs/cmake.md)<!--rehype:style=background: rgb(92 107 192/var(\-\-bg\-opacity));&class=contributing-->
|
||||||
[FFmpeg](./docs/ffmpeg.md)<!--rehype:style=background: rgb(0 193 9/var(\-\-bg\-opacity));&class=contributing-->
|
|
||||||
[Django](./docs/djiango.md)<!--rehype:style=background: rgb(12 75 51/var(\-\-bg\-opacity));&class=contributing tag&data-lang=Python-->
|
[Django](./docs/djiango.md)<!--rehype:style=background: rgb(12 75 51/var(\-\-bg\-opacity));&class=contributing tag&data-lang=Python-->
|
||||||
|
[FFmpeg](./docs/ffmpeg.md)<!--rehype:style=background: rgb(0 193 9/var(\-\-bg\-opacity));&class=contributing-->
|
||||||
|
[MATLAB](./docs/matlab.md)<!--rehype:style=background: rgb(0 118 168/var(\-\-bg\-opacity));&class=contributing-->
|
||||||
[Vue 3 ](./docs/vue.md)<!--rehype:style=background: rgb(64 184 131/var(\-\-bg\-opacity));&class=contributing-->
|
[Vue 3 ](./docs/vue.md)<!--rehype:style=background: rgb(64 184 131/var(\-\-bg\-opacity));&class=contributing-->
|
||||||
<!--rehype:class=home-card-->
|
<!--rehype:class=home-card-->
|
||||||
|
|
||||||
|
1409
docs/matlab.md
Normal file
1409
docs/matlab.md
Normal file
File diff suppressed because it is too large
Load Diff
@ -615,6 +615,8 @@ a.text-grey {
|
|||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0.3rem 0.5rem;
|
padding: 0.3rem 0.5rem;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-tocs > .menu-modal a.leve2 {
|
.menu-tocs > .menu-modal a.leve2 {
|
||||||
@ -740,9 +742,9 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.h3wrap-body > h4,
|
.wrap-body > h4,
|
||||||
.h3wrap-body > h5,
|
.wrap-body > h5,
|
||||||
.h3wrap-body > h6 {
|
.wrap-body > h6 {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
background-color: var(--color-neutral-muted);
|
background-color: var(--color-neutral-muted);
|
||||||
color: var(--color-fg-default);
|
color: var(--color-fg-default);
|
||||||
@ -758,10 +760,7 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
|
|||||||
|
|
||||||
.h3wrap .wrap-body > ul,
|
.h3wrap .wrap-body > ul,
|
||||||
.h3wrap .wrap-body > ol,
|
.h3wrap .wrap-body > ol,
|
||||||
.h3wrap .wrap-body > dl,
|
.h3wrap .wrap-body > dl {
|
||||||
.h3wrap-body > ul,
|
|
||||||
.h3wrap-body > ol,
|
|
||||||
.h3wrap-body > dl {
|
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
@ -117,7 +117,7 @@ export function getTocsTree(arr = [], result = []) {
|
|||||||
if (titleNum(toc.tagName) > 3) {
|
if (titleNum(toc.tagName) > 3) {
|
||||||
panle = [toc, ...header];
|
panle = [toc, ...header];
|
||||||
}
|
}
|
||||||
if (resultChilds.length > 0) {
|
if (resultChilds.length > -1) {
|
||||||
const bodyStyle = toc.properties['body-style'];
|
const bodyStyle = toc.properties['body-style'];
|
||||||
delete toc.properties['body-style'];
|
delete toc.properties['body-style'];
|
||||||
const bodyClass = toc.properties['body-class'];
|
const bodyClass = toc.properties['body-class'];
|
||||||
@ -125,12 +125,16 @@ export function getTocsTree(arr = [], result = []) {
|
|||||||
if (Array.isArray(panle)) {
|
if (Array.isArray(panle)) {
|
||||||
panle = panle.concat(resultChilds);
|
panle = panle.concat(resultChilds);
|
||||||
} else if (panle.children) {
|
} else if (panle.children) {
|
||||||
panle.children = panle.children.concat({
|
if (titleNum(toc.tagName) < 3) {
|
||||||
type: 'element',
|
panle.children = panle.children.concat({
|
||||||
tagName: 'div',
|
type: 'element',
|
||||||
properties: { class: [`h${level}wrap-body`, bodyClass], style: bodyStyle },
|
tagName: 'div',
|
||||||
children: [...resultChilds],
|
properties: { class: [`h${level}wrap-body`, bodyClass], style: bodyStyle },
|
||||||
});
|
children: [...resultChilds],
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
panle.children[0].children[1].children = panle.children[0].children[1].children.concat(resultChilds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Array.isArray(panle)) {
|
if (Array.isArray(panle)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user