Commits

Peter Ward committed 1e3dc4e

prettier primitives docs

  • Participants
  • Parent commits b442986

Comments (0)

Files changed (2)

File docs/primitives.rst

 Primitives
-~~~~~~~~~~
+==========
 
 .. module:: shinypress.render
 
-Got an image? Let’s render that for you:
+Images
+~~~~~~
 
 .. autofunction:: render_image
 
-Oh, you have some text instead? Well, let’s do that, then:
+Text
+~~~~
 
 .. autofunction:: render_text
 .. autoclass:: HAlignment
 .. autoclass:: VAlignment
 
-And there’s also a utility function useful for scaling content, used by those functions above.
+Utilities
+~~~~~~~~~
 
 .. autofunction:: scale
 .. autoclass:: ScalingMode

File shinypress/render.py

     """
     Horizontal alignment.
     Not an enum in the true sense, just some related constants.
+
+    :var LEFT:
+    :var CENTER:
+    :var RIGHT:
     """
     LEFT = 0.0
     CENTER = 0.5
     """
     Vertical alignment.
     Not an enum in the true sense, just some related constants.
+
+    :var TOP:
+    :var MIDDLE:
+    :var BOTTOM:
     """
     TOP = 0.0
     MIDDLE = 0.5