def getHtmlLicense(self): """Returns the text license in HTML format. :rtype: str """ from silx._version import __date__ as date year = date.split("/")[2] info = dict(year=year) textLicense = _LICENSE_TEMPLATE.format(**info) return textLicense
def getHtmlLicense(self): """Returns the text license in HTML format. :rtype: str """ from silx._version import __date__ as date year = date.split("/")[2] info = dict( year=year ) textLicense = _LICENSE_TEMPLATE.format(**info) return textLicense
# Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. # source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. from silx._version import strictversion, version, __date__ as _date year = _date.split("/")[-1] copyright = u'2015-%s, Data analysis unit, European Synchrotron Radiation Facility, Grenoble' % year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. # version = '0.0.1' # The full version, including alpha/beta/rc tags. release = strictversion # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None