DocCardList Splitting
Normal DocCardListβ
You can embed the generated cards list in a normal doc page. It will display all docs of the current folder. Add the DocCardList component on any doc:
import DocCardList from '@theme/DocCardList';
<DocCardList />
You should see all docs as a card list:
All docs in folderβ
ποΈ Apple Style Window
IF YOU THINK THIS IS AN IMAGE, YOU ARE WRONG!
ποΈ DocCardList Splitting
Normal DocCardList
ποΈ Float Markup
Two coloumn
ποΈ Folder Duplicate Page
I found another way to make the page look like index.js and README.md pages.
ποΈ Ideal Image Plugin
Installation
ποΈ Import Code To Use
You can write React code components and inject them to markdown pages.
ποΈ Import Code To View
Inside markdown
ποΈ Live CodeBlock Theme
Install
ποΈ Lunr Search Plugin
Offline Search for Docusaurus V2
ποΈ npm2yarn
Example
ποΈ Plugin Auto Sidebars
Source Docusaurus Plugin Auto Sidebars
ποΈ What is TypeDoc for?
I don't understand what is the main goal?
ποΈ Update Docusaurus
2.0.0-beta.6
Splitting DocCardListβ
If you want to split the card list you can add useCurrentSidebarCategory
hook with the items
prop and additional logic:
import DocCardList from '@theme/DocCardList';
import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
### First 2 docs
<DocCardList items={[...[...useCurrentSidebarCategory().items].map((_,i)=>i<2?_:null).filter(Boolean)]} />
### Another 4 docs
<DocCardList items={[...[...useCurrentSidebarCategory().items].map((_,i)=>(i>1&&i<6)?_:null).filter(Boolean)]} />
### Rest docs not shown
First 2 docsβ
ποΈ Apple Style Window
IF YOU THINK THIS IS AN IMAGE, YOU ARE WRONG!
ποΈ DocCardList Splitting
Normal DocCardList
Another 4 docsβ
ποΈ Float Markup
Two coloumn
ποΈ Folder Duplicate Page
I found another way to make the page look like index.js and README.md pages.
ποΈ Ideal Image Plugin
Installation
ποΈ Import Code To Use
You can write React code components and inject them to markdown pages.