Skip to content

Commit

Permalink
cfw_environment: restore side-by-side layout of Sys/Emu comparison
Browse files Browse the repository at this point in the history
This requires a few hacks:
- Disabled aside menu for this page
  - This breaks the continuity of UI across this page and others, but
    without it the layout is too small for the side-by-side to make
    sense.
- Added markdown-it handles for grid cards
  • Loading branch information
lifehackerhansol committed Nov 29, 2024
1 parent 51f91c7 commit cde66e0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
20 changes: 20 additions & 0 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ export default defineConfig({
},
markdown: {
config: (md) => {
md.use(container, "cards", {
render: (tokens, idx) => {
const token = tokens[idx];
if (token.nesting === 1) {
return `<div class="cards">\n`;
} else {
return `</div>\n`;
}
}
});
md.use(container, 'card', {
render: (tokens, idx) => {
const token = tokens[idx];
if (token.nesting === 1) {
return `<div class="card">\n`;
} else {
return `</div>\n`;
}
}
});
md.use(container, "tabs", {
render: (tokens, idx) => {
const token = tokens[idx];
Expand Down
15 changes: 11 additions & 4 deletions docs/user_guide/all/cfw_environment.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
aside: false
---

# CFW on sysMMC vs. CFW on emuMMC

A "CFW Environment" describes the context in which you are using custom firmware (CFW).
Expand All @@ -17,7 +21,10 @@ For more information on terminology, please refer to the [glossary](../../extras

-----

:::: tip
::::: cards

:::: card

### emuMMC CFW (Recommended)
#### CFW on emuMMC has the following benefits:

Expand Down Expand Up @@ -54,8 +61,6 @@ This path of the guide ***also*** includes sysCFW as launch option.

:::

-----

::: info

To proceed with CFW on **emuMMC**, click on the button below:
Expand All @@ -66,7 +71,7 @@ To proceed with CFW on **emuMMC**, click on the button below:

::::

:::: tip
:::: card

### sysCFW (CFW on sysMMC)
#### CFW on sysMMC has the following benefits:
Expand Down Expand Up @@ -105,6 +110,8 @@ To proceed with CFW on **sysMMC**, click on the button below:

::::

:::::

### Modchip Instability

::: danger
Expand Down

0 comments on commit cde66e0

Please sign in to comment.