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
require 'asciidoctor/extensions' | |
class AngularLocalizerTreeprocessor < Asciidoctor::Extensions::Treeprocessor | |
def process document | |
document.blocks? ? (localize_blocks document) : nil | |
end | |
def localize_blocks node | |
node.find_by do |b| | |
if b.content_model == :simple |
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
web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf | |
fastcgi: /usr/local/sbin/php-fpm | |
db: /usr/local/bin/mysqld |