mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
feat(v2): add ability to hide doc sidebar (#3615)
* feat(v2): add ability to hide doc sidebar * Use relative imports
This commit is contained in:
parent
0ec5d533d6
commit
14cdd72ae4
12 changed files with 293 additions and 122 deletions
|
@ -40,6 +40,7 @@ const DEFAULT_CONFIG = {
|
|||
hideOnScroll: false,
|
||||
items: [],
|
||||
},
|
||||
hideableSidebar: false,
|
||||
};
|
||||
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
||||
|
||||
|
@ -283,6 +284,7 @@ const ThemeConfigSchema = Joi.object({
|
|||
})
|
||||
.default(DEFAULT_CONFIG.prism)
|
||||
.unknown(),
|
||||
hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
|
||||
});
|
||||
exports.ThemeConfigSchema = ThemeConfigSchema;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue