Skip to content

Commit

Permalink
feat: rename rome_markup -> biome_markup biomejs#88
Browse files Browse the repository at this point in the history
  • Loading branch information
ekusiadadus committed Sep 6, 2023
1 parent e42ef98 commit b8cc024
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ documentation = """
-p rome_text_edit \
-p rome_text_size \
-p rome_js_semantic \
-p rome_markup \
-p biome_markup \
-p rome_rowan
--no-deps
"""
Expand Down
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ A-Core:
- crates/rome_text_size/**
- crates/rome_suppression/**
- crates/rome_suppression/**
- crates/rome_markup/**
- crates/biome_markup/**

A-Project:
- crates/rome_service/**
- crates/rome_service/**

A-Linter:
- crates/rome_analyze/**
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ rome_json_formatter = { path = "./crates/rome_json_formatter" }
rome_json_parser = { path = "./crates/rome_json_parser" }
rome_json_syntax = { version = "0.2.0", path = "./crates/rome_json_syntax" }
rome_lsp = { path = "./crates/rome_lsp" }
rome_markup = { version = "0.0.1", path = "./crates/rome_markup" }
biome_markup = { version = "0.0.1", path = "./crates/biome_markup" }
rome_migrate = { path = "./crates/rome_migrate" }
rome_parser = { version = "0.2.0", path = "./crates/rome_parser" }
rome_rowan = { version = "0.2.0", path = "./crates/rome_rowan" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
authors.workspace = true
description = "Macro to write text using a HTML-like syntax"
documentation = "https://docs.rs/rome_markup"
documentation = "https://docs.rs/biome_markup"
edition.workspace = true
license.workspace = true
name = "rome_markup"
name = "biome_markup"
repository.workspace = true
version = "0.0.1"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `rome_markup`
# `biome_markup`

The crate contains procedural macros to build `rome_console` markup object with a JSX-like syntax

Expand All @@ -8,5 +8,5 @@ The macro cannot be used alone as it generates code that requires supporting typ
## Local installation

```toml
rome_markup = { version = "0.0.0", path = "../rome_markup" }
biome_markup = { version = "0.0.0", path = "../biome_markup" }
```
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/rome_console/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version = "0.0.1"

[dependencies]
atty = { workspace = true }
rome_markup = { workspace = true }
biome_markup = { workspace = true }
rome_text_size = { workspace = true }
schemars = { workspace = true, optional = true }
serde = { workspace = true, optional = true, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_console/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod write;

pub use self::markup::{Markup, MarkupBuf, MarkupElement, MarkupNode};
use crate::fmt::Formatter;
pub use rome_markup::markup;
pub use biome_markup::markup;

/// Determines the "output stream" a message should get printed to
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_console/src/write/termcolor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fn unicode_to_ascii(c: char) -> char {
mod tests {
use std::{fmt::Write, str::from_utf8};

use rome_markup::markup;
use biome_markup::markup;
use termcolor::Ansi;

use crate as rome_console;
Expand Down
4 changes: 2 additions & 2 deletions crates/rome_console/tests/macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn test_macro() {
match
// Due to how MarkupNode is implemented, the result of the markup macro
// cannot be stored in a binding and must be matched upon immediately
rome_markup::markup! {
biome_markup::markup! {
<Info><Emphasis>{category}</Emphasis>" Commands"</Info>
}
{
Expand All @@ -25,7 +25,7 @@ fn test_macro() {

#[test]
fn test_macro_attributes() {
rome_markup::markup! {
biome_markup::markup! {
<Hyperlink href="https://biomejs.dev/">"link"</Hyperlink>
};
}
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_js_semantic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ rustc-hash = { workspace = true }
rome_console = { workspace = true }
rome_diagnostics = { workspace = true }
rome_js_parser = { workspace = true }
rome_markup = { workspace = true }
biome_markup = { workspace = true }

0 comments on commit b8cc024

Please sign in to comment.