From 35890db697a3c5236b0d932f1d016bed3712eda6 Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Sat, 14 Jan 2017 09:01:24 +0000 Subject: [PATCH] don't link for a single language --- src/book/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/book/mod.rs b/src/book/mod.rs index efc39907..73b6cdac 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -371,6 +371,10 @@ impl MDBook { } pub fn link_translations(&mut self) -> &mut MDBook { + if self.translations.keys().count() == 1 { + return self; + } + for (key, book) in self.translations.clone() { let mut newbook: Book = book.clone();