mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
add version information in __init__.py and import them from setup.py
and conf.py
This commit is contained in:
parent
4714276e2c
commit
74c2449d8f
3 changed files with 9 additions and 5 deletions
|
|
@ -3,6 +3,8 @@ import sys, os
|
|||
|
||||
sys.path.append(os.path.abspath('..'))
|
||||
|
||||
from pelican import __version__, __major__
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
templates_path = ['_templates']
|
||||
extensions = ['sphinx.ext.autodoc',]
|
||||
|
|
@ -11,8 +13,8 @@ master_doc = 'index'
|
|||
project = u'Pelican'
|
||||
copyright = u'2010, Alexis Metaireau and contributors'
|
||||
exclude_patterns = ['_build']
|
||||
version = "2"
|
||||
release = version
|
||||
version = __version__
|
||||
release = __major__
|
||||
|
||||
# -- Options for HTML output ---------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue