Devlog 7:
Changes
Documentation layout
I created a separate layout for the documentation page with the sidebar so that it appears on all /documentation/xyz pages. This was a lil crazy because even though i knew how it was supposed to work, some dumb css issue came up so i had to experiment through the fixes
Docs page
I made a page.tsx for the docs to appear and it was difficult because i wanted it to me automatic and i did not need to create pages and pages of documentation myself. So i did some trial and error on the page and tried to integrate the data from my components json file
The toughest thing i did : Preview
So the toughest thing i made was the preview component that shows the preview of my component. I tried many wasy to keep it optimized like i tried to keep one single component and do some stuff, but it did not work because each component needed their own parameters so i had to do it the recursive way by creating a component and rendering the individual components conditionally