#NEWLINE# def run( self ) : #NEWLINE# #INDENT# path = tempfile . mkdtemp ( ) #NEWLINE# build = os . path . join ( os . path . dirname ( os . path . abspath ( __file__ ) ) , 'build' , 'sphinx' , 'html' ) #NEWLINE# os . chdir ( path ) #NEWLINE# os . system ( 'git clone git@github.com:crosspop/asuka.git .' ) #NEWLINE# os . system ( 'git checkout gh-pages' ) #NEWLINE# os . system ( 'git rm -r .' ) #NEWLINE# os . system ( 'touch .nojekyll' ) #NEWLINE# os . system ( ( ( 'cp -r ' + build ) + '/* .' ) ) #NEWLINE# os . system ( 'git stage .' ) #NEWLINE# os . system ( 'git commit -a -m "Documentation updated."' ) #NEWLINE# os . system ( 'git push origin gh-pages' ) #NEWLINE# shutil . rmtree ( path )