Skip to content

Commit

Permalink
misc: avoid using fs.realpathSync in website (#7496)
Browse files Browse the repository at this point in the history
* dogfood fix

* remove other mentions

Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
Zamiell and Josh-Cena authored May 26, 2022
1 parent f609aca commit 89ddc6d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion website/_dogfooding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Eventually, we could move these tests later so another test site? Note there is
Fancy things we can test for here:

- Plugin Multi-instance
- Symlinks support
- Webpack configs
- \_ prefix convention
- Huge sidebars impact
Expand Down
1 change: 0 additions & 1 deletion website/_dogfooding/docs-tests-symlink

This file was deleted.

8 changes: 2 additions & 6 deletions website/_dogfooding/dogfooding.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

const fs = require('fs');

/** @type {import('@docusaurus/types').PluginConfig[]} */
const dogfoodingThemeInstances = [
/** @type {import('@docusaurus/types').PluginModule} */
Expand All @@ -29,10 +27,8 @@ const dogfoodingPluginInstances = [
routeBasePath: '/tests/docs',
sidebarPath: '_dogfooding/docs-tests-sidebars.js',

// Using a symlinked folder as source, test for use-case https://github.com/facebook/docusaurus/issues/3272
// The target folder uses a _ prefix to test against an edge case regarding MDX partials: https://github.com/facebook/docusaurus/discussions/5181#discussioncomment-1018079
// eslint-disable-next-line no-restricted-properties
path: fs.realpathSync('_dogfooding/docs-tests-symlink'),
// Using a _ prefix to test against an edge case regarding MDX partials: https://github.com/facebook/docusaurus/discussions/5181#discussioncomment-1018079
path: '_dogfooding/_docs tests',
showLastUpdateTime: true,
sidebarItemsGenerator(args) {
return args.defaultSidebarItemsGenerator({
Expand Down

0 comments on commit 89ddc6d

Please sign in to comment.