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