bug 944381 Add logic to generate_autodoc_index.sh to produce rst underlines to match the heading strings. Change-Id: Ib0f54a45fcc4ab6dfaa593c756682f1a25fdb420
		
			
				
	
	
		
			15 lines
		
	
	
		
			282 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			282 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import gettext
 | 
						|
import os
 | 
						|
 | 
						|
gettext.install('nova')
 | 
						|
 | 
						|
from nova import utils
 | 
						|
 | 
						|
 | 
						|
def setup(app):
 | 
						|
    rootdir = os.path.abspath(app.srcdir + '/..')
 | 
						|
    print "**Autodocumenting from %s" % rootdir
 | 
						|
    os.chdir(rootdir)
 | 
						|
    rv = utils.execute('./generate_autodoc_index.sh')
 | 
						|
    print rv[0]
 |