Skip to content

Commit 7e4dfe8

Browse files
committed
📚 further integration with yehua to work hand in hand so that the scaffolding is up to date all the time
1 parent ae03f8b commit 7e4dfe8

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

templates/__init__.py.jj2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# flake8: noqa
2+
from {{name}}._version import __version__
3+
from {{name}}._version import __author__

templates/_version.py.jj2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__version__ = '{{version}}'
2+
__author__ = '{{author}}'

templates/docs/source/conf.py.jj2

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# -*- coding: utf-8 -*-
2+
{%block additional_imports%}
3+
{%endblock%}
4+
DESCRIPTION = (
5+
{% for i in range(0, description|length, 70) %}
6+
'{{ description[i:(70+i)] }}' +
7+
{% endfor %}
8+
''
9+
)
10+
extensions = [
11+
'sphinx.ext.autodoc',
12+
'sphinx.ext.doctest',
13+
'sphinx.ext.intersphinx',
14+
'sphinx.ext.viewcode',
15+
{%block SPHINX_EXTENSIONS%}
16+
{%endblock%}
17+
]
18+
19+
templates_path = ['_templates']
20+
source_suffix = '.rst'
21+
master_doc = 'index'
22+
23+
project = u'{{name}}'
24+
copyright = u'{{copyright_year}} {{company}}'
25+
version = '{{release}}'
26+
release = '{{version}}'
27+
exclude_patterns = []
28+
pygments_style = 'sphinx'
29+
{%block custom_doc_theme%}
30+
html_theme = 'default'
31+
{%endblock%}
32+
html_static_path = ['_static']
33+
htmlhelp_basename = '{{name}}doc'
34+
latex_elements = {}
35+
latex_documents = [
36+
('index', '{{name}}.tex',
37+
'{{name}} Documentation',
38+
'{{company}}', 'manual'),
39+
]
40+
man_pages = [
41+
('index', '{{name}}',
42+
'{{name}} Documentation',
43+
[u'{{company}}'], 1)
44+
]
45+
texinfo_documents = [
46+
('index', '{{name}}',
47+
'{{name}} Documentation',
48+
'{{company}}', '{{name}}',
49+
DESCRIPTION,
50+
'Miscellaneous'),
51+
]

templates/requirements.txt.jj2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% for dependency in dependencies: %}
2+
{{dependency}}
3+
{% endfor %}

0 commit comments

Comments
 (0)