Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
heitzmann committed Jan 17, 2017
1 parent 1352a45 commit 8f1aa37
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 103 deletions.
15 changes: 14 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,22 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'numpydoc',
'sphinx.ext.napoleon',
]

# Napoleon settings
napoleon_google_docstring = False
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = False
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = True
napoleon_use_param = True
napoleon_use_rtype = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
81 changes: 21 additions & 60 deletions docs/construction.rst → docs/geometry.rst
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
Main API
========
#####################
Geometry Construction
#####################

.. automodule:: gdspy


*******
Classes
~~~~~~~

GdsLibrary
----------

.. autoclass:: gdspy.GdsLibrary
:members:
:no-undoc-members:
:inherited-members:
:show-inheritance:


Cell
----

.. autoclass:: gdspy.Cell
:members:
:undoc-members:
:inherited-members:
:show-inheritance:

*******

Polygon
-------
=======

.. autoclass:: gdspy.Polygon
:members:
Expand All @@ -38,7 +19,7 @@ Polygon


Rectangle
---------
=========

.. autoclass:: gdspy.Rectangle
:members:
Expand All @@ -48,7 +29,7 @@ Rectangle


Round
-----
=====

.. autoclass:: gdspy.Round
:members:
Expand All @@ -58,7 +39,7 @@ Round


PolygonSet
----------
==========

.. autoclass:: gdspy.PolygonSet
:members:
Expand All @@ -68,7 +49,7 @@ PolygonSet


Path
----
====

.. autoclass:: gdspy.Path
:members:
Expand All @@ -78,7 +59,7 @@ Path


PolyPath
--------
========

.. autoclass:: gdspy.PolyPath
:members:
Expand All @@ -88,7 +69,7 @@ PolyPath


L1Path
------
======

.. autoclass:: gdspy.L1Path
:members:
Expand All @@ -98,7 +79,7 @@ L1Path


Text
----
====

.. autoclass:: gdspy.Text
:members:
Expand All @@ -107,60 +88,40 @@ Text
:show-inheritance:


CellReference
-------------

.. autoclass:: gdspy.CellReference
:members:
:undoc-members:
:inherited-members:
:show-inheritance:


CellArray
---------

.. autoclass:: gdspy.CellArray
:members:
:undoc-members:
:inherited-members:
:show-inheritance:


*********
Functions
~~~~~~~~~
*********

fast_boolean
------------
============

.. autofunction:: gdspy.fast_boolean


boolean
-------
=======

.. autofunction:: gdspy.boolean

offset
------
======

.. autofunction:: gdspy.offset


slice
-----
=====

.. autofunction:: gdspy.slice


inside
------
======

.. autofunction:: gdspy.inside


copy
----
====

.. autofunction:: gdspy.copy

10 changes: 6 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#####################
gdspy's Documentation
=====================
#####################

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.

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

tutorial
construction
io
geometry
library

*******
Support
=======
*******

Help support the development of gdspy by donating:

Expand Down
36 changes: 0 additions & 36 deletions docs/io.rst

This file was deleted.

84 changes: 84 additions & 0 deletions docs/library.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#############
GDSII Library
#############

.. automodule:: gdspy

*******
Classes
*******

Cell
====

.. autoclass:: gdspy.Cell
:members:
:undoc-members:
:inherited-members:
:show-inheritance:


CellReference
=============

.. autoclass:: gdspy.CellReference
:members:
:undoc-members:
:inherited-members:
:show-inheritance:


CellArray
=========

.. autoclass:: gdspy.CellArray
:members:
:undoc-members:
:inherited-members:
:show-inheritance:


GdsLibrary
==========

.. autoclass:: gdspy.GdsLibrary
:members:
:no-undoc-members:
:inherited-members:
:show-inheritance:


GdsWriter
=========

.. autoclass:: gdspy.GdsWriter
:members:
:no-undoc-members:
:inherited-members:
:show-inheritance:


LayoutViewer
============

.. autoclass:: gdspy.LayoutViewer
:members:
:no-undoc-members:
:no-inherited-members:
:no-show-inheritance:


*********
Functions
*********

write_gds
=========

.. autofunction:: gdspy.write_gds

**********
Attributes
**********

.. autodata:: current_library
3 changes: 2 additions & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
###########
Sample File
===========
###########

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

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
setuptools
numpy
numpydoc
future; python_version < "3"

0 comments on commit 8f1aa37

Please sign in to comment.