mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 04:12:53 +02:00
feat(v2): inline table-of-contents + refactor TOC (#3904)
* Add TOCInline theme component * Add TOCInline theme component doc + migration guide * remove useless getPathsToWatch on classic theme * rename rightToc to toc * add temp theme-bootstrap TOCInline comp to fix build issue
This commit is contained in:
parent
b11c24b752
commit
41ef333e47
28 changed files with 206 additions and 36 deletions
|
@ -72,6 +72,16 @@ export default function docusaurusThemeClassic(
|
|||
return {
|
||||
name: 'docusaurus-theme-classic',
|
||||
|
||||
/*
|
||||
Does not seem needed: webpack can already hot reload theme files
|
||||
getPathsToWatch() {
|
||||
return [
|
||||
path.join(__dirname, '..', 'lib'),
|
||||
path.join(__dirname, '..', 'lib-next'),
|
||||
];
|
||||
},
|
||||
*/
|
||||
|
||||
getThemePath() {
|
||||
return path.join(__dirname, '..', 'lib-next', 'theme');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue