;imp: doc: orgify ROADMAP 3: generate .ROADMAP.md for site
This commit is contained in:
		
							parent
							
								
									2bfa1cb672
								
							
						
					
					
						commit
						b19b1de0cb
					
				| @ -1,7 +1,5 @@ | |||||||
| * hledger ROADMAP | * hledger ROADMAP | ||||||
| 
 | 
 | ||||||
| <!-- toc --> |  | ||||||
| 
 |  | ||||||
| Current ideas about where the hledger project should be going next. | Current ideas about where the hledger project should be going next. | ||||||
| 
 | 
 | ||||||
| ** Targets | ** Targets | ||||||
|  | |||||||
							
								
								
									
										14
									
								
								Shake.hs
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								Shake.hs
									
									
									
									
									
								
							| @ -123,6 +123,9 @@ grep = "grep -E" | |||||||
| -- would be nice to find a way to avoid this. | -- would be nice to find a way to avoid this. | ||||||
| fromsrcmd = "-f markdown-smart-tex_math_dollars" | fromsrcmd = "-f markdown-smart-tex_math_dollars" | ||||||
| 
 | 
 | ||||||
|  | -- The kind of org markup used in any org source files. | ||||||
|  | fromorg = "-f org" | ||||||
|  | 
 | ||||||
| -- The kind of markdown we like to generate for the website. | -- The kind of markdown we like to generate for the website. | ||||||
| -- This will be consumed by sphinx extensions: | -- This will be consumed by sphinx extensions: | ||||||
| --  recommonmark (Commonmark syntax, https://spec.commonmark.org) | --  recommonmark (Commonmark syntax, https://spec.commonmark.org) | ||||||
| @ -738,6 +741,17 @@ main = do | |||||||
|         ,"changelogs" |         ,"changelogs" | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|  |       ".ROADMAP.md" %> \out -> do | ||||||
|  |         let src = "ROADMAP.org" | ||||||
|  |         liftIO $ writeFile out $ unlines [ | ||||||
|  |            "<!-- " ++ "Generated by \"Shake " ++ out ++ " from " ++ src ++ " -->" | ||||||
|  |           ,"<div class=\"pagetoc\">" | ||||||
|  |           ,"<!-- toc -->" | ||||||
|  |           ,"</div>" | ||||||
|  |           ,"" | ||||||
|  |           ] | ||||||
|  |         cmd_ Shell pandoc fromorg towebmd src ">>" out | ||||||
|  | 
 | ||||||
|       -- MISC |       -- MISC | ||||||
| 
 | 
 | ||||||
|       -- Generate the web manuals based on the current checkout and save |       -- Generate the web manuals based on the current checkout and save | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user