mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +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
|
@ -13,6 +13,7 @@ import {LoadContext} from '@docusaurus/types';
|
|||
describe('loadDocs', () => {
|
||||
test('simple website', async () => {
|
||||
const siteDir = path.join(__dirname, '__fixtures__', 'website');
|
||||
const generatedFilesDir: string = path.resolve(siteDir, '.docusaurus');
|
||||
const siteConfig = {
|
||||
title: 'Hello',
|
||||
baseUrl: '/',
|
||||
|
@ -21,6 +22,7 @@ describe('loadDocs', () => {
|
|||
const context = {
|
||||
siteDir,
|
||||
siteConfig,
|
||||
generatedFilesDir,
|
||||
} as LoadContext;
|
||||
const sidebarPath = path.join(siteDir, 'sidebars.json');
|
||||
const pluginPath = 'docs';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue