[% # map of pages in the Athena 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 = 'Athena Book'
       menu = [ 'index',
		'forward',
		'intro',
		'import',
		'bkg',
		'plot',
		'ui',
		'params',
		'output',
                'process',
		'analysis',
                'other',
		'examples',
		'hephaestus'
	      ]
       page = {
	    index   = { name = 'Home' }
	    forward = { name = 'Forward' }
	    intro   = { name = 'Introduction'}
	    bkg     = {
		    name = 'Background Removal'
		    menu = [ 'norm', 'rbkg', 'kweight', 'range' ]
		    page = {
			   norm    = { name = 'Normalization' }
			   ft      = { name = 'Introduction to Fourier transforms' }
			   rbkg    = { name = 'The Rbkg parameter' }
			   kweight = { name = 'Spline clamps and k-weight' }
			   range   = { name = 'Spline range' }
			   }
		    }
	    plot    = {
		      name = 'Plotting'
		      menu = [ 'tabs', 'krange', 'stack', 'indic', 'params', 'etc' ]
		      page = {
			     tabs   = { name = 'Plot space tabs' }
			     krange = { name = 'Spectral resolution and k-range' }
			     stack  = { name = 'Stacking plots' }
			     indic  = { name = 'Plot indicators' }
			     pf     = { name = 'Point finder' }
			     params = { name = 'Group-specific parameters' }
			     etc    = { name = 'Other plotting features' }
                      }
		    }
	    import   = {
		       name = 'Importing Data'
		       menu = [ 'columns', 'projsel', 'multiple',
                                'ref', 'preproc' ]
		       page = {
			      columns  = { name = 'The column selection dialog' }
			      projsel  = { name = 'The project selection dialog' }
			      multiple = { name = 'Importing multiple data sets' }
			      ref      = { name = 'Reference channel' }
			      preproc  = { name = 'Data preprocessing' }
			      }
		       }
	    output   = {
		       name = 'Output files'
		       menu = [ 'column', 'project', 'report' ]
		       page = {
			      column  = { name = 'Column output files' }
			      project = { name = 'Project files' }
			      report  = { name = 'Report files' }
			      }
		       }
	    ui       = {
		       name = 'User Interface'
		       menu = [ 'glist', 'mark', 'pluck', 'styles',
				'kweight', 'frozen' ]
		       page = {
			      glist    = { name = 'Using the group list' }
			      mark     = { name = 'Marking groups' }
			      pluck    = { name = 'Pluck buttons' }
			      styles   = { name = 'Plot styles' }
			      kweight  = { name = 'Using k-weights' }
			      frozen   = { name = 'Frozen groups' }
			      }
		       }
	    params   = {
		       name = 'Setting parameter values'
		       menu = [ 'constrain', 'e0', 'defaults' ]
		       page = {
			      constrain = { name = 'Constraining parameters' }
			      e0        = { name = 'Edge energy' }
			      defaults  = { name = 'Default values' }
			      }
		       }
	    process  = {
		       name = 'Data processing'
		       menu = [ 'cal', 'align', 'merge', 'rebin' , 'deg',
				'smooth', 'conv',
				'deconv', 'sa', 'pixel', 'mee',
				'series', 'sum' ]
		       page = {
			      cal    = { name = 'Calibration' }
			      align  = { name = 'Alignment' }
			      pixel  = { name = 'Dispersive XAS' }
			      deg    = { name = 'Deglitching and truncation' }
			      trun   = { name = 'Truncation' }
			      rebin  = { name = 'Rebinning' }
			      smooth = { name = 'Smoothing' }
			      conv   = { name = 'Convolution and noise' }
			      deconv = { name = 'Deconvolution' }
			      sa     = { name = 'Self-Absorption correction' }
			      mee    = { name = 'Multi-electron excitation' }
			      merge  = { name = 'Merging' }
			      series = { name = 'Copy series' }
			      sum    = { name = 'Data summation' }
			      }
		       }
	    analysis = {
		       name = 'Data analysis'
		       menu = [ 'lcf', 'pca', 'peak', 'lr', 'diff' ]
		       page = {
			      lcf  = { name = 'Linear combination fitting' }
			      peak = { name = 'Peak fitting' }
			      lr   = { name = 'Log-ratio/phase-difference' }
			      pca  = { name = 'Principle component analysis' }
			      diff = { name = 'Difference spectra' }
			      }
		       }
            other = {
	    	    name = 'Other main window chores'
                    menu = [ 'meta', 'journal', 'plugin', 'prefs' ]
		    page = {
		    	   meta    = { name = 'File metadata' }
		    	   journal = { name = 'Project journal' }
			   plugin  = { name = 'Filetype plugins' }
                           prefs   = { name = 'Setting preferences' }
		    	   }
	            }
	    examples   = {
                          name = 'Worked examples'
			  menu = ['data' 'aucl']
			  page = {
				 data = { name = 'Basic data processing' }
				 moo3 = { name = 'A hard background removal' }
				 aucl = { name = 'Linear combination analysis' }
				 }
			 }
	    hephaestus = { name = 'Hephaestus' }
	      }
          };

    # 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 -%]
