mirror of
https://github.com/tommilligan/mdbook-admonish.git
synced 2025-12-28 14:58:48 -05:00
Compare commits
1 Commits
bug-127
...
normalize-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f96fe54e7d |
@@ -1,7 +1,11 @@
|
||||
## Changelog
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- Custom installation and CSS directories are now normalized ([#49](https://github.com/tommilligan/mdbook-admonish/pull/49))
|
||||
|
||||
## 1.8.0
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -14,4 +14,4 @@ assets_version = "2.0.0" # do not edit: managed by `mdbook-admonish install`
|
||||
[output]
|
||||
|
||||
[output.html]
|
||||
additional-css = ["././mdbook-admonish.css"]
|
||||
additional-css = ["./mdbook-admonish.css"]
|
||||
|
||||
@@ -14,4 +14,4 @@ assets_version = "2.0.0" # do not edit: managed by `mdbook-admonish install`
|
||||
[output]
|
||||
|
||||
[output.html]
|
||||
additional-css = ["././mdbook-admonish.css"]
|
||||
additional-css = ["./mdbook-admonish.css"]
|
||||
|
||||
@@ -145,6 +145,9 @@ mod install {
|
||||
let mut additional_css = additional_css(&mut doc);
|
||||
for (name, content) in ADMONISH_CSS_FILES {
|
||||
let filepath = proj_dir.join(&css_dir).join(name);
|
||||
// Normalize path to remove no-op components
|
||||
// https://github.com/tommilligan/mdbook-admonish/issues/47
|
||||
let filepath: PathBuf = filepath.components().collect();
|
||||
let filepath_str = filepath.to_str().context("non-utf8 filepath")?;
|
||||
|
||||
if let Ok(ref mut additional_css) = additional_css {
|
||||
|
||||
Reference in New Issue
Block a user