Skip to content

Commit

Permalink
#3 l3build
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 2, 2022
1 parent ac062e8 commit b153741
Show file tree
Hide file tree
Showing 21 changed files with 1,055 additions and 232 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/l3build.yml
@@ -0,0 +1,16 @@
name: l3build
on:
push:
branches: master
pull_request:
branches: master
jobs:
l3build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: teatimeguest/setup-texlive-action@v2.4.1
with:
package-file: DEPENDS.txt
packages: scheme-basic xetex xkeyval libertine minted fvextra catchfile xstring framed tcolorbox environ anyfontsize chngcntr lastpage paralist enumitem qrcode wrapfig soul xifthen ifmtarg csquotes biblatex imakeidx footmisc titlesec mdframed zref needspace changepage ffcode href-ul
- run: l3build check -q --show-log-on-error
15 changes: 0 additions & 15 deletions .github/workflows/make.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
@@ -1,7 +1,10 @@
.DS_Store
target/
build/
_minted-*
yb-book.pdf
*.cls
*.tex
*.zip
*.toc
*.bbl
Expand Down
2 changes: 0 additions & 2 deletions .latexmkrc

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,5 @@
[![make](https://github.com/yegor256/yb-book/actions/workflows/make.yml/badge.svg)](https://github.com/yegor256/yb-book/actions/workflows/make.yml)
[![make](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml)
[![CTAN](https://img.shields.io/ctan/v/yb-book)](https://ctan.org/pkg/yb-book)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/yb-book/blob/master/LICENSE.txt)

This LaTeX class I use to format [my books](https://www.yegor256.com/books.html),
Expand Down
33 changes: 33 additions & 0 deletions build.lua
@@ -0,0 +1,33 @@
module = "yb-book"
ctanupload = true
typesetopts = "--interaction=batchmode --shell-escape"
checkopts = "--interaction=batchmode --shell-escape"
tagfiles = {"build.lua", "yb-book.dtx"}
docfiles = {"yb-book-logo.pdf"}

uploadconfig = {
pkg = "yb-book",
version = "0.0.0",
author = "Yegor Bugayenko",
uploader = "Yegor Bugayenko",
email = "yegor256@gmail.com",
note = "Bug fixes",
announcement = "",
ctanPath = "/macros/latex/contrib/yb-book",
bugtracker = "https://github.com/yegor256/yb-book/issues",
home = "",
description = "This template helps the author design books published on Amazon under the “Y.B.” brand. You are welcome to use it too for your own books.",
development = "",
license = "mit",
summary = "Template for YB Branded Books",
repository = "https://github.com/yegor256/yb-book",
support = "",
topic = {"class", "document-template", "book-publication"}
}

function update_tag(file, content, tagname, tagdate)
return string.gsub(
string.gsub(content, "0%.0%.0", tagname),
"00%.00%.0000", os.date("%d.%m.%Y")
)
end
1 change: 0 additions & 1 deletion samples/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions samples/.latexmkrc

This file was deleted.

33 changes: 0 additions & 33 deletions samples/Makefile

This file was deleted.

41 changes: 0 additions & 41 deletions samples/sample.tex

This file was deleted.

File renamed without changes.
105 changes: 105 additions & 0 deletions testfiles/simple.luatex.tlg
@@ -0,0 +1,105 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
[1
] [2
]
LaTeX Font Info: Trying to load font information for T1+lmtt on input line ....
Package microtype Info: Loading generic protrusion settings for font family
(microtype) `lmtt' (encoding: T1).
(microtype) For optimal results, create family-specific settings.
(microtype) See the microtype manual for details.
LaTeX Font Info: Font shape `T1/lmtt/bx/n' in size <24.88> not available
(Font) Font shape `T1/lmtt/b/n' tried instead on input line ....
[1] [2
]
Chapter 1.
[3]
LaTeX Font Info: Trying to load font information for T1+lmss on input line ....
Package microtype Info: Loading generic protrusion settings for font family
(microtype) `lmss' (encoding: T1).
(microtype) For optimal results, create family-specific settings.
(microtype) See the microtype manual for details.
Package mdframed Info: mdframed works in twoside mode on input line ....
Package mdframed Info: mdframed inside float
mdframed uses option nobreak mdframed on input line ....
Package mdframed Info: mdframed inside a box
mdframed uses option nobreak mdframed on input line ....
LaTeX Warning: Reference `mdf@pagelabel-1' on page 4 undefined on input line ....
Underfull \hbox (badness 10000) in paragraph at lines 14--16
\T1/lmr/m/n/10.95 This is a very in-ter-est-ing book about com-put-ers.
\hbox(7.54317+2.12914)x307.1475, glue set 5.60138, direction TLT
.\kern-0.3942 (left margin)
.\localpar
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\T1/lmr/m/n/10.95 T
.\T1/lmr/m/n/10.95 h
.\T1/lmr/m/n/10.95 i
.\T1/lmr/m/n/10.95 s
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 i
.\T1/lmr/m/n/10.95 s
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 a
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 v
.\kern-0.30418 (font)
.\T1/lmr/m/n/10.95 e
.\T1/lmr/m/n/10.95 r
.\T1/lmr/m/n/10.95 y
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 i
.\T1/lmr/m/n/10.95 n
.\discretionary (penalty 50)
..< \T1/lmr/m/n/10.95 -
..= \kern-0.30418 (font)
.\T1/lmr/m/n/10.95 t
.\T1/lmr/m/n/10.95 e
.\T1/lmr/m/n/10.95 r
.\discretionary (penalty 50)
..< \T1/lmr/m/n/10.95 -
.\T1/lmr/m/n/10.95 e
.\T1/lmr/m/n/10.95 s
.\T1/lmr/m/n/10.95 t
.\discretionary (penalty 50)
..< \T1/lmr/m/n/10.95 -
.\T1/lmr/m/n/10.95 i
.\T1/lmr/m/n/10.95 n
.\T1/lmr/m/n/10.95 g
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 b
.\kern0.30417 (font)
.\T1/lmr/m/n/10.95 o
.\kern0.30417 (font)
.\T1/lmr/m/n/10.95 o
.\T1/lmr/m/n/10.95 k
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 a
.\T1/lmr/m/n/10.95 b
.\kern0.30417 (font)
.\T1/lmr/m/n/10.95 o
.\T1/lmr/m/n/10.95 u
.\T1/lmr/m/n/10.95 t
.\glue(\spaceskip) 3.65 plus 1.825 minus 1.21666
.\T1/lmr/m/n/10.95 c
.\T1/lmr/m/n/10.95 o
.\T1/lmr/m/n/10.95 m
.\discretionary (penalty 50)
..< \T1/lmr/m/n/10.95 -
.\T1/lmr/m/n/10.95 p
.\T1/lmr/m/n/10.95 u
.\T1/lmr/m/n/10.95 t
.\discretionary (penalty 50)
..< \T1/lmr/m/n/10.95 -
.\T1/lmr/m/n/10.95 e
.\T1/lmr/m/n/10.95 r
.\T1/lmr/m/n/10.95 s
.\T1/lmr/m/n/10.95 .
.\penalty 10000
.\kern-2.1243 (right margin)
.\glue(\parfillskip) 0.0
.\glue(\rightskip) 0.0
[4] (simple.ind)
LaTeX Warning: Empty bibliography on input line ....
20 changes: 20 additions & 0 deletions testfiles/simple.lvt
@@ -0,0 +1,20 @@
\input{regression-test.tex}
\documentclass{yb-book}
\begin{document}
\START

\renewcommand*\thetitle{Simple}
\renewcommand*\theauthor{Yegor Bugayenko}
Hello, world!
\ybPrintTitlePage
\newpage
\chapter{Overview}
\section{Purpose}
\index{computer}
This is a very interesting book about computers.
\ybQuote{Never tell the truth to people who
are not worthy of it}{Mark Twain}{}
\ybPrintIndex
\ybPrintBibliography

\END

0 comments on commit b153741

Please sign in to comment.