MoinLight

Change of moinformat/output/directory.py

253:ccd1ac4d6899
moinformat/output/directory.py
     1.1 --- a/moinformat/output/directory.py	Tue Apr 16 23:35:21 2019 +0200
     1.2 +++ b/moinformat/output/directory.py	Tue Apr 16 23:36:14 2019 +0200
     1.3 @@ -40,10 +40,14 @@
     1.4          self.dir = Directory(metadata.get("output_filename"))
     1.5          self.dir.ensure()
     1.6  
     1.7 -        self.index_name = metadata.get("index_name", "index.html")
     1.8 +        # Use any document index setting as the default for the index filename.
     1.9 +
    1.10 +        document_index = metadata.get("document_index", "index.html")
    1.11 +
    1.12 +        self.index_name = metadata.get("index_name", document_index)
    1.13          self.page_suffix = metadata.get("page_suffix", "%shtml" % extsep)
    1.14 -        self.root_pagename = metadata.get("root_pagename", "FrontPage")
    1.15 -        self.attachments_dir = metadata.get("attachments", "attachments")
    1.16 +        self.root_pagename = metadata.get("root_pagename")
    1.17 +        self.attachments_dir = metadata.get("attachments")
    1.18  
    1.19      # Convenience methods.
    1.20