Skip to content

Commit 4a970b7

Browse files
authored
Merge branch 'main' into main
2 parents 0af41f9 + 24675bb commit 4a970b7

32 files changed

+131
-8
lines changed

src/components/AnnotatedCode/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ for (const attr of codeTag.attributes) {
9595
return (
9696
<tr class="[&>*]:align-top [&>*]:m-0 [&>*:not(:first-child)]:py-2 [&>*:not(:first-child)]:pl-6 [&>*:not(:first-child)]:max-w-xl">
9797
<td class="align-top p-0" style="height:100%; margin:0">
98-
<pre {...preAttrs} style={`${getPreStyle(i)};height:100%`}><code {...codeAttrs} set:html={lineNodes.map((n) => n.outerHTML).join('\n')} /></pre>
98+
<pre {...preAttrs} style={`${getPreStyle(i)};overflow:visible;white-space:pre-wrap;word-wrap:break-word;height:100%;`}><code {...codeAttrs} set:html={lineNodes.map((n) => n.outerHTML).join('\n')} /></pre>
9999
</td>
100100
{props.columns ? (
101101
<Fragment set:html={row.slot ? Astro.slots.render(row.slot) : undefined} />

src/components/ReferenceDirectoryWithFilter/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useMemo, useRef, useState } from "preact/hooks";
33
import { type JSX } from "preact";
44
import { Icon } from "../Icon";
55
import flask from "@src/content/ui/images/icons/flask.svg?raw";
6+
import warning from "@src/content/ui/images/icons/warning.svg?raw";
67

78
type ReferenceDirectoryEntry = ReferenceDocContentItem & {
89
data: {
@@ -43,6 +44,10 @@ const getOneLineDescription = (description: string): string => {
4344
let [oneLineDescription] = description.replace(/\n/g, " ").trim()
4445
.match(firstParagraphRegex) ?? [];
4546

47+
if (!oneLineDescription && description) {
48+
oneLineDescription = description;
49+
}
50+
4651
if(oneLineDescription){
4752
oneLineDescription = oneLineDescription
4853
.replace(/^<p>|<\/p>$/g, "")
@@ -108,6 +113,12 @@ export const ReferenceDirectoryWithFilter = ({
108113
dangerouslySetInnerHTML={{ __html: flask }}
109114
/>
110115
)}
116+
{entry.data.deprecated && (
117+
<div
118+
className="inline-block mr-2 w-[16px] h-[16px] mb-[-2px]"
119+
dangerouslySetInnerHTML={{ __html: warning }}
120+
/>
121+
)}
111122
<span dangerouslySetInnerHTML={{ __html: entry.data.title }} />
112123
</span>
113124
<p
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: Animesh Sinha
3+
url: http://www.facebook.com/AnimeshSinha1309
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: Ashish Karn
3+
url: https://karn-ashish-16.onrender.com/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: Bojidar Marinov
3+
url: https://bojidar-bg.dev/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: Casey Conchinha
3+
url: http://kccon.ch

src/content/people/en/crh82.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: crh82
3+
url: https://github.com/crh82
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: Darren Kessner
3+
url: https://dkessner.github.io/

src/content/people/en/davidblitz.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: davidblitz
3+
url: https://github.com/davidblitz
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category: contributor
2+
name: Gabriel Sroka
3+
url: https://gabrielsroka.github.io

0 commit comments

Comments
 (0)