tools: simplify doc filtering class names
This commit is contained in:
		
							parent
							
								
									7163a730fd
								
							
						
					
					
						commit
						eab6b110bc
					
				| @ -5,8 +5,8 @@ import Text.Pandoc.Builder | ||||
| import Text.Pandoc.JSON | ||||
| 
 | ||||
| main :: IO () | ||||
| main = toJSONFilter dropManonlyBlocks | ||||
| main = toJSONFilter dropManBlocks | ||||
| 
 | ||||
| dropManonlyBlocks :: Block -> Block | ||||
| dropManonlyBlocks (Div ("",["manonly"],[]) _) = Plain [] | ||||
| dropManonlyBlocks x = x | ||||
| dropManBlocks :: Block -> Block | ||||
| dropManBlocks (Div ("",["man"],[]) _) = Plain [] | ||||
| dropManBlocks x = x | ||||
|  | ||||
| @ -5,8 +5,8 @@ import Text.Pandoc.Builder | ||||
| import Text.Pandoc.JSON | ||||
| 
 | ||||
| main :: IO () | ||||
| main = toJSONFilter dropWebonlyBlocks | ||||
| main = toJSONFilter dropWebBlocks | ||||
| 
 | ||||
| dropWebonlyBlocks :: Block -> Block | ||||
| dropWebonlyBlocks (Div ("",["webonly"],[]) _) = Plain [] | ||||
| dropWebonlyBlocks x = x | ||||
| dropWebBlocks :: Block -> Block | ||||
| dropWebBlocks (Div ("",["web"],[]) _) = Plain [] | ||||
| dropWebBlocks x = x | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % January 2016 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -20,7 +20,7 @@ using double-entry accounting and a simple, editable file format. | ||||
| hledger is inspired by and largely compatible with ledger(1). | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| <!-- * toc --> | ||||
| </div> | ||||
| 
 | ||||
| @ -108,7 +108,7 @@ access. | ||||
| <!-- `-B --cost` --> | ||||
| <!-- : show amounts in their cost price's commodity --> | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # ENVIRONMENT | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % October 2015 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -11,7 +11,7 @@ hledger_csv - reading CSV files with hledger, and the CSV rules file format | ||||
| # DESCRIPTION | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| * toc | ||||
| </div> | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % October 2015 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -11,7 +11,7 @@ hledger_journal - reference for hledger's journal file format | ||||
| # DESCRIPTION | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| * toc | ||||
| </div> | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % February 2016 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -11,7 +11,7 @@ hledger_timedot - time logging format | ||||
| # DESCRIPTION | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| * toc | ||||
| </div> | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| %  | ||||
| % October 2015 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -11,7 +11,7 @@ hledger_timelog - hledger's timelog file format | ||||
| # DESCRIPTION | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| <!-- * toc --> | ||||
| </div> | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % October 2015 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -20,7 +20,7 @@ using double-entry accounting and a simple, editable file format. | ||||
| hledger is inspired by and largely compatible with ledger(1). | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| * toc | ||||
| 
 | ||||
| <style> | ||||
| @ -41,7 +41,7 @@ hledger is inspired by and largely compatible with ledger(1). | ||||
| 
 | ||||
| hledger-ui is hledger's curses-style interface. | ||||
| It reads a hledger journal file | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| (~/.hledger.journal, $LEDGER_FILE, or -f FILE; see hledger(1) or hledger_journal(5)) | ||||
| </div> | ||||
| and provides a simple full-screen console interface for viewing account balances and transactions. | ||||
| @ -230,7 +230,7 @@ This screen will appear if there is a problem, such as a parse error, | ||||
| when you press g to reload. Once you have fixed the problem described, | ||||
| press g again to reload and restore normal operation. | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # ENVIRONMENT | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % October 2015 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -20,7 +20,7 @@ using double-entry accounting and a simple, editable file format. | ||||
| hledger is inspired by and largely compatible with ledger(1). | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| * toc | ||||
| </div> | ||||
| 
 | ||||
| @ -144,7 +144,7 @@ The following common hledger options should also work: | ||||
| `-B --cost` | ||||
| : show amounts in their cost price's commodity | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # ENVIRONMENT | ||||
| 
 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| % | ||||
| % October 2015 | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # NAME | ||||
| 
 | ||||
| @ -23,7 +23,7 @@ page is a quick reference and introduction; for more complete docs, see | ||||
| http://hledger.org/manual. | ||||
| 
 | ||||
| </div> | ||||
| <div class="webonly"> | ||||
| <div class="web"> | ||||
| * toc | ||||
| </div> | ||||
| 
 | ||||
| @ -491,7 +491,7 @@ $ hledger print desc:shop                 # show transactions with shop in the d | ||||
| $ hledger activity -W                     # show transaction counts per week as a bar chart | ||||
| ``` | ||||
| 
 | ||||
| <div class="manonly"> | ||||
| <div class="man"> | ||||
| 
 | ||||
| # ENVIRONMENT | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user