Mercurial > hgrepos > Python > libs > ConfigMix
comparison doc/conf.py @ 77:025005f1234f
Print the date of the docu more intelligently: use |today| together with keyword expansion
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Wed, 14 Mar 2018 23:44:37 +0100 |
| parents | 9d0d9446de08 |
| children | 3a8f712d27df |
comparison
equal
deleted
inserted
replaced
| 76:6553fbdcd4ae | 77:025005f1234f |
|---|---|
| 27 | 27 |
| 28 # The short X.Y version | 28 # The short X.Y version |
| 29 version = '.'.join(configmix.__version__.split('.')[:2]) | 29 version = '.'.join(configmix.__version__.split('.')[:2]) |
| 30 # The full version, including alpha/beta/rc tags | 30 # The full version, including alpha/beta/rc tags |
| 31 release = configmix.__version__ | 31 release = configmix.__version__ |
| 32 | |
| 33 today = '$Date$' | |
| 34 if len(today) == 6 \ | |
| 35 and today[0] == '$' and today[1:-2] == 'Date' \ | |
| 36 and today[-1] == '$': | |
| 37 del today | |
| 38 else: | |
| 39 today = today[7:today.find(' ', 7)] | |
| 32 | 40 |
| 33 | 41 |
| 34 # -- General configuration --------------------------------------------------- | 42 # -- General configuration --------------------------------------------------- |
| 35 | 43 |
| 36 # If your documentation needs a minimal Sphinx version, state it here. | 44 # If your documentation needs a minimal Sphinx version, state it here. |
