-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(v2): officially release @docusaurus/plugin-debug (#3392)
* Add json styling to config debug * Style debug content page * Add style and collapse depth to json viewer * Add style to debug layout * Add style to metadata debug * Add style support to registry debugger * Remove default content if other instances are present * Change colors for more contrast * Add debug routes styles * Add active link style * Fix container css issues * Style registry debug page * Remove unused style modules * Add white space to style files * Add font scaling * Fix prettier errors * Add child routes to route debug * Readd default content plugin json * Add empty home page to debug * Prettier * Revert "Add empty home page to debug" This should be included in a separate PR This reverts commit 9c43c9f. * Set colors to dark theme * Add plugin debug doc + minor fixes + expose global data * more debug plugin doc Co-authored-by: Drewbi <drewalexander986@gmail.com>
- Loading branch information
Showing
19 changed files
with
301 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/docusaurus-plugin-debug/src/theme/DebugConfig/styles.module.css
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/docusaurus-plugin-debug/src/theme/DebugContent/styles.module.css
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
packages/docusaurus-plugin-debug/src/theme/DebugGlobalData/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* 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 DebugJsonView from '../DebugJsonView'; | ||
import useGlobalData from '@docusaurus/useGlobalData'; | ||
|
||
function DebugMetadata() { | ||
const globalData = useGlobalData(); | ||
return ( | ||
<DebugLayout> | ||
<h2>Global data</h2> | ||
<DebugJsonView src={globalData} collapseDepth="3" /> | ||
</DebugLayout> | ||
); | ||
} | ||
|
||
export default DebugMetadata; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/docusaurus-plugin-debug/src/theme/DebugJsonView/styles.module.css
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/docusaurus-plugin-debug/src/theme/DebugMetadata/styles.module.css
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.