Skip to content

Commit 8f1aa37

Browse files
committed
Update docs
1 parent 1352a45 commit 8f1aa37

File tree

7 files changed

+127
-103
lines changed

7 files changed

+127
-103
lines changed

docs/conf.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,22 @@
3232
# ones.
3333
extensions = [
3434
'sphinx.ext.autodoc',
35-
'numpydoc',
35+
'sphinx.ext.napoleon',
3636
]
3737

38+
# Napoleon settings
39+
napoleon_google_docstring = False
40+
napoleon_numpy_docstring = True
41+
napoleon_include_init_with_doc = False
42+
napoleon_include_private_with_doc = False
43+
napoleon_include_special_with_doc = False
44+
napoleon_use_admonition_for_examples = False
45+
napoleon_use_admonition_for_notes = False
46+
napoleon_use_admonition_for_references = False
47+
napoleon_use_ivar = True
48+
napoleon_use_param = True
49+
napoleon_use_rtype = True
50+
3851
# Add any paths that contain templates here, relative to this directory.
3952
templates_path = ['_templates']
4053

Lines changed: 21 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
Main API
2-
========
1+
#####################
2+
Geometry Construction
3+
#####################
34

45
.. automodule:: gdspy
56

6-
7+
*******
78
Classes
8-
~~~~~~~
9-
10-
GdsLibrary
11-
----------
12-
13-
.. autoclass:: gdspy.GdsLibrary
14-
:members:
15-
:no-undoc-members:
16-
:inherited-members:
17-
:show-inheritance:
18-
19-
20-
Cell
21-
----
22-
23-
.. autoclass:: gdspy.Cell
24-
:members:
25-
:undoc-members:
26-
:inherited-members:
27-
:show-inheritance:
28-
9+
*******
2910

3011
Polygon
31-
-------
12+
=======
3213

3314
.. autoclass:: gdspy.Polygon
3415
:members:
@@ -38,7 +19,7 @@ Polygon
3819

3920

4021
Rectangle
41-
---------
22+
=========
4223

4324
.. autoclass:: gdspy.Rectangle
4425
:members:
@@ -48,7 +29,7 @@ Rectangle
4829

4930

5031
Round
51-
-----
32+
=====
5233

5334
.. autoclass:: gdspy.Round
5435
:members:
@@ -58,7 +39,7 @@ Round
5839

5940

6041
PolygonSet
61-
----------
42+
==========
6243

6344
.. autoclass:: gdspy.PolygonSet
6445
:members:
@@ -68,7 +49,7 @@ PolygonSet
6849

6950

7051
Path
71-
----
52+
====
7253

7354
.. autoclass:: gdspy.Path
7455
:members:
@@ -78,7 +59,7 @@ Path
7859

7960

8061
PolyPath
81-
--------
62+
========
8263

8364
.. autoclass:: gdspy.PolyPath
8465
:members:
@@ -88,7 +69,7 @@ PolyPath
8869

8970

9071
L1Path
91-
------
72+
======
9273

9374
.. autoclass:: gdspy.L1Path
9475
:members:
@@ -98,7 +79,7 @@ L1Path
9879

9980

10081
Text
101-
----
82+
====
10283

10384
.. autoclass:: gdspy.Text
10485
:members:
@@ -107,60 +88,40 @@ Text
10788
:show-inheritance:
10889

10990

110-
CellReference
111-
-------------
112-
113-
.. autoclass:: gdspy.CellReference
114-
:members:
115-
:undoc-members:
116-
:inherited-members:
117-
:show-inheritance:
118-
119-
120-
CellArray
121-
---------
122-
123-
.. autoclass:: gdspy.CellArray
124-
:members:
125-
:undoc-members:
126-
:inherited-members:
127-
:show-inheritance:
128-
129-
91+
*********
13092
Functions
131-
~~~~~~~~~
93+
*********
13294

13395
fast_boolean
134-
------------
96+
============
13597

13698
.. autofunction:: gdspy.fast_boolean
13799

138100

139101
boolean
140-
-------
102+
=======
141103

142104
.. autofunction:: gdspy.boolean
143105

144106
offset
145-
------
107+
======
146108

147109
.. autofunction:: gdspy.offset
148110

149111

150112
slice
151-
-----
113+
=====
152114

153115
.. autofunction:: gdspy.slice
154116

155117

156118
inside
157-
------
119+
======
158120

159121
.. autofunction:: gdspy.inside
160122

161123

162124
copy
163-
----
125+
====
164126

165127
.. autofunction:: gdspy.copy
166-

docs/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#####################
12
gdspy's Documentation
2-
=====================
3+
#####################
34

45
For installation instructions and other information, please check out the `GitHub <https://github.com/heitzmann/gdspy>`_ repository or the README file included with the source.
56

@@ -8,11 +9,12 @@ For installation instructions and other information, please check out the `GitHu
89
:caption: Table of Contents
910

1011
tutorial
11-
construction
12-
io
12+
geometry
13+
library
1314

15+
*******
1416
Support
15-
=======
17+
*******
1618

1719
Help support the development of gdspy by donating:
1820

docs/io.rst

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/library.rst

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#############
2+
GDSII Library
3+
#############
4+
5+
.. automodule:: gdspy
6+
7+
*******
8+
Classes
9+
*******
10+
11+
Cell
12+
====
13+
14+
.. autoclass:: gdspy.Cell
15+
:members:
16+
:undoc-members:
17+
:inherited-members:
18+
:show-inheritance:
19+
20+
21+
CellReference
22+
=============
23+
24+
.. autoclass:: gdspy.CellReference
25+
:members:
26+
:undoc-members:
27+
:inherited-members:
28+
:show-inheritance:
29+
30+
31+
CellArray
32+
=========
33+
34+
.. autoclass:: gdspy.CellArray
35+
:members:
36+
:undoc-members:
37+
:inherited-members:
38+
:show-inheritance:
39+
40+
41+
GdsLibrary
42+
==========
43+
44+
.. autoclass:: gdspy.GdsLibrary
45+
:members:
46+
:no-undoc-members:
47+
:inherited-members:
48+
:show-inheritance:
49+
50+
51+
GdsWriter
52+
=========
53+
54+
.. autoclass:: gdspy.GdsWriter
55+
:members:
56+
:no-undoc-members:
57+
:inherited-members:
58+
:show-inheritance:
59+
60+
61+
LayoutViewer
62+
============
63+
64+
.. autoclass:: gdspy.LayoutViewer
65+
:members:
66+
:no-undoc-members:
67+
:no-inherited-members:
68+
:no-show-inheritance:
69+
70+
71+
*********
72+
Functions
73+
*********
74+
75+
write_gds
76+
=========
77+
78+
.. autofunction:: gdspy.write_gds
79+
80+
**********
81+
Attributes
82+
**********
83+
84+
.. autodata:: current_library

docs/tutorial.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
###########
12
Sample File
2-
===========
3+
###########
34

45
The following code is a sample to quickly demonstrate some features of gdspy.
56

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
setuptools
22
numpy
3-
numpydoc
43
future; python_version < "3"

0 commit comments

Comments
 (0)