bakery/bakery.py
def build(self):
        """ Build this site and it resources.
        """
        _stdout('** Building site\n')
        # We start fresh on each build.
        self.context = self.config.site_context if self.config.site_context else dict()
        self.resources = list()
        self.articles = list()
        self.media = list()

        if not os.path.exists(self.config.build_dir):
            mkdir_p(self.config.build_dir)

        self.read_directories()
        self._build_media()
        self._build_static()

        _stdout('** Render resources\n')
        for r in self.resources:
            _stdout('>> {0}\n'.format(r.destination))
            r.render(self.renderer, self.context)

        _stdout('** Building resources\n')
        for r in self.resources:
            if r.should_build():
                _stdout('>> {0}\n'.format(r.destination))
                r.build()
 Build this site and it resources.
        
Build this site and it resources.
Build this site and it resources .
def build(self):
        _stdout('** Building site\n')
        self.context = self.config.site_context if self.config.site_context else dict()
        self.resources = list()
        self.articles = list()
        self.media = list()
        if not os.path.exists(self.config.build_dir):
            mkdir_p(self.config.build_dir)
        self.read_directories()
        self._build_media()
        self._build_static()
        _stdout('** Render resources\n')
        for r in self.resources:
            _stdout('>> {0}\n'.format(r.destination))
            r.render(self.renderer, self.context)
        _stdout('** Building resources\n')
        for r in self.resources:
            if r.should_build():
                _stdout('>> {0}\n'.format(r.destination))
                r.build()
def build ( self ) : _stdout ( '** Building site\n' ) self . context = self . config . site_context if self . config . site_context else dict ( ) self . resources = list ( ) self . articles = list ( ) self . media = list ( ) if not os . path . exists ( self . config . build_dir ) : mkdir_p ( self . config . build_dir ) self . read_directories ( ) self . _build_media ( ) self . _build_static ( ) _stdout ( '** Render resources\n' ) for r in self . resources : _stdout ( '>> {0}\n' . format ( r . destination ) ) r . render ( self . renderer , self . context ) _stdout ( '** Building resources\n' ) for r in self . resources : if r . should_build ( ) : _stdout ( '>> {0}\n' . format ( r . destination ) ) r . build ( )
Build this site and it resources.
Build this site and it resources .
""" Build this site and it resources.
        """ # We start fresh on each build.
self