ATLAS Offline Software
Variables
makeTOC Namespace Reference

Variables

string inFile = "README.md"
 
 f = open(inFile)
 
list regularLines = []
 
list tocLines = []
 
bool afterBreak = False
 
bool afterTOC = False
 
bool inCodeBlock = False
 
 header = line.split('#')[-1].strip()
 
string tag = '#'+header.lower().replace(" ","-").replace(",","").replace("?","").replace("(","").replace(")","").replace("/","")
 
 nIndents = line.count('#')
 
string tocLine = ""
 
 fOut = open (inFile+".tmp",'w')
 

Variable Documentation

◆ afterBreak

bool makeTOC.afterBreak = False

Definition at line 14 of file makeTOC.py.

◆ afterTOC

bool makeTOC.afterTOC = False

Definition at line 15 of file makeTOC.py.

◆ f

makeTOC.f = open(inFile)

Definition at line 9 of file makeTOC.py.

◆ fOut

makeTOC.fOut = open (inFile+".tmp",'w')

Definition at line 37 of file makeTOC.py.

◆ header

makeTOC.header = line.split('#')[-1].strip()

Definition at line 28 of file makeTOC.py.

◆ inCodeBlock

makeTOC.inCodeBlock = False

Definition at line 16 of file makeTOC.py.

◆ inFile

makeTOC.inFile = "README.md"

Definition at line 5 of file makeTOC.py.

◆ nIndents

makeTOC.nIndents = line.count('#')

Definition at line 30 of file makeTOC.py.

◆ regularLines

list makeTOC.regularLines = []

Definition at line 11 of file makeTOC.py.

◆ tag

string makeTOC.tag = '#'+header.lower().replace(" ","-").replace(",","").replace("?","").replace("(","").replace(")","").replace("/","")

Definition at line 29 of file makeTOC.py.

◆ tocLine

string makeTOC.tocLine = ""

Definition at line 31 of file makeTOC.py.

◆ tocLines

list makeTOC.tocLines = []

Definition at line 12 of file makeTOC.py.