generate html and pdf from README
This commit is contained in:
		
							parent
							
								
									d005833741
								
							
						
					
					
						commit
						df5fa12e41
					
				
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @ -43,6 +43,14 @@ Clean: clean clean-docs | |||||||
| 
 | 
 | ||||||
| # docs
 | # docs
 | ||||||
| 
 | 
 | ||||||
|  | docs: html pdf api-doc-frames | ||||||
|  | 
 | ||||||
|  | html: | ||||||
|  | 	rst2html README >doc/index.html | ||||||
|  | 
 | ||||||
|  | pdf: | ||||||
|  | 	rst2pdf README -o doc/README.pdf | ||||||
|  | 
 | ||||||
| MAIN=hledger.hs | MAIN=hledger.hs | ||||||
| 
 | 
 | ||||||
| api-doc-dir: | api-doc-dir: | ||||||
| @ -97,7 +105,7 @@ hoogleweb: hoogleindex | |||||||
| 
 | 
 | ||||||
| # munge haddock and hoogle into a rough but useful framed layout
 | # munge haddock and hoogle into a rough but useful framed layout
 | ||||||
| # ensure that the hoogle cgi is built with base target "main"
 | # ensure that the hoogle cgi is built with base target "main"
 | ||||||
| api-doc-frames docs: api-doc-with-source hoogleweb | api-doc-frames: api-doc-with-source hoogleweb | ||||||
| 	echo "Converting api docs to frames" ; \
 | 	echo "Converting api docs to frames" ; \
 | ||||||
| 	sed -i -e 's%^></HEAD%><base target="main"></HEAD%' api-doc/modules-index.html ; \
 | 	sed -i -e 's%^></HEAD%><base target="main"></HEAD%' api-doc/modules-index.html ; \
 | ||||||
| 	cp doc/misc/api-doc-frames.html api-doc/index.html ; \
 | 	cp doc/misc/api-doc-frames.html api-doc/index.html ; \
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user