Skip to content

Commit 30129f9

Browse files
committed
chore: update version to 0.2.0 and enhance changelog with new features and fixes
1 parent 3111d39 commit 30129f9

7 files changed

Lines changed: 17 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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')

src/template/src/components/mdx/CodeGroup.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
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;

src/template/src/components/mdx/Tabs.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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"]');

src/template/src/env.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/// <reference path="../.astro/types.d.ts" />
1+
/// <reference path="../.astro/types.d.ts" />
2+
3+
declare module "js-yaml";

src/template/src/pages/index.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import Layout from '../layouts/Layout.astro';
32
import DocsLayout from '../components/landing/DocsLayout.astro';
43
import DocsHero from '../components/landing/DocsHero.astro';
54
import 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>

0 commit comments

Comments
 (0)