Skip to content

Commit ba3c312

Browse files
author
Steve Canny
committed
update documentation
1 parent 6636d01 commit ba3c312

File tree

3 files changed

+100
-20
lines changed

3 files changed

+100
-20
lines changed

doc/conf.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
# import sys, os
15+
import sys, os
1616

1717
# If extensions (or modules to document with autodoc) are in another directory,
1818
# add these directories to sys.path here. If the directory is relative to the
1919
# documentation root, use os.path.abspath to make it absolute, like shown here.
20-
#sys.path.insert(0, os.path.abspath('.'))
20+
sys.path.insert(0, os.path.abspath('..'))
2121

2222
# -- General configuration ---------------------------------------------------
2323

@@ -55,19 +55,27 @@
5555
# built documents.
5656
#
5757
# The short X.Y version.
58-
version = '0.1.0'
58+
version = '0.1'
5959
# The full version, including alpha/beta/rc tags.
6060
release = '0.1.0'
6161

62-
# The language for content autogenerated by Sphinx. Refer to documentation
63-
# for a list of supported languages.
64-
#language = None
62+
# A string of reStructuredText that will be included at the end of every source
63+
# file that is read. This is the right place to add substitutions that should
64+
# be available in every file.
65+
rst_epilog = """
66+
.. |OpcPackage| replace:: :class:`OpcPackage`
67+
68+
.. |PackURI| replace:: :class:`PackURI`
69+
70+
.. |Part| replace:: :class:`Part`
71+
72+
.. |_Relationship| replace:: :class:`_Relationship`
73+
74+
.. |po| replace:: ``python-opc``
75+
76+
.. |python-opc| replace:: ``python-opc``
77+
"""
6578

66-
# There are two options for replacing |today|: either, you set today to some
67-
# non-false value, then it is used:
68-
#today = ''
69-
# Else, today_fmt is used as the format for a strftime call.
70-
#today_fmt = '%B %d, %Y'
7179

7280
# List of patterns, relative to source directory, that match files and
7381
# directories to ignore when looking for source files.

doc/index.rst

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,92 @@
22
python-opc
33
##########
44

5-
Contents:
5+
Welcome
6+
=======
7+
8+
|po| is a Python library for manipulating Open Packaging Convention (OPC)
9+
packages. An OPC package is the file format used by Microsoft Office 2007 and
10+
later for Word, Excel, and PowerPoint.
11+
12+
**STATUS: as of Jul 28 2013 python-opc and this documentation for it are both
13+
work in progress.**
14+
15+
16+
Documentation
17+
=============
18+
19+
|OpcPackage| objects
20+
====================
21+
22+
.. autoclass:: opc.OpcPackage
23+
:members:
24+
:member-order: bysource
25+
:undoc-members:
26+
27+
28+
|Part| objects
29+
==============
30+
31+
The |Part| class is the default type for package parts and also serves as the
32+
base class for custom part classes.
33+
34+
.. autoclass:: opc.package.Part
35+
:members:
36+
:member-order: bysource
37+
:undoc-members:
38+
39+
40+
|_Relationship| objects
41+
=======================
42+
43+
The |_Relationship| class ...
44+
45+
.. autoclass:: opc.package._Relationship
46+
:members:
47+
:member-order: bysource
48+
:undoc-members:
649

7-
.. toctree::
8-
developer/design_narratives
9-
:maxdepth: 2
1050

11-
Notes
12-
=====
51+
Concepts
52+
========
1353

54+
ISO/IEC 29500 Specification
55+
---------------------------
1456

1557

58+
Package contents
59+
----------------
1660

17-
Indices and tables
18-
==================
61+
Content types stream, package relationships, parts.
62+
63+
64+
Pack URIs
65+
---------
66+
67+
... A partname is a special case of pack URI ...
68+
69+
70+
Parts
71+
-----
72+
73+
74+
Relationships
75+
-------------
76+
77+
... target mode ... relationship type ... rId ... targets
78+
79+
80+
Content types
81+
-------------
82+
83+
84+
85+
Contents
86+
========
87+
88+
.. toctree::
89+
developer/design_narratives
90+
:maxdepth: 2
1991

2092
* :ref:`genindex`
2193
* :ref:`modindex`

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
PACKAGES = ['opc']
2929

3030
INSTALL_REQUIRES = ['lxml']
31-
TEST_SUITE = 'test'
31+
TEST_SUITE = 'tests'
3232
TESTS_REQUIRE = ['behave', 'mock', 'pytest']
3333

3434
CLASSIFIERS = [

0 commit comments

Comments
 (0)