[yt-svn] commit/yt-doc: MatthewTurk: Adding a table generator.
Bitbucket
commits-noreply at bitbucket.org
Sat Jul 7 19:45:32 PDT 2012
1 new commit in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/changeset/dce7bbfc2b04/
changeset: dce7bbfc2b04
user: MatthewTurk
date: 2012-07-08 04:43:57
summary: Adding a table generator.
affected #: 3 files
diff -r aa6ea150c0505bc3d9da1ca782ee940b32e42ad2 -r dce7bbfc2b0495b58e7223730c884633659c9ac3 source/_static/agogo_yt.css
--- a/source/_static/agogo_yt.css
+++ b/source/_static/agogo_yt.css
@@ -20,6 +20,10 @@
padding: 5px 15px 0px 15px;
}
+table.contentstable tr {
+ border-bottom: 1px solid black;
+}
+
a.biglink {
line-height: 1.2em;
}
diff -r aa6ea150c0505bc3d9da1ca782ee940b32e42ad2 -r dce7bbfc2b0495b58e7223730c884633659c9ac3 source/index.rst
--- a/source/index.rst
+++ b/source/index.rst
@@ -43,6 +43,7 @@
cookbook/index
field_list
api
+ changelog
configuration
faq/index
@@ -199,5 +200,49 @@
</td></tr>
+ <tr valign="top">
+ <td width="25%">
+ <p>
+ <a href="api.html">Function and Class List</a>
+ </p>
+ </td>
+ <td width="75%">
+ <p class="linkdescr">Documentation and description of the functions and objects available in yt.</p>
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <td width="25%">
+ <p>
+ <a href="changelog.html">Changelog</a>
+ </p>
+ </td>
+ <td width="75%">
+ <p class="linkdescr">Changes in yt by version.</p>
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <td width="25%">
+ <p>
+ <a href="field_list.html">Field List</a>
+ </p>
+ </td>
+ <td width="75%">
+ <p class="linkdescr">All the derived fields yt knows how to generate.</p>
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <td width="25%">
+ <p>
+ <a href="configuration.html">Configuration</a>
+ </p>
+ </td>
+ <td width="75%">
+ <p class="linkdescr">Configuration Options in yt</p>
+ </td>
+ </tr>
+
</table>
diff -r aa6ea150c0505bc3d9da1ca782ee940b32e42ad2 -r dce7bbfc2b0495b58e7223730c884633659c9ac3 table.py
--- /dev/null
+++ b/table.py
@@ -0,0 +1,84 @@
+contents = [
+ ("Getting Started", [
+ ("welcome/index.html", "Welcome to yt!",
+ "What's yt all about?"),
+ ("orientation/index.html", "yt Orientation",
+ "Quickly get up and running with yt: zero to sixty."),
+ ("help/index.html", "How to Ask for Help",
+ "Some guidelines on how and where to ask for help with yt"),
+ ]),
+ ("Everyday yt", [
+ ("analyzing/index.html", "Analyzing Data",
+ "An overview of different ways to handle and process data: loading " +
+ "data, using and manipulating objects and fields, examining and " +
+ "manipulating particles, derived fields, generating processed data, " +
+ "time series analysis."),
+ ("visualizing/index.html", "Visualizing Data",
+ "An overview of different ways to visualize data: making projections, " +
+ "slices, phase plots, streamlines, and volume rendering; modifying " +
+ "plots; the fixed resolution buffer."),
+ ("interacting/index.html", "Interacting with yt",
+ "Different ways -- scripting, GUIs, prompts, explorers -- to explore " +
+ "your data."),
+ ("analysis_modules/index.html", "Analysis Modules",
+ "Discussions of some provided procedures for astrophysical analysis " +
+ "like halo finding and synthetic spectra. Halo finding, analyzing " +
+ "cosmology simulations, halo mass functions, halo profiling, light " +
+ "cone generator, making absorption spectrums, star particle " +
+ "analysis, two-point functions, halo merger trees, clump finding, " +
+ "radial column density, exporting to sunrise.")
+ ]),
+ ("Advanced Usage", [
+ ("advanced/index.html", "Advanced yt usage",
+ "Advanced topics: parallelism, debugging, ways to drive yt, " +
+ "developing"),
+ ("getting_involved/index.html", "Getting Involved",
+ "How to participate in the community, contribute code and share " +
+ "scripts"),
+ ]),
+ ("Reference Materials", [
+ ("cookbook/index.html", "The Cookbook",
+ "A bunch of illustrated examples of how to do things"),
+ ("reference/index.html", "Reference Materials",
+ "A list of all bundled fields, API documentation, the Change Log..."),
+ ("faq/index.html", "FAQ",
+ "Frequently Asked Questions: answered for you!"),
+ ("api.html", "Function and Class List",
+ "Documentation and description of the functions and objects " +
+ "available in yt."),
+ ("changelog.html", "Changelog",
+ "Changes in yt by version."),
+ ("field_list.html", "Field List",
+ "All the derived fields yt knows how to generate."),
+ ("configuration.html", "Configuration",
+ "Configuration Options in yt"),
+ ]),
+]
+
+heading_template = r"""
+<h2>%s</h2>
+<table class="contentstable" align="center">
+%s
+</table>
+"""
+
+subheading_template = r"""
+ <tr valign="top">
+ <td width="25%%">
+ <p>
+ <a href="%s">%s</a>
+ </p>
+ </td>
+ <td width="75%%">
+ <p class="linkdescr">%s</p>
+ </td>
+ </tr>
+"""
+
+t = ""
+for heading, items in contents:
+ s = ""
+ for subheading in items:
+ s += subheading_template % subheading
+ t += heading_template % (heading, s)
+print t
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