Skip to content

Commit 024c0c8

Browse files
committed
Fix repo slug, fix anchors, fix SVG and span, remove animations per guidelines.
1 parent 844643f commit 024c0c8

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/src/components/sdk/hook-documentation.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,18 +415,18 @@ export function HookDocumentation({ hookInfo }: HookDocumentationProps) {
415415
{hookInfo.sourcePath && hookInfo.line ? (
416416
<div className="mt-4 pt-4 border-t border-fd-border">
417417
<a
418-
href={`https://github.com/stack-auth/stack/blob/main/packages/template/${hookInfo.sourcePath}#L${hookInfo.line}`}
418+
href={`https://github.com/stack-auth/stack-auth/blob/main/packages/template/${hookInfo.sourcePath}#L${hookInfo.line}`}
419419
target="_blank"
420420
rel="noopener noreferrer"
421-
className="group flex items-center gap-2 px-3 py-2 rounded-lg border border-fd-border bg-fd-secondary/30 hover:bg-fd-secondary/50 hover:border-fd-accent-foreground/50 transition-all duration-200 no-underline"
421+
className="group flex items-center gap-2 px-3 py-2 rounded-lg border border-fd-border bg-fd-secondary/30 hover:bg-fd-secondary/50 hover:border-fd-accent-foreground/50 transition-colors hover:transition-none no-underline"
422422
>
423-
<svg className="w-3.5 h-3.5 text-fd-muted-foreground group-hover:text-fd-accent-foreground transition-colors flex-shrink-0" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
423+
<svg className="w-3.5 h-3.5 text-fd-muted-foreground group-hover:text-fd-accent-foreground transition-colors hover:transition-none flex-shrink-0" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
424424
<path fillRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clipRule="evenodd" />
425425
</svg>
426-
<span className="flex-1 text-xs font-medium text-fd-foreground group-hover:text-fd-accent-foreground transition-colors truncate">
426+
<span className="flex-1 text-xs font-medium text-fd-foreground group-hover:text-fd-accent-foreground transition-colors hover:transition-none truncate">
427427
View Source · {hookInfo.sourcePath.split('/').pop()}:{hookInfo.line}
428428
</span>
429-
<svg className="w-3 h-3 text-fd-muted-foreground group-hover:text-fd-accent-foreground group-hover:translate-x-0.5 transition-all flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
429+
<svg className="w-3 h-3 text-fd-muted-foreground group-hover:text-fd-accent-foreground transition-colors hover:transition-none flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
430430
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
431431
</svg>
432432
</a>

docs/src/components/sdk/overview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export function SDKOverview({ sections }: SDKOverviewProps) {
7979
key={itemIndex}
8080
href={buildSDKUrl(item.href)}
8181
className={cn(
82-
'group relative flex items-center gap-3 p-4 rounded-lg border transition-all duration-200',
83-
'hover:shadow-md hover:shadow-fd-primary/5 hover:border-fd-primary/20',
82+
'group relative flex items-center gap-3 p-4 rounded-lg border transition-colors hover:transition-none',
83+
'hover:border-fd-primary/20',
8484
'bg-fd-card/30 hover:bg-fd-card/50',
8585
'border-fd-border hover:border-fd-primary/30'
8686
)}

docs/src/components/sdk/type-documentation.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -769,18 +769,18 @@ function renderMemberDocumentation(typeInfo: TypeInfo, member: TypeMember, platf
769769
{member.sourcePath && member.line ? (
770770
<div className="mt-4 pt-4 border-t border-fd-border">
771771
<a
772-
href={`https://github.com/stack-auth/stack/blob/main/packages/template/${member.sourcePath}#L${member.line}`}
772+
href={`https://github.com/stack-auth/stack-auth/blob/main/packages/template/${member.sourcePath}#L${member.line}`}
773773
target="_blank"
774774
rel="noopener noreferrer"
775-
className="group flex items-center gap-2 px-3 py-2 rounded-lg border border-fd-border bg-fd-secondary/30 hover:bg-fd-secondary/50 hover:border-fd-accent-foreground/50 transition-all duration-200 no-underline"
775+
className="group flex items-center gap-2 px-3 py-2 rounded-lg border border-fd-border bg-fd-secondary/30 hover:bg-fd-secondary/50 hover:border-fd-accent-foreground/50 transition-colors hover:transition-none no-underline"
776776
>
777-
<svg className="w-3.5 h-3.5 text-fd-muted-foreground group-hover:text-fd-accent-foreground transition-colors flex-shrink-0" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
777+
<svg className="w-3.5 h-3.5 text-fd-muted-foreground group-hover:text-fd-accent-foreground transition-colors hover:transition-none flex-shrink-0" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
778778
<path fillRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clipRule="evenodd" />
779779
</svg>
780-
<span className="flex-1 text-xs font-medium text-fd-foreground group-hover:text-fd-accent-foreground transition-colors truncate">
780+
<span className="flex-1 text-xs font-medium text-fd-foreground group-hover:text-fd-accent-foreground transition-colors hover:transition-none truncate">
781781
View Source · {member.sourcePath.split('/').pop()}:{member.line}
782782
</span>
783-
<svg className="w-3 h-3 text-fd-muted-foreground group-hover:text-fd-accent-foreground group-hover:translate-x-0.5 transition-all flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
783+
<svg className="w-3 h-3 text-fd-muted-foreground group-hover:text-fd-accent-foreground transition-colors hover:transition-none flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
784784
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
785785
</svg>
786786
</a>

0 commit comments

Comments
 (0)