docusaurus-theme-frontmatter
Version:
Docusaurus theme plugin to expose front matter through a component hook
22 lines (14 loc) • 544 B
text/typescript
// ================================================================= //
// Copyright (c) roydukkey. All rights reserved. //
// ================================================================= //
import type { Plugin } from '@docusaurus/types';
import path from 'path';
export default (): Plugin => ({
name: 'docusaurus-theme-frontmatter',
getThemePath (): string {
return path.resolve(__dirname, './theme');
},
getTypeScriptThemePath (): string {
return path.resolve(__dirname, '..', 'src', 'theme');
}
});