feat: add matlab.md cheatsheet (#21).

This commit is contained in:
jaywcjlove 2022-11-04 21:02:51 +08:00
parent c66d1c0294
commit 02d0a495a6
4 changed files with 1428 additions and 15 deletions

View File

@ -20,8 +20,9 @@ Quick Reference
<!--rehype:style=padding-bottom: 23px;-->
[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-->
[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-->
<!--rehype:class=home-card-->

1409
docs/matlab.md Normal file

File diff suppressed because it is too large Load Diff

View File

@ -615,6 +615,8 @@ a.text-grey {
display: block;
overflow: hidden;
padding: 0.3rem 0.5rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.menu-tocs > .menu-modal a.leve2 {
@ -740,9 +742,9 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
flex-direction: column;
}
.h3wrap-body > h4,
.h3wrap-body > h5,
.h3wrap-body > h6 {
.wrap-body > h4,
.wrap-body > h5,
.wrap-body > h6 {
border-color: transparent;
background-color: var(--color-neutral-muted);
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 > ol,
.h3wrap .wrap-body > dl,
.h3wrap-body > ul,
.h3wrap-body > ol,
.h3wrap-body > dl {
.h3wrap .wrap-body > dl {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
display: grid;

View File

@ -117,7 +117,7 @@ export function getTocsTree(arr = [], result = []) {
if (titleNum(toc.tagName) > 3) {
panle = [toc, ...header];
}
if (resultChilds.length > 0) {
if (resultChilds.length > -1) {
const bodyStyle = toc.properties['body-style'];
delete toc.properties['body-style'];
const bodyClass = toc.properties['body-class'];
@ -125,12 +125,16 @@ export function getTocsTree(arr = [], result = []) {
if (Array.isArray(panle)) {
panle = panle.concat(resultChilds);
} else if (panle.children) {
if (titleNum(toc.tagName) < 3) {
panle.children = panle.children.concat({
type: 'element',
tagName: 'div',
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)) {