Generate index files with optional table of contents
Directory to generate index for
Index generation options
Promise resolving when index generation is complete
import { generateIndex } from 'markmv'; const options = { type: 'links', strategy: 'directory', generateToc: true, tocOptions: { minDepth: 2 } }; await generateIndex('.', options); Copy
import { generateIndex } from 'markmv'; const options = { type: 'links', strategy: 'directory', generateToc: true, tocOptions: { minDepth: 2 } }; await generateIndex('.', options);
Generate index files with optional table of contents