This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
core/gatsby-theme-docz/src Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const Header = props => {
1010 const { onOpen } = props
1111 const {
1212 repository,
13- themeConfig : { showDarkModeSwitch } ,
13+ themeConfig : { showDarkModeSwitch, showMarkdownEditButton } ,
1414 } = useConfig ( )
1515 const { edit = true , ...doc } = useCurrentDoc ( )
1616 const [ colorMode , setColorMode ] = useColorMode ( )
@@ -47,7 +47,7 @@ export const Header = props => {
4747 </ button >
4848 ) }
4949 </ Flex >
50- { edit && doc . link && (
50+ { showMarkdownEditButton && edit && doc . link && (
5151 < a
5252 sx = { styles . editButton }
5353 href = { doc . link }
Original file line number Diff line number Diff line change @@ -11,10 +11,16 @@ const typography = toTheme(moraga)
1111
1212export default merge ( typography , {
1313 initialColorMode : 'light' ,
14+ // Show errors above playground editor
1415 showLiveError : true ,
16+ // Show preview of the code inside playground
1517 showLivePreview : true ,
18+ // Show editor when a playground is rendered
1619 showPlaygroundEditor : true ,
20+ // Show dark/light mode switch toggle in header
1721 showDarkModeSwitch : true ,
22+ // Display edit this page button on every page
23+ showMarkdownEditButton : true ,
1824 colors : {
1925 ...modes . light ,
2026 modes : {
You can’t perform that action at this time.
0 commit comments