quantopian / zipline

Zipline, a Pythonic Algorithmic Trading Library
https://www.zipline.io
Apache License 2.0
17.65k stars 4.72k forks source link

better framework Documentation #1215

Open bicepjai opened 8 years ago

bicepjai commented 8 years ago

Dear Zipline Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

Now that you know a little about me, let me tell you about the issue I am having: I am trying to understand the framework better such as class hierarchies and as such.

Description of Issue

when i run

(master)[zipline]$ PYTHONPATH=. && epydoc --pdf zipline
(master)*[zipline]$ PYTHONPATH=. && epydoc --pdf zipline
+-----------------------------------------------------------------------------------------
| In /Users/bicepjai/Projects/softwares/zipline/zipline/__init__.py:
| Source code parsing failed (but introspection was successful).
|     Error: Error during parsing: invalid syntax (/Users/bicepjai/Projects/softwares/
|            zipline/zipline/__init__.py, line 19) -- Attempted relative import in
|            non-package, or beyond toplevel package
|
+-----------------------------------------------------------------------------------------
| In /Users/bicepjai/Projects/softwares/zipline/zipline/dispatch.py:
| Import failed (but source code parsing was successful).
|     Error: NameError: name 'namespace' is not defined (line 19)
|
Warning: Unable to extract the base list for zipline.finance.execution.ExecutionStyle: Bad
         dotted name
Warning: Unable to extract the base list for zipline.finance.cancel_policy.CancelPolicy:
         Bad dotted name
Warning: Unable to extract the base list for zipline.finance.slippage.SlippageModel: Bad
         dotted name
Warning: Unable to extract the base list for zipline.finance.controls.TradingControl: Bad
         dotted name
Warning: Unable to extract the base list for zipline.finance.controls.AccountControl: Bad
         dotted name
Warning: Unable to extract the base list for zipline.pipeline.engine.PipelineEngine: Bad
         dotted name
Warning: Unable to extract the base list for zipline.pipeline.term.Term: Bad dotted name
      00:03                                 Progress:                                 01:46
  3% [===----------------------------------------------------------------------------------]
      Building documentation: zipline.pipeline.term (/Users/bicepjai/Projects/softwares/...

UNEXPECTED ERROR:
data type not understood

Use --debug to see trace information.

Here is how you can reproduce this issue on your machine:

Reproduction Steps

  1. goto zipline folder
  2. just try running epydoc --pdf zipline

    What steps have you taken to resolve this already?

im trying to reach out to the community

Sincerely, jay

llllllllll commented 8 years ago

For Zipline we use sphinx to generate our docs. This is what you see on zipline.io. If you would like to build the docs locally, you can cd into docs/ and run make html and then open up the pages with $BROWSER build/html/index.html

bicepjai commented 8 years ago

Thanks. I was looking for more like module explanations like lean-block-diagrams and class hierarchy uml diagrams.