mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
fix(v2): do not show plugin data path (#1861)
* fix(v2): do not show plugin data path * test fix * nits
This commit is contained in:
parent
5bd6284f18
commit
2c1012b9ec
10 changed files with 58 additions and 31 deletions
|
@ -8,22 +8,24 @@
|
|||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import pluginContentBlog from '../index';
|
||||
import {DocusaurusConfig} from '@docusaurus/types';
|
||||
import {DocusaurusConfig, LoadContext} from '@docusaurus/types';
|
||||
|
||||
describe('loadBlog', () => {
|
||||
test('simple website', async () => {
|
||||
const siteDir = path.join(__dirname, '__fixtures__', 'website');
|
||||
const siteConfig: DocusaurusConfig = {
|
||||
const generatedFilesDir: string = path.resolve(siteDir, '.docusaurus');
|
||||
const siteConfig = {
|
||||
title: 'Hello',
|
||||
baseUrl: '/',
|
||||
url: 'https://docusaurus.io',
|
||||
};
|
||||
} as DocusaurusConfig;
|
||||
const pluginPath = 'blog';
|
||||
const plugin = pluginContentBlog(
|
||||
{
|
||||
siteDir,
|
||||
siteConfig,
|
||||
},
|
||||
generatedFilesDir,
|
||||
} as LoadContext,
|
||||
{
|
||||
path: 'blog',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue