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.
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.mmdThat'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=xelatexPandoc 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.yamlFor 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.mobiIt uses the ePub as the source, so that must be created first. This command assumed Calibre was installed on a Mac.