Skip to content

Commit ca44e46

Browse files
committed
rtd theme for shpinx and docs
1 parent c9c9e7e commit ca44e46

File tree

10 files changed

+872
-1988
lines changed

10 files changed

+872
-1988
lines changed
22.6 KB
Loading
8.19 KB
Loading

docs/source/_tutorials/tutorial1stl.html

Lines changed: 103 additions & 1589 deletions
Large diffs are not rendered by default.

docs/source/_tutorials/tutorial2iges.html

Lines changed: 341 additions & 0 deletions
Large diffs are not rendered by default.

docs/source/conf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import shlex
1818
import sphinx
1919
from sphinx.errors import VersionRequirementError
20+
import sphinx_rtd_theme
2021

2122
# If extensions (or modules to document with autodoc) are in another directory,
2223
# add these directories to sys.path here. If the directory is relative to the
@@ -67,7 +68,7 @@
6768
master_doc = 'index'
6869

6970
# General information about the project.
70-
project = u'pygem'
71+
project = u'PyGeM'
7172
copyright = u'2016, Filippo Salmoiraghi, Marco Tezzele'
7273
author = u'Filippo Salmoiraghi, Marco Tezzele'
7374

@@ -79,7 +80,7 @@
7980
# built documents.
8081
#
8182
# The short X.Y version.
82-
version = '0.1'
83+
version = '0.2'
8384
# The full version, including alpha/beta/rc tags.
8485
release = version
8586

@@ -132,15 +133,16 @@
132133

133134
# The theme to use for HTML and HTML Help pages. See the documentation for
134135
# a list of builtin themes.
135-
html_theme = 'bizstyle'
136+
#html_theme = 'bizstyle'
137+
html_theme = "sphinx_rtd_theme"
136138

137139
# Theme options are theme-specific and customize the look and feel of a theme
138140
# further. For a list of options available for each theme, see the
139141
# documentation.
140142
#html_theme_options = {}
141143

142144
# Add any paths that contain custom themes here, relative to this directory.
143-
#html_theme_path = []
145+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
144146

145147
# The name for this set of Sphinx documents. If None, it defaults to
146148
# "<project> v<release> documentation".

docs/source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Guide
2929

3030
code
3131
contact
32+
contributing
3233
LICENSE
3334

3435

@@ -38,6 +39,7 @@ Tutorials
3839
We made some tutorial examples:
3940

4041
- `Tutorial 1 <tutorial1stl.html>`_ shows how to deal with stl files
42+
- `Turorial 2 <tutorial2iges.html>`_ show how to deal with iges files
4143

4244

4345

pygem/igeshandler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def write(self, mesh_points, filename, tolerance=None):
122122
:param numpy.ndarray mesh_points: it is a `n_points`-by-3 matrix containing
123123
the coordinates of the points of the mesh
124124
:param string filename: name of the output file.
125+
:param float tolerance: tolerance for the construction of the faces and wires
126+
in the write function. If not given it uses `self.tolerance`.
125127
"""
126128
self._check_filename_type(filename)
127129
self._check_extension(filename)

setup.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ def readme():
88
return f.read()
99

1010
setup(name='pygem',
11-
version='0.1',
11+
version='0.2',
1212
description='Tools to apply FFD.',
1313
long_description=readme(),
1414
classifiers=[
15-
'Development Status :: 3 - Alpha',
15+
'Development Status :: 4 - Beta',
1616
'License :: OSI Approved :: MIT License',
1717
'Programming Language :: Python :: 2.7',
1818
'Intended Audience :: Science/Research',
1919
'Topic :: Scientific/Engineering :: Mathematics'
2020
],
21-
keywords='dimension reduction mathematics ffd',
21+
keywords='dimension_reduction mathematics ffd morphing iges stl vtk openfoam',
2222
url='https://github.com/mathLab/PyGeM',
23-
authors='Filippo Salmoiraghi, Marco Tezzele',
23+
author='Filippo Salmoiraghi, Marco Tezzele',
2424
2525
license='MIT',
2626
packages=['pygem'],
@@ -29,7 +29,9 @@ def readme():
2929
'numpy-stl',
3030
'scipy',
3131
'matplotlib',
32-
'enum34'
32+
'enum34',
33+
'Sphinx>=1.4',
34+
'sphinx_rtd_theme'
3335
],
3436
test_suite='nose.collector',
3537
tests_require=['nose'],

tutorials/tutorial-1-stl.ipynb

Lines changed: 256 additions & 244 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)