Open Ayase-252 opened 4 years ago
A few things to note:
I would use npx docz dev
/ yarn docz dev
as stated in the docs. It wouldn't surprise me if running directly the underlying Gatsby would skip the Docz configuration.
If you want the dark mode as the default one, it should be done this way:
themeConfig: {
initialColorMode: 'dark',
},
I checked your repository and there is nothing suspicious in your MDX file (except the Japanese Chinese (sorry! 🙏 ) 🙂). Have you tried updating the dependencies? Also, there are some other issues here related to the MDX package used so it might be the cause…
Question
I'm a bit confused on how to develop and build a docz website with gatsby. According to document,
yarn docz dev
oryarn docz build
should be used to start a developing server and build production version respectively. Howerver, in example, it seems to usegastby develop
andgastby build
for development and build respectively.I tried both methods. If I use
yarn docz dev
, it ends up a weird webpack error:If I use
gatsby develop
, it do not reflect the configration ondoczrc.js
. As you can see with configlight mode is still default when open localhost:8000.
There is the demo repository. I'm not certain about where I did wrong. Wrong project configration, wrong commands to use? What is the preferred way to start and build? Thank you.