mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
* deprecated nextVersionLabel option * useActivePlugin failfast option * remove deprecated option nextVersionLabel * routeBasePath: '' should be forbidden * routeBasePath: '' should be forbidden * Docs: do not show version badge if there is only 1 version: https://github.com/facebook/docusaurus/issues/3362 * allow sidebars file to not exist: fallback to empty sidebars https://githu.com/facebook/docusaurus/issues/3366 * Ability to use classic theme/preset while not using docs/pages without trouble. https://github.com/facebook/docusaurus/issues/3360 * fix netlify redirects * do not throw if useDocs do not load? * netlify deploy typo * try to fix useDocs * docs(v2): update Deploy to Vercel guide (#3344) * filter annoying useDocs conditional require warning * netlify deploy preview homepage * typo * try to trigger again CLA bot Co-authored-by: Sam Ko <sam@vercel.com>
29 lines
752 B
JavaScript
29 lines
752 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
module.exports = function preset(context, opts = {}) {
|
|
return {
|
|
themes: [[require.resolve('@docusaurus/theme-bootstrap'), opts.theme]],
|
|
plugins: [
|
|
[
|
|
opts.pages !== false &&
|
|
require.resolve('@docusaurus/plugin-content-pages'),
|
|
opts.pages,
|
|
],
|
|
[
|
|
opts.blog !== false &&
|
|
require.resolve('@docusaurus/plugin-content-blog'),
|
|
opts.blog,
|
|
],
|
|
[
|
|
opts.docs !== false &&
|
|
require.resolve('@docusaurus/plugin-content-docs'),
|
|
opts.docs,
|
|
],
|
|
],
|
|
};
|
|
};
|