Skip to content

Commit 6cec0b4

Browse files
committed
Fix playground types and docs lint issues
1 parent c2f42f2 commit 6cec0b4

15 files changed

Lines changed: 95 additions & 58 deletions

File tree

app/docs/getting-started/first-document/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Blocks: 2 (meta, doc)`}
120120
<section className="mb-12">
121121
<h2 className="text-3xl font-bold mb-4">Complete Example</h2>
122122

123-
<p className="mb-4">Here's a complete OSF document with all basic features:</p>
123+
<p className="mb-4">Here&apos;s a complete OSF document with all basic features:</p>
124124

125125
<div className="bg-gray-900 p-4 rounded border-2 border-gray-700 overflow-x-auto">
126126
<pre className="text-gray-300 font-mono text-sm">
@@ -169,7 +169,7 @@ Blocks: 2 (meta, doc)`}
169169

170170
{/* Next Steps */}
171171
<section>
172-
<h2 className="text-3xl font-bold mb-4">What's Next?</h2>
172+
<h2 className="text-3xl font-bold mb-4">What&apos;s Next?</h2>
173173

174174
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
175175
<a

app/docs/getting-started/installation/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function InstallationPage() {
7171
<ol className="list-decimal pl-6 mb-4 space-y-2">
7272
<li>Open Visual Studio Code</li>
7373
<li>Press <code className="bg-gray-800 px-2 py-1 rounded">Ctrl+Shift+X</code> (Windows/Linux) or <code className="bg-gray-800 px-2 py-1 rounded">Cmd+Shift+X</code> (Mac)</li>
74-
<li>Search for "OmniScript Format"</li>
74+
<li>Search for &quot;OmniScript Format&quot;</li>
7575
<li>Click Install</li>
7676
</ol>
7777

app/docs/releases/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'use client';
77

88
import Navigation from '@/components/Navigation';
9-
import { CheckCircle, Warning, RocketLaunch, GitBranch } from 'phosphor-react';
9+
import { CheckCircle } from 'phosphor-react';
1010

1111
export default function ReleasesPage() {
1212
return (
@@ -37,7 +37,7 @@ export default function ReleasesPage() {
3737
</p>
3838

3939
<div className="mb-4">
40-
<h3 className="text-xl font-bold mb-2">✨ What's New</h3>
40+
<h3 className="text-xl font-bold mb-2">✨ What&apos;s New</h3>
4141
<ul className="list-disc list-inside space-y-1 text-gray-300">
4242
<li>@table blocks - Markdown-style tables with captions, alignment, styling</li>
4343
<li>@include directive - Modular documents with file composition</li>
@@ -82,7 +82,7 @@ export default function ReleasesPage() {
8282
</p>
8383

8484
<div className="mb-4">
85-
<h3 className="text-xl font-bold mb-2">✨ What's New</h3>
85+
<h3 className="text-xl font-bold mb-2">✨ What&apos;s New</h3>
8686
<ul className="list-disc list-inside space-y-1 text-gray-300">
8787
<li>@chart blocks - Data visualization with 5 chart types</li>
8888
<li>@diagram blocks - Flowcharts, sequences, Gantt, mindmaps</li>
@@ -167,7 +167,7 @@ export default function ReleasesPage() {
167167
</p>
168168

169169
<div className="mb-4">
170-
<h3 className="text-xl font-bold mb-2">✨ What's New</h3>
170+
<h3 className="text-xl font-bold mb-2">✨ What&apos;s New</h3>
171171
<ul className="list-disc list-inside space-y-1 text-gray-300">
172172
<li>Strikethrough text support (~~text~~)</li>
173173
<li>Ordered lists and blockquotes</li>

app/docs/releases/v1-0/page.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'use client';
77

88
import Navigation from '@/components/Navigation';
9-
import { Rocket, ChartBar, FlowArrow, Code, CheckCircle, Warning, Star, Confetti } from 'phosphor-react';
9+
import { Rocket, CheckCircle, Warning, Star, Confetti } from 'phosphor-react';
1010

1111
export default function V1ReleaseNotesPage() {
1212
return (
@@ -36,11 +36,11 @@ export default function V1ReleaseNotesPage() {
3636
</p>
3737
</section>
3838

39-
{/* What's New */}
39+
{/* What&apos;s New */}
4040
<section className="mb-12">
4141
<h2 className="text-4xl font-bold mb-6 border-b-2 border-white pb-2 flex items-center gap-3">
4242
<Rocket size={36} weight="duotone" />
43-
What's New
43+
What&apos;s New
4444
</h2>
4545

4646
{/* @chart blocks */}
@@ -273,7 +273,10 @@ export default function V1ReleaseNotesPage() {
273273
<h4 className="font-bold mb-2">Recommended Updates:</h4>
274274
<ol className="list-decimal list-inside space-y-2 text-gray-300">
275275
<li>Update packages: <code className="bg-black px-2 py-1">npm update omniscript-*</code></li>
276-
<li>Add version to @meta: <code className="bg-black px-2 py-1">version: "1.0";</code></li>
276+
<li>
277+
Add version to @meta:{' '}
278+
<code className="bg-black px-2 py-1">version: &quot;1.0&quot;;</code>
279+
</li>
277280
<li>Explore new blocks (@chart, @diagram, @code)</li>
278281
</ol>
279282
</div>
@@ -340,11 +343,11 @@ export default function V1ReleaseNotesPage() {
340343
</div>
341344
</section>
342345

343-
{/* What's Next */}
346+
{/* What&apos;s Next */}
344347
<section className="mb-12">
345348
<h2 className="text-4xl font-bold mb-6 border-b-2 border-white pb-2 flex items-center gap-3">
346349
<Star size={36} weight="duotone" />
347-
What's Next (v1.1)
350+
What&apos;s Next (v1.1)
348351
</h2>
349352

350353
<div className="border-2 border-blue-500 p-6">
@@ -375,7 +378,7 @@ export default function V1ReleaseNotesPage() {
375378
<h2 className="text-4xl font-bold mb-6 border-b-2 border-white pb-2">Thank You</h2>
376379
<div className="bg-gray-900 p-6">
377380
<p className="text-xl text-gray-300 mb-4">
378-
Thank you for using OmniScript Format! We're excited to see what you build with v1.0.
381+
Thank you for using OmniScript Format! We&apos;re excited to see what you build with v1.0.
379382
</p>
380383
<p className="text-gray-300">
381384
<strong>Happy documenting!</strong> 🚀

app/docs/releases/v1-1/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function V11ReleasePage() {
2727

2828
<hr />
2929

30-
<h2>🎉 What's New</h2>
30+
<h2>🎉 What&apos;s New</h2>
3131

3232
<h3 id="strikethrough">✨ Strikethrough Text Formatting</h3>
3333
<p>Use <code>~~text~~</code> syntax for strikethrough formatting:</p>

app/docs/releases/v1-2/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default function V12ReleasePage() {
145145
<div className="p-6 bg-gray-900 border-2 border-white">
146146
<h3 className="text-2xl font-bold mb-3">Type Safety</h3>
147147
<ul className="space-y-2 text-gray-300">
148-
<li>• Zero 'any' types</li>
148+
<li>• Zero &apos;any&apos; types</li>
149149
<li>• Strict TypeScript mode</li>
150150
<li>• exactOptionalPropertyTypes enabled</li>
151151
<li>• Full type coverage</li>

app/docs/user-guide/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ export default function UserGuidePage() {
253253
</div>
254254

255255
<div className="border-2 border-red-500 p-4">
256-
<h3 className="font-bold text-white mb-2">❌ DON'T: Mix block types incorrectly</h3>
256+
<h3 className="font-bold text-white mb-2">❌ DON&apos;T: Mix block types incorrectly</h3>
257257
<p>Each block should contain only its appropriate properties.</p>
258258
</div>
259259

260260
<div className="border-2 border-red-500 p-4">
261-
<h3 className="font-bold text-white mb-2">❌ DON'T: Forget semicolons</h3>
261+
<h3 className="font-bold text-white mb-2">❌ DON&apos;T: Forget semicolons</h3>
262262
<p>All property assignments must end with a semicolon.</p>
263263
</div>
264264
</div>

app/docs/v1-2-features/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export default function V12FeaturesPage() {
8181
<h3 className="text-2xl font-bold mb-4">Table Properties</h3>
8282
<ul className="space-y-3 text-gray-300">
8383
<li><strong>caption</strong>: Optional table title displayed above the table</li>
84-
<li><strong>style</strong>: <code className="bg-black px-2 py-1">"bordered"</code>, <code className="bg-black px-2 py-1">"striped"</code>, or <code className="bg-black px-2 py-1">"minimal"</code></li>
85-
<li><strong>alignment</strong>: Array of <code className="bg-black px-2 py-1">"left"</code>, <code className="bg-black px-2 py-1">"center"</code>, or <code className="bg-black px-2 py-1">"right"</code></li>
84+
<li><strong>style</strong>: <code className="bg-black px-2 py-1">&quot;bordered&quot;</code>, <code className="bg-black px-2 py-1">&quot;striped&quot;</code>, or <code className="bg-black px-2 py-1">&quot;minimal&quot;</code></li>
85+
<li><strong>alignment</strong>: Array of <code className="bg-black px-2 py-1">&quot;left&quot;</code>, <code className="bg-black px-2 py-1">&quot;center&quot;</code>, or <code className="bg-black px-2 py-1">&quot;right&quot;</code></li>
8686
</ul>
8787
</div>
8888

@@ -316,7 +316,7 @@ export default function V12FeaturesPage() {
316316
</p>
317317
<ul className="space-y-2 text-gray-300">
318318
<li>• Table column counts must match header</li>
319-
<li>• Alignment values must be "left", "center", or "right"</li>
319+
<li>• Alignment values must be &quot;left&quot;, &quot;center&quot;, or &quot;right&quot;</li>
320320
<li>• Number parsing is more strict</li>
321321
</ul>
322322
<p className="text-gray-300 mt-4">

app/docs/v1-features/chart-blocks/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
'use client';
77

88
import Navigation from '@/components/Navigation';
9-
import { ChartBar, GameController } from 'phosphor-react';
109

1110
export default function ChartBlocksPage() {
1211
return (

app/docs/v1-features/code-blocks/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
'use client';
77

88
import Navigation from '@/components/Navigation';
9-
import { Code, GameController, CheckCircle, Warning } from 'phosphor-react';
109

1110
export default function CodeBlocksPage() {
1211
return (
@@ -261,7 +260,7 @@ export default function CodeBlocksPage() {
261260
<div className="border-l-4 border-green-500 pl-4">
262261
<h4 className="font-bold mb-1">✅ Use Captions</h4>
263262
<p className="text-gray-300 text-sm">
264-
Add captions to provide context: "Example usage", "Error handling", "Configuration", etc.
263+
Add captions to provide context: &quot;Example usage&quot;, &quot;Error handling&quot;, &quot;Configuration&quot;, etc.
265264
</p>
266265
</div>
267266

0 commit comments

Comments
 (0)