Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mdBook: update to 0.4.2.
@ 2020-08-16 14:48 ericonr
  2020-08-16 21:04 ` [PR PATCH] [Merged]: " jnbr
  0 siblings, 1 reply; 2+ messages in thread
From: ericonr @ 2020-08-16 14:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

There is a new pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages mdbook
https://github.com/void-linux/void-packages/pull/24309

mdBook: update to 0.4.2.
Tested on x86_64 with void-docs.

A patch file from https://github.com/void-linux/void-packages/pull/24309.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mdbook-24309.patch --]
[-- Type: text/x-diff, Size: 3370 bytes --]

From 51420d8c1655c511969a6850a842b116b2a81d23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 16 Aug 2020 11:48:00 -0300
Subject: [PATCH] mdBook: update to 0.4.2.

---
 srcpkgs/mdBook/patches/summary.patch | 53 ----------------------------
 srcpkgs/mdBook/template              |  4 +--
 2 files changed, 2 insertions(+), 55 deletions(-)
 delete mode 100644 srcpkgs/mdBook/patches/summary.patch

diff --git a/srcpkgs/mdBook/patches/summary.patch b/srcpkgs/mdBook/patches/summary.patch
deleted file mode 100644
index 5ba202fabac..00000000000
--- a/srcpkgs/mdBook/patches/summary.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From dcf9462d1e69975d505dfb1b6d4139acb89f10a1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
-Date: Tue, 28 Jul 2020 22:54:49 -0300
-Subject: [PATCH] summary: turn SoftBreak events into spaces.
-
-Summary items that had their name split into two lines ended up with the
-last word of one line and the first word of the next line glued
-together, since a space wasn't added.
-
-Added test case for it.
-
-Fixes #1218
----
- src/book/summary.rs | 21 +++++++++++++++++++++
- 1 file changed, 21 insertions(+)
-
-diff --git a/src/book/summary.rs b/src/book/summary.rs
-index 996913a0a5..4782eb84ac 100644
---- src/book/summary.rs
-+++ src/book/summary.rs
-@@ -569,6 +569,7 @@ fn stringify_events(events: Vec<Event<'_>>) -> String {
-         .into_iter()
-         .filter_map(|t| match t {
-             Event::Text(text) | Event::Code(text) => Some(text.into_string()),
-+            Event::SoftBreak => Some(String::from(" ")),
-             _ => None,
-         })
-         .collect()
-@@ -926,4 +927,24 @@ mod tests {
- 
-         assert_eq!(got, should_be);
-     }
-+
-+    /// Regression test for https://github.com/rust-lang/mdBook/issues/1218
-+    /// Ensure chapter names spread across multiple lines have spaces between all the words.
-+    #[test]
-+    fn add_space_for_multi_line_chapter_names() {
-+        let src = "- [Chapter\ntitle](./chapter.md)";
-+        let should_be = vec![SummaryItem::Link(Link {
-+            name: String::from("Chapter title"),
-+            location: Some(PathBuf::from("./chapter.md")),
-+            number: Some(SectionNumber(vec![1])),
-+            nested_items: Vec::new(),
-+        })];
-+
-+        let mut parser = SummaryParser::new(src);
-+        let got = parser
-+            .parse_numbered(&mut 0, &mut SectionNumber::default())
-+            .unwrap();
-+
-+        assert_eq!(got, should_be);
-+    }
- }
diff --git a/srcpkgs/mdBook/template b/srcpkgs/mdBook/template
index 94009860d06..5a6ea5392dc 100644
--- a/srcpkgs/mdBook/template
+++ b/srcpkgs/mdBook/template
@@ -1,6 +1,6 @@
 # Template file for 'mdBook'
 pkgname=mdBook
-version=0.4.1
+version=0.4.2
 revision=1
 build_style=cargo
 short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
@@ -9,7 +9,7 @@ license="MPL-2.0"
 homepage="https://github.com/rust-lang/mdBook"
 changelog="https://raw.githubusercontent.com/rust-lang/mdBook/master/CHANGELOG.md"
 distfiles="https://github.com/rust-lang/mdBook/archive/v${version}.tar.gz"
-checksum=48ee2d7102b440dbdb5ecb0849e82368a57777b03f3d6750ac7c47157b1da7ac
+checksum=9baebd8359442b1ff99a8ae4d8d197721525b746399e01f7fdcb67b4c34dd497
 
 post_install() {
 	vlicense LICENSE

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: mdBook: update to 0.4.2.
  2020-08-16 14:48 [PR PATCH] mdBook: update to 0.4.2 ericonr
@ 2020-08-16 21:04 ` jnbr
  0 siblings, 0 replies; 2+ messages in thread
From: jnbr @ 2020-08-16 21:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

There's a merged pull request on the void-packages repository

mdBook: update to 0.4.2.
https://github.com/void-linux/void-packages/pull/24309

Description:
Tested on x86_64-musl with void-docs.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-16 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 14:48 [PR PATCH] mdBook: update to 0.4.2 ericonr
2020-08-16 21:04 ` [PR PATCH] [Merged]: " jnbr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).