Shake.hs: organize
This commit is contained in:
		
							parent
							
								
									1a909fe2a3
								
							
						
					
					
						commit
						2618455ab9
					
				
							
								
								
									
										8
									
								
								Shake.hs
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Shake.hs
									
									
									
									
									
								
							| @ -299,10 +299,6 @@ main = do | |||||||
|                 , not ("_site//*" ?== file) |                 , not ("_site//*" ?== file) | ||||||
|              ] |              ] | ||||||
| 
 | 
 | ||||||
|     "site/_site/files/README" : [ "site/_site//*" <.> ext | ext <- webcopyfileexts ] |%> \out -> do |  | ||||||
|         let input = "site" </> dropDirectory2 out |  | ||||||
|         copyFile' input out |  | ||||||
| 
 |  | ||||||
|     phony "website-render" $ do |     phony "website-render" $ do | ||||||
|         need webhtmlpages |         need webhtmlpages | ||||||
| 
 | 
 | ||||||
| @ -311,6 +307,10 @@ main = do | |||||||
|         need [source] |         need [source] | ||||||
|         cmd "stack --stack-yaml=stack-ghc8.2.yaml ghc --package pandoc -- -o" out source |         cmd "stack --stack-yaml=stack-ghc8.2.yaml ghc --package pandoc -- -o" out source | ||||||
| 
 | 
 | ||||||
|  |     "site/_site/files/README" : [ "site/_site//*" <.> ext | ext <- webcopyfileexts ] |%> \out -> do | ||||||
|  |         let input = "site" </> dropDirectory2 out | ||||||
|  |         copyFile' input out | ||||||
|  | 
 | ||||||
|     "site/_site//*.html" %> \out -> do |     "site/_site//*.html" %> \out -> do | ||||||
|         let source    = "site" </> dropDirectory2 out -<.> "md" |         let source    = "site" </> dropDirectory2 out -<.> "md" | ||||||
|             pageTitle = takeBaseName out |             pageTitle = takeBaseName out | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user