The branch, epub/new_features/navigation, has been created.
at 5f39ecb06228ba9953b3d51f1b899e4c91e04855 (commit)
- Log -----------------------------------------------------------------
commit 5f39ecb06228ba9953b3d51f1b899e4c91e04855
Merge: 8032867 ceabe98
Author: Josh Hieronymus <[email protected]>
Date: Fri Sep 13 15:31:30 2013 -0400
Merge branch 'epub/master' into epub/new_features/navigation
commit 8032867383e6c3079191830c1204485fe006fffa
Author: Josh Hieronymus <[email protected]>
Date: Thu Sep 12 12:21:38 2013 -0400
Move the functionality to hide the ToC to a separate module.
The user might actually want the EPUB to display the Table of
Contents, so we should place this functionality in a module of its
own and not in the module that provides metadata for the EPUB.
diff --git a/lib/layouts/epub-hide-toc.module b/lib/layouts/epub-hide-toc.module
new file mode 100644
index 0000000..30e3dbe
--- /dev/null
+++ b/lib/layouts/epub-hide-toc.module
@@ -0,0 +1,16 @@
+#\DeclareLyXModule{EPUB Hide ToC}
+#DescriptionBegin
+#Prevent the Table of Contents from being displayed so that the EPUB conversion
+#scripts can use the navigation information without actually displaying the
ToC.
+#DescriptionEnd
+#Author: Josh Hieronymus
+
+Format 48
+
+InsetLayout TOC
+ HTMLStyle
+ div.toc {
+ display: none;
+ }
+ EndHTMLStyle
+End
diff --git a/lib/layouts/epub-metadata.module b/lib/layouts/epub-metadata.module
index 82ed32b..1fdc13c 100644
--- a/lib/layouts/epub-metadata.module
+++ b/lib/layouts/epub-metadata.module
@@ -1,6 +1,6 @@
#\DeclareLyXModule{EPUB Metadata}
#DescriptionBegin
-#Define a style for embedding EPUB metadata into an XHTML file for the purpose
+#Define styles for embedding EPUB metadata into an XHTML file for the purpose
#of inclusion in an EPUB file.
#DescriptionEnd
#Author: Josh Hieronymus
@@ -66,12 +66,4 @@ Style "EPUB Author (file-as order)"
HTMLAttr "class='epub-metadata epub-author-file-as-order'"
End
-InsetLayout TOC
- HTMLStyle
- div.toc {
- display: none;
- }
- EndHTMLStyle
-End
-
NoStyle "EPUB Metadata"
commit c3a17c770185ce80d5994a200d4b60e5f8e03a92
Author: Josh Hieronymus <[email protected]>
Date: Thu Sep 12 12:02:28 2013 -0400
Hide Table of Contents when exporting to EPUB.
One method to provide navigation information to the EPUB
conversion scripts is to include the Table of Contents. In order to
allow the EPUB to use the ToC information without actually
having to display the ToC, we can use CSS styling to prevent it
from being displayed.
diff --git a/lib/layouts/epub-metadata.module b/lib/layouts/epub-metadata.module
index 3b75b22..82ed32b 100644
--- a/lib/layouts/epub-metadata.module
+++ b/lib/layouts/epub-metadata.module
@@ -66,4 +66,12 @@ Style "EPUB Author (file-as order)"
HTMLAttr "class='epub-metadata epub-author-file-as-order'"
End
+InsetLayout TOC
+ HTMLStyle
+ div.toc {
+ display: none;
+ }
+ EndHTMLStyle
+End
+
NoStyle "EPUB Metadata"
-----------------------------------------------------------------------
hooks/post-receive
--
Repositories for GSOC work