mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
* feat(v2): Algolia search plugin * patch PR #1440 (#1441) * alternative implementation * typo * refactor noop * rename SearchAlgolia -> SearchBar * changes.md
27 lines
561 B
JavaScript
27 lines
561 B
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
const DEFAULT_OPTIONS = {};
|
|
|
|
class DocusaurusThemeClassic {
|
|
constructor(context, opts) {
|
|
this.options = {...DEFAULT_OPTIONS, ...opts};
|
|
this.context = context;
|
|
}
|
|
|
|
getName() {
|
|
return 'docusaurus-theme-classic';
|
|
}
|
|
|
|
getThemePath() {
|
|
return path.resolve(__dirname, './theme');
|
|
}
|
|
}
|
|
|
|
module.exports = DocusaurusThemeClassic;
|