mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-30 14:14:17 +00:00
* improve debug plugin: - add multiple debug pages + debug layout - ability to debug plugin contentLoaded data * add missing dependency * fix broken test * improve content rendering a bit * create basic DebugJsonView * fix ReactJson SSR issues
31 lines
708 B
JavaScript
31 lines
708 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import DebugLayout from '../DebugLayout';
|
|
import registry from '@generated/registry';
|
|
|
|
function DebugRegistry() {
|
|
return (
|
|
<DebugLayout>
|
|
{' '}
|
|
<h2>Registry</h2>
|
|
<ul>
|
|
{Object.values(registry).map(([, aliasedPath, resolved]) => (
|
|
<li key={aliasedPath}>
|
|
<div>Aliased Path: {aliasedPath}</div>
|
|
<div>Resolved Path: {resolved}</div>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</DebugLayout>
|
|
);
|
|
}
|
|
|
|
export default DebugRegistry;
|