[% # map of pages in the Demeter book
   # this file lives in the etc/ directory and is copied to the
   # config/ directory for each display medium when the configure
   # script is run

 map = {
	name = 'Artemis Users Guide'
	menu = [ 'index',
		 'intro',
		 'startup',
		 'data',
		 'feff',
		 'path',
		 'gds',
		 'fit',
		 'plot',
		 'logjournal',
		 'history',
		 'monitor',
		 'prefs',
		 'examples',
		 'atoms',
		 'extended',
	       ]
	page = {
		index   = { name = 'Home' }
		intro   = { name = 'Introduction'}
		startup = {
			   name = 'Starting Artemis'
			   menu = [ 'main', 'plot' ]
			   page = {
				   main    = { name = 'The main window' }
				   plot    = { name = 'The plot window' }
				  }
			  }
		data   = { name = 'The Data window'}
		feff   = {
			  name = 'The Atoms/Feff window'
			  menu = [ 'feff', 'paths', 'pathlike', 'console', 'aggregate' ]
			  page = {
				  feff     = { name = 'The Feff tab' }
				  paths    = { name = 'The Paths tab' }
				  pathlike = { name = 'The Path-like tab' }
				  console  = { name = 'The Console tab' }
				  aggregate = { name = 'Aggregate calculation' }
				 }
			 }
		path   = {
			  name = 'The Path page'
			  menu = ['mathexp', 'plot', 'pathlike']
			  page = {
				  mathexp  = { name = 'Setting math expressions' }
				  plot     = { name = 'Marking and plotting' }
				  pathlike = { name = 'Using path-like objects' }
				 }
			 }
		gds    = { name = 'The GDS window'}
		fit    = {
			  name = 'Running a fit'
			  menu = ['sanity', 'happiness', 'pathlike']
			  page = {
				  sanity = { name = 'Sanity checking your model' }
				  happiness = { name = 'The happiness parameter' }
				  pathlike = { name = 'Using path-like objects' }
				 }
			 }
		plot = {
			name = 'The Plot window'
			menu = ['stack', 'indic', 'vpaths']
			page = {
				stack = {name = 'Stacked plots'}
				indic = {name = 'Indicators'}
				vpaths = {name = 'Creating and plotting VPaths'}
			       }
		       }
		logjournal = { name = 'The Log & Journal windows'}
		history = { name = 'The History window'}
		monitor = { name = 'Monitoring things'}
		prefs   = { name = 'Managing preferences'}
		examples = {
			    name = 'Worked examples'
			    menu = ['fes2', 'methyltin']
			    page = {
				    fes2    = { name = 'Example 1: FeS2'}
				    methyltin = { name = 'Example 2: Methyltin'}
				   }
			   }
                atoms = {
		      	 name = 'Crystallography for EXAFS'
			 menu = ['space', 'abs', 'example']
			 page = {
			      	 space = {name = 'Space groups'}
				 abs = {name = 'Absorption calculations'}
				 example = {name = 'A worked example'}
				}
		      	}
		extended = {
			    name = 'Extended topics'
			    menu = ['qfs', 'cv', 'delr', 'ss', 'constraints', 'bvs', 'empirical', 'ipots', 'fuzzy', 'dopants', 'fivesix']
			    page = {
				    qfs = {name = 'Quick first shell theory'}
				    cv  = {name = 'Characteristic value'}
				    delr  = {name = 'Modeling bond length'}
				    ss  = {name = 'Modeling disorder'}
				    constraints  = {name = 'Constraints and restraints'}
				    bvs = {name = 'Bond valence sums'}
				    empirical = {name = 'Using empirical standards'}
				    ipots = {name = 'Unique potentials'}
				    fuzzy = {name = 'Fuzzy degeneracy'}
				    dopants = {name = 'Handling dopants'}
				    fivesix = {name = '5 and 6 legged paths'}
				   }
			   }
	       }
       };
 # save map in site
 site.map = map;
 -%]

[% SWITCH document_style %]
[% CASE 'html' %]
   [%# expand map recursively %]
   [% PROCESS config/expand %]
[% CASE 'latex' %]
   [%# do nothing %]
[% CASE 'pod' %]
   [%# expand map recursively %]
   [% PROCESS config/expand %]
[% END -%]
