forked from quii/learn-go-with-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Issue: Automate the gofmt in markdown files using gofmtmd during build Issue Link: quii#353 Modifications: * Modified the build script to download and run the gofmtmd tool on the markdown files * Ran the script locally and fixed the issues reported by gofmtmd tool Note: Intro to generics md file contains some syntax related to generics which is not recognised by the tool. So some valid code fences are not marked as go * Issue: Errors regarding epubcheck Issue Link: quii#420 Solution: * Corrected the SVG syntax by omitting the version tag and dtd info * Minorr markup corrections in md files Test Case: * Ran build books script locally and is able to view the generated epub file * Added newly created epub file to Google Play books and is able to read the book * Issue: PDF generation build fixes Issue link: quii#205 Solution: 1. Created a custom docker image with fonts needed for CJK support and some fonts 2. Updated the build script to use the custom pandoc image Test case: 1. Ran the build script locally and verified that the books generation is successful * Update go.yml to add support to upload assets Made changes to GH actions to add generated epub and PDF to the release once published * Corrected the yaml format * Made changes to add cover page before the toc
- Loading branch information
1 parent
5b32960
commit aad7a5b
Showing
7 changed files
with
101 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
\usepackage{fancyhdr} | ||
|
||
\usepackage{xeCJK} | ||
\usepackage{fontspec}% set Chinese fonts, as follows | ||
\setmainfont{DejaVu Sans} | ||
\setmonofont{DejaVu Sans} | ||
\setsansfont{DejaVu Sans} | ||
\setCJKmainfont[BoldFont=Noto Sans CJK TC,ItalicFont=Noto Sans CJK TC]{Noto Sans CJK TC} | ||
\setCJKsansfont[BoldFont=Noto Sans CJK TC]{Noto Sans CJK TC} | ||
\setCJKmonofont{Noto Sans Mono CJK TC} | ||
|
||
\pagestyle{fancy} | ||
\fancyhf{} | ||
\cfoot{v 10.0.0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
\includegraphics{epub-cover.png} | ||
\thispagestyle{empty} |