Skip to content

LarryUllman/yiibook2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"The Yii Book" (2nd edition) by Larry Ullman

This is the source material for "The Yii Book" (2nd edition), written by Larry Ullman and published 2015-2024.

The book is no longer actively maintained by the author.

The book is not commercially available, but is now available for use under the MIT license.

You can download copies from the e-books directory.

Build history

The book was written in Scrivener and then exported in MulitMarkdown (.mmd) format.

Decent PDF layout requires LaTeX. For the chapters to be created properly in LaTeX, this command was then run:

sed -i '.bak' -E 's/(FUNDAMENTAL CONCEPTS|STARTING A NEW APPLICATION|A MANUAL FOR YOUR YII SITE|INITIAL CUSTOMIZATIONS AND CODE GENERATIONS|WORKING WITH MODELS|WORKING WITH VIEWS|WORKING WITH CONTROLLERS|WORKING WITH DATABASES|WORKING WITH FORMS|MAINTAINING STATE|USER AUTHENTICATION AND AUTHORIZATION|WORKING WITH WIDGETS|USING EXTENSIONS|JAVASCRIPT AND JQUERY|INTERNATIONALIZATION|LEAVING THE BROWSER|IMPROVING PERFORMANCE|ADVANCED DATABASE ISSUES|EXTENDING YII|WORKING WITH THIRD-PARTY LIBRARIES|TESTING YOUR APPLICATIONS|CREATING A CMS|MAKING AN E-COMMERCE SITE|SHIPPING YOUR PROJECT) /# \1 #\
\
/g' yiibook2.mmd

That's a global replace, using sed.

Pandoc was used to create PDF versions of the book:

pandoc yiibook2.mmd -o yiibook2.pdf --toc --top-level-division=chapter --template=src/default.template --highlight-style=tango --pdf-engine=xelatex

Pandoc required default.template for layout, frontmatter, and so forth.

Pandoc was also used to create ePub versions of the book:

pandoc -o yiibook2.epub -t epub3 yiibook2.mmd src/metadata.yaml

For the ePub, metadata is pulled from a YAML file.

Calibre was used to create MOBI versions of the book:

/Applications/calibre.app/Contents/MacOS/ebook-convert yiibook2.epub yiibook2.mobi

It uses the ePub as the source, so that must be created first. This command assumed Calibre was installed on a Mac.

About

Source material for "The Yii Book" (2nd edition)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors