Skip to content

Commit 60ba4f9

Browse files
committed
bump cli in ci
1 parent 26d8a9b commit 60ba4f9

5 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
no-default-features: true
2424
features: fullstack
2525
debug-symbols: false
26-
dx-cli-version: 0.7.6
26+
dx-cli-version: 0.7.7

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ jobs:
5454
features: fullstack
5555
debug-symbols: false
5656
base-path: ${{ github.event.repository.name }}
57-
dx-cli-version: 0.7.6
57+
dx-cli-version: 0.7.7

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ jobs:
4545
features: fullstack
4646
debug-symbols: false
4747
base-path: ${{ github.event.repository.name }}
48-
dx-cli-version: 0.7.6
48+
dx-cli-version: 0.7.7
4949
toolchain: nightly

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
no-default-features: true
2222
features: fullstack
2323
debug-symbols: false
24-
dx-cli-version: 0.7.6
24+
dx-cli-version: 0.7.7

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,19 @@ fn push_code_segment<'a>(
427427
segments.push(CodeSegment { text, tag });
428428
}
429429

430+
/// Props for [`CodeSpan`].
430431
#[derive(Props, Clone, PartialEq)]
431432
pub struct CodeSpanProps {
433+
/// The literal text rendered inside the span.
432434
pub text: String,
435+
/// Highlight tag class suffix used to derive the span's class name.
433436
pub tag: &'static str,
434437
}
435438

439+
/// Render a single highlighted token as `<span class="a-{tag}">{text}</span>`.
440+
///
441+
/// Used internally by [`Code`] but exposed so callers can build their own
442+
/// layouts on top of [`HighlightSpan`].
436443
#[component]
437444
pub fn CodeSpan(props: CodeSpanProps) -> Element {
438445
let class = format!("a-{}", props.tag);

0 commit comments

Comments
 (0)