Skip to content

reuse pre style in calcit #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

reuse pre style in calcit #41

wants to merge 1 commit into from

Conversation

tiye
Copy link
Member

@tiye tiye commented Jun 18, 2025

No description provided.

@tiye tiye requested review from a team and Copilot June 18, 2025 17:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates versioning, dependency versions, and consolidates <pre> and <blockquote> styles into the cirru-based code generator while removing them from the standalone CSS file.

  • Bumps package and module versions across package.json, deps.cirru, compact.cirru, and calcit.cirru
  • Migrates <pre> and <blockquote> styling from assets/main.css into nested & selectors in cirru code
  • Updates example in docs/guide.md and bumps GitHub Action Node version to 24

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
package.json Version bump to 0.0.21; dependency upgrades
docs/guide.md Extended demo string in println call
deps.cirru Updated :calcit-version and Respo sub-dependencies
compact.cirru Version bump; replaced $0 placeholder with & and added nested styles for pre/blockquote
calcit.cirru Version bump; mirrored nested style changes for pre/blockquote
assets/main.css Removed standalone pre and blockquote styles
.github/workflows/upload.yaml Node version updated from 20 to 24
Comments suppressed due to low confidence (1)

.github/workflows/upload.yaml:17

  • GitHub Actions’ actions/setup-node officially supports Node LTS versions; confirm that Node.js 24 is supported by this action or consider sticking to a current LTS (e.g., 20) to avoid unexpected failures.
        node-version: 24

@@ -3,7 +3,7 @@
show you a demo:

```
println "|a demo of code"
println "|a demo of code" "|longlonglonglonglonglonglonglonglonglonglonglonglonglong"
Copy link
Preview

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] This line is very long and may hurt readability in the docs. Consider breaking the string into smaller parts or using a multiline code block to demonstrate long output.

Suggested change
println "|a demo of code" "|longlonglonglonglonglonglonglonglonglonglonglonglonglong"
println "|a demo of code"
"|longlonglonglonglonglonglonglonglonglonglonglonglonglong"

Copilot uses AI. Check for mistakes.

:border $ str "\"1px solid " (hsl 0 0 90)
:border-radius "\"4px"
:padding "\"2px 2px"
:margin "\"-2px 2px"
"\"& pre" $ {} (:background-color "|hsla(0, 0%, 96%, 0.5)") (:border "|1px solid #eee") (:padding "|2px 8px") (:line-height |1.4) (:min-width |400px) (:border-radius |4px) (:overflow |auto)
Copy link
Preview

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Embedding a large block of CSS directly in the cirru AST can make the code harder to maintain. Consider extracting this style into a reusable CSS module or a shared configuration.

Copilot uses AI. Check for mistakes.

@@ -1739,6 +1739,70 @@
:data $ {}
|T $ %{} :Leaf (:at 1657312985716) (:by |rJG4IHzWf) (:text |:margin)
|b $ %{} :Leaf (:at 1657313000582) (:by |rJG4IHzWf) (:text "|\"-2px 2px")
|h $ %{} :Expr (:at 1750267690164) (:by |rJG4IHzWf)
:data $ {}
|T $ %{} :Leaf (:at 1750267693476) (:by |rJG4IHzWf) (:text "|\"& pre")
Copy link
Preview

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addition mirrors the large inline CSS block from compact.cirru. You might centralize these style definitions or reference a shared helper to reduce duplication across generators.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant