[Yt-svn] commit/yt-doc: 3 new changesets

Bitbucket commits-noreply at bitbucket.org
Fri Aug 26 07:12:56 PDT 2011


3 new changesets in yt-doc:

http://bitbucket.org/yt_analysis/yt-doc/changeset/bde2639a13ef/
changeset:   bde2639a13ef
user:        MatthewTurk
date:        2011-08-26 13:49:34
summary:     Target fixes.  Keep messing these up...
affected #:  1 file (3 bytes)

--- a/source/advanced/developing.rst	Fri Aug 26 07:46:53 2011 -0400
+++ b/source/advanced/developing.rst	Fri Aug 26 07:49:34 2011 -0400
@@ -5,9 +5,9 @@
 
 .. note:: If you already know how to use version control and are comfortable
    with handling it yourself, the quickest way to contribute to yt is to `fork
-   us on BitBucket <http://hg.yt-project.org/yt/fork>`, `make your changes
-   <http://mercurial.selenic.com/>`, and issue a `pull request
-   <http://hg.yt-project.org/yt/pull>`.  The rest of this document is just an
+   us on BitBucket <http://hg.yt-project.org/yt/fork>`_, `make your changes
+   <http://mercurial.selenic.com/>`_, and issue a `pull request
+   <http://hg.yt-project.org/yt/pull>`_.  The rest of this document is just an
    explanation of how to do that.
 
 yt is a community project!


http://bitbucket.org/yt_analysis/yt-doc/changeset/97c3f6e154c2/
changeset:   97c3f6e154c2
user:        MatthewTurk
date:        2011-08-26 13:51:56
summary:     conf.py updates for 2.2
affected #:  1 file (1 byte)

--- a/source/conf.py	Fri Aug 26 07:49:34 2011 -0400
+++ b/source/conf.py	Fri Aug 26 07:51:56 2011 -0400
@@ -44,16 +44,16 @@
 
 # General information about the project.
 project = u'yt'
-copyright = u'2011, Matthew J. Turk'
+copyright = u'2011, the yt Project'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '2.1'
+version = '2.2'
 # The full version, including alpha/beta/rc tags.
-release = '2.1'
+release = '2.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
@@ -197,7 +197,7 @@
 # (source start file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
   ('index', 'yt.tex', u'yt Documentation',
-   u'Matthew J. Turk', 'manual'),
+   u'The yt Project', 'manual'),
 ]
 
 # The name of an image file (relative to this directory) to place at the top of
@@ -230,13 +230,13 @@
 # (source start file, name, description, authors, manual section).
 man_pages = [
     ('index', 'yt', u'yt Documentation',
-     [u'Matthew J. Turk'], 1)
+     [u'The yt Project'], 1)
 ]
 
 
 # Example configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {'http://docs.python.org/': None,
-                       'http://ipython.scipy.org/doc/manual/html/': None,
+                       'http://ipython.org/ipython-doc/rel-0.10/html/': None,
                        'http://docs.scipy.org/doc/numpy/': None,
                        'http://matplotlib.sourceforge.net/': None,
                        }


http://bitbucket.org/yt_analysis/yt-doc/changeset/5a084b0c034f/
changeset:   5a084b0c034f
user:        MatthewTurk
date:        2011-08-26 16:12:36
summary:     Adding a youtube extension, and adding some paraview stuff.
affected #:  4 files (2.8 KB)

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extensions/youtube.py	Fri Aug 26 10:12:36 2011 -0400
@@ -0,0 +1,43 @@
+# http://countergram.com/youtube-in-rst
+
+from docutils import nodes
+from docutils.parsers.rst import directives
+
+CODE = """\
+<object type="application/x-shockwave-flash"
+        width="%(width)s"
+        height="%(height)s"
+        class="youtube-embed"
+        data="http://www.youtube.com/v/%(yid)s">
+    <param name="movie" value="http://www.youtube.com/v/%(yid)s"></param>
+    <param name="wmode" value="transparent"></param>%(extra)s
+</object>
+"""
+
+PARAM = """\n    <param name="%s" value="%s"></param>"""
+
+def youtube(name, args, options, content, lineno,
+            contentOffset, blockText, state, stateMachine):
+    """ Restructured text extension for inserting youtube embedded videos """
+    if len(content) == 0:
+        return
+    string_vars = {
+        'yid': content[0],
+        'width': 425,
+        'height': 344,
+        'extra': ''
+        }
+    extra_args = content[1:] # Because content[0] is ID
+    extra_args = [ea.strip().split("=") for ea in extra_args] # key=value
+    extra_args = [ea for ea in extra_args if len(ea) == 2] # drop bad lines
+    extra_args = dict(extra_args)
+    if 'width' in extra_args:
+        string_vars['width'] = extra_args.pop('width')
+    if 'height' in extra_args:
+        string_vars['height'] = extra_args.pop('height')
+    if extra_args:
+        params = [PARAM % (key, extra_args[key]) for key in extra_args]
+        string_vars['extra'] = "".join(params)
+    return [nodes.raw('', CODE % (string_vars), format='html')]
+youtube.content = True
+directives.register_directive('youtube', youtube)


--- a/source/conf.py	Fri Aug 26 07:51:56 2011 -0400
+++ b/source/conf.py	Fri Aug 26 10:12:36 2011 -0400
@@ -27,7 +27,7 @@
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',
               'sphinx.ext.pngmath', 'sphinx.ext.viewcode',
-              'sphinx.ext.autosummary', 'numpydocmod',
+              'sphinx.ext.autosummary', 'numpydocmod', 'youtube',
 ]
 
 # Add any paths that contain templates here, relative to this directory.


--- a/source/index.rst	Fri Aug 26 07:51:56 2011 -0400
+++ b/source/index.rst	Fri Aug 26 10:12:36 2011 -0400
@@ -32,6 +32,7 @@
 
    welcome_to_yt
    orientation
+   interacting_with_yt
    analyzing/index
    visualizing/index
    analysis_modules/index


--- a/source/interacting_with_yt.rst	Fri Aug 26 07:51:56 2011 -0400
+++ b/source/interacting_with_yt.rst	Fri Aug 26 10:12:36 2011 -0400
@@ -1,3 +1,5 @@
+.. _interacting_with_yt:
+
 Ways of Interacting with yt
 ===========================
 
@@ -7,14 +9,50 @@
 Interactive Prompt
 ------------------
 
+.. _command-line:
+
 Command-line Utility
 --------------------
 
+.. _reason:
+
 The GUI Reason
 --------------
 
+.. _mapserver:
+
 Mapserver
 ---------
 
+.. _paraview:
+
 ParaView
 --------
+
+.. note:: As of 2.2 the ParaView-yt interoperability is still a work in
+   progress.  Much can be done, but the setup still requires a bit of work.
+
+ParaView support for yt is still preliminary, but is possible.  Future versions
+of ParaView will include the necessary components.  For now, however, to enable
+yt as a plugin in ParaView you will have to build from source and use the
+branches ``AMR-Refactor`` in both VTK and ParaView.  When building, you must
+also link against the Python with which yt was installed.
+
+Finally, to enable the yt ParaView plugin, you must also install the yt plugin,
+available in the `yt-paraview
+<https://gitorious.org/yt-paraview/paraview-plugins>`_ git repository.  (You
+should be able to use ``pip install hg-git`` to install hg-git, which enables
+checking out git repos via mercurial.)
+
+Jorge Poco has created a YouTube video of `ParaView using yt as a plugin
+<http://www.youtube.com/watch?v=cOv4Ob2q1fM>`_:
+
+.. youtube:: cOv4Ob2q1fM
+   width: 600
+   height: 400
+
+
+For more information, there are also two blog posts about this:
+
+ * http://blog.enzotools.org/a-movie-of-yt-in-paraview
+ * http://blog.enzotools.org/paraview-and-yt

Repository URL: https://bitbucket.org/yt_analysis/yt-doc/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list