File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.2.0] - 2025-12-29
9+ ### Fixed
10+ - ** Eject** : Resolved build errors in ejected projects by properly handling dependencies and configuration.
11+
12+ ### Improved
13+ - ** MDX Components** : Refined ` Tabs ` and ` CodeGroup ` components for better stability and rendering.
14+ - ** Template** : Modernized documentation template with Astro 5 and Tailwind CSS v4 support.
15+
816## [ 0.1.0] - 2025-12-28 (Pre-Release)
917
1018### Added
Original file line number Diff line number Diff line change 11{
22 "name" : " @devrohit06/superdocs" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 0.2 .0" ,
44 "description" : " The open-source Mintlify alternative. Beautiful documentation sites from Markdown." ,
55 "main" : " src/index.js" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export async function cli() {
1010 program
1111 . name ( 'superdocs' )
1212 . description ( 'The open-source Mintlify alternative. Beautiful docs from Markdown.' )
13- . version ( '1.0 .0' ) ;
13+ . version ( '0.2 .0' ) ;
1414
1515 program
1616 . command ( 'build' )
Original file line number Diff line number Diff line change 7474
7575 // Get title from code block or default to language
7676 const langClass = block.className.match(/language-(\w+)/);
77- const title = block.dataset.title || langClass?.[1] || `Tab ${index + 1}`;
77+ const title = ( block as HTMLElement) .dataset.title || langClass?.[1] || `Tab ${index + 1}`;
7878
7979 const btn = document.createElement('button');
8080 btn.textContent = title;
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ const hasItemsProp = Array.isArray(items) && items.length > 0;
7474<script >
7575 function initTabs() {
7676 document.querySelectorAll('.tabs-container').forEach((container) => {
77- const id = container.getAttribute('data-tabs-id');
7877 const defaultIndex = parseInt(container.getAttribute('data-default-index') || '0');
7978 const dynamicHeader = container.querySelector('.dynamic-tabs');
8079 const staticHeader = container.querySelector('.tabs-header:not(.dynamic-tabs)');
@@ -93,8 +92,8 @@ const hasItemsProp = Array.isArray(items) && items.length > 0;
9392 button.textContent = title;
9493 dynamicHeader.appendChild(button);
9594 });
96- dynamicHeader.style.display = 'flex';
97- if (staticHeader) staticHeader.style.display = 'none';
95+ ( dynamicHeader as HTMLElement) .style.display = 'flex';
96+ if (staticHeader) ( staticHeader as HTMLElement) .style.display = 'none';
9897 }
9998
10099 const buttons = container.querySelectorAll('[role="tab"]');
Original file line number Diff line number Diff line change 1- /// <reference path="../.astro/types.d.ts" />
1+ /// <reference path="../.astro/types.d.ts" />
2+
3+ declare module "js-yaml" ;
Original file line number Diff line number Diff line change 11---
2- import Layout from ' ../layouts/Layout.astro' ;
32import DocsLayout from ' ../components/landing/DocsLayout.astro' ;
43import DocsHero from ' ../components/landing/DocsHero.astro' ;
54import DocsFeatureGrid from ' ../components/landing/DocsFeatureGrid.astro' ;
@@ -58,7 +57,7 @@ const secondaryBtn = heroConfig?.cta?.find(c => c.variant === 'secondary');
5857 <head >
5958 <meta charset = " UTF-8" />
6059 <meta http-equiv = " refresh" content = { ` 0;url=${redirectUrl } ` } />
61- <script define :vars = { { redirectUrl }} >
60+ <script is : inline define :vars = { { redirectUrl }} >
6261 window.location.href = redirectUrl;
6362 </script >
6463 <title >Redirecting...</title >
You can’t perform that action at this time.
0 commit comments