mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-22 20:47:53 +02:00
refactor: capitalize comments (#7188)
* refactor: capitalize comments * revert...
This commit is contained in:
parent
200009008b
commit
fa1ce230ea
99 changed files with 241 additions and 350 deletions
|
@ -38,7 +38,7 @@ function PluginContent({
|
|||
<h3>{pluginName}</h3>
|
||||
<div>
|
||||
{Object.entries(pluginContent)
|
||||
// filter plugin instances with no content
|
||||
// Filter plugin instances with no content
|
||||
.filter(([, pluginInstanceContent]) => !!pluginInstanceContent)
|
||||
.map(([pluginId, pluginInstanceContent]) => (
|
||||
<PluginInstanceContent
|
||||
|
@ -58,7 +58,7 @@ export default function DebugContent({allContent}: Props): JSX.Element {
|
|||
<h2>Plugin content</h2>
|
||||
<div>
|
||||
{Object.entries(allContent)
|
||||
// filter plugins with no content
|
||||
// Filter plugins with no content
|
||||
.filter(([, pluginContent]) =>
|
||||
Object.values(pluginContent).some(
|
||||
(instanceContent) => !!instanceContent,
|
||||
|
|
|
@ -10,7 +10,7 @@ import BrowserOnly from '@docusaurus/BrowserOnly';
|
|||
import type {Props} from '@theme/DebugJsonView';
|
||||
import type {ReactJsonViewProps} from 'react-json-view';
|
||||
|
||||
// avoids "react-json-view" to display "root"
|
||||
// Avoids "react-json-view" to display "root"
|
||||
const RootName = null;
|
||||
|
||||
// Seems ReactJson does not work with SSR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue