Am 06.07.2010 21:00, schrieb Kevin Dunn: > Hi there, > > I'm trying to have the HTML builder create filenames without any > suffix (i.e. I don't want the .html at the end of each file). I tried > setting > > html_file_suffix = "" > html_link_suffix = "" > > but this still gives .html suffixes, because of the way that Python > treats empty strings in logical tests. > > It seems that a small change to the current tip (r2330:3fed33465259) > in the file sphinx/builders/html.py at line 102 would fix this > problem. > > Current line: if self.config.html_file_suffix: > Proposed line: if self.config.html_file_suffix is not None: > > Making this change doesn't break any additional tests. Would it > possible that this change is made in the source? > > If so, then the documentation in config.rst for .. confval:: > html_file_suffix should also change (currently is says: If nonempty, > this is the file name suffix for generated HTML files. The default is > ``".html"``.) Just remove the "If nonempty" part.
Thanks for the suggestion, I've made that change for 1.0. Georg -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
