Skip to content

Commit

Permalink
Allow docs.rs to include custom smufl font
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Jun 18, 2024
1 parent ddd8e98 commit 4ab76a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "1.0.2"
version = "1.0.3"
authors = ["Will Hedgecock <[email protected]>"]
license = "MIT"
documentation = "https://docs.rs/musicxml/latest/"
Expand All @@ -16,8 +16,8 @@ categories = ["api-bindings", "encoding", "parsing"]
publish = true

[workspace.dependencies]
musicxml_internal = { path = "musicxml_internal", version = "1.0.2" }
musicxml_macros = { path = "musicxml_macros", version = "1.0.2" }
musicxml_internal = { path = "musicxml_internal", version = "1.0.3" }
musicxml_macros = { path = "musicxml_macros", version = "1.0.3" }

[profile.release]
codegen-units = 4096
Expand Down
3 changes: 3 additions & 0 deletions musicxml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ keywords.workspace = true
categories.workspace = true
publish.workspace = true

[package.metadata.docs.rs]
rustdoc-args = ["--extend-css", "musicxml/assets/docs.css"]

[dependencies]
regex = { version = "1.10", default-features = false, features = ["std", "perf"] }
zip = { version = "2.1", default-features = false, features = ["deflate"] }
Expand Down
4 changes: 2 additions & 2 deletions musicxml/assets/docs.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@font-face {
font-family: 'smufl';
src: url('fonts/BravuraText.woff2') format('woff2'),
url('fonts/BravuraText.woff') format('woff');
src: url('https://hedgetechllc.github.io/musicxml/fonts/BravuraText.woff2') format('woff2'),
url('https://hedgetechllc.github.io/musicxml/fonts/BravuraText.woff') format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down

0 comments on commit 4ab76a0

Please sign in to comment.