definition: |
genMainIndexPage :: DocOptions -> String -> [String] -> IO () genMainIndexPage docopts docdir modnames = do putStrLn $ "Writing index page to '" ++ docdir ++ "/index.html'..." simplePage ("index.html", shorttitle) "Documentation of Curry modules" (Just pagetitle) allConsFuncsMenu (indexPage modnames) >>= writeFile (docdir++"/index.html") where shorttitle = if not (null (mainTitle docopts)) then [htxt $ mainTitle docopts] else if length modnames == 1 then [code [htxt $ head modnames], nbsp, htxt "documentation"] else [htxt "Curry documentation"] pagetitle = if not (null (mainTitle docopts)) then [htxt (mainTitle docopts)] else if length modnames == 1 then [htxt "Documentation of the Curry program ", href (head modnames ++ ".html") [htxt (head modnames)]] else [htxt "Documentation of Curry programs"] |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
-------------------------------------------------------------------------- -- generate the index page for the documentation directory: |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,_) |-> _} |
name: |
genMainIndexPage |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
CurryDoc.Options.DocOptions -> String -> [String] -> Prelude.IO () |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |