mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 03:12:35 +02:00
feat(v2): presets (#1401)
* feat(v2): presets * misc: add newline * misc: add tests * misc: fix path
This commit is contained in:
parent
7ebcf10478
commit
361986515c
28 changed files with 394 additions and 89 deletions
|
@ -29,7 +29,7 @@ const DEFAULT_OPTIONS = {
|
|||
};
|
||||
|
||||
class DocusaurusPluginContentBlog {
|
||||
constructor(opts, context) {
|
||||
constructor(context, opts) {
|
||||
this.options = {...DEFAULT_OPTIONS, ...opts};
|
||||
this.context = context;
|
||||
this.contentPath = path.resolve(this.context.siteDir, this.options.path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue