This file is indexed.

/usr/share/doc/psi4/html/documentation.html is in psi4-data 1:0.3-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Documentation &mdash; Psi4 [] Docs</title>
    
    <link rel="stylesheet" href="_static/psi4.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="./" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/jquery.cookie.js"></script>
    <script type="text/javascript" src="_static/toggle_sections.js"></script>
    <script type="text/javascript" src="_static/toggle_sidebar.js"></script>
    <script type="text/javascript" src="_static/toggle_codeprompt.js"></script>
    <link rel="shortcut icon" href="_static/favicon-psi4.ico"/>
    <link rel="top" title="Psi4 [] Docs" href="index.html" />
    <link rel="up" title="Contributions: Intro to Programming in Psi4" href="contributing.html" />
    <link rel="next" title="PsiPEP: Plans and Practices to Organize Psi4" href="psipep.html" />
    <link rel="prev" title="Best Practices for Python Functions" href="bestpractices_py.html" /> 
  </head>
  <body role="document">
    <div class="relbar-top">
        
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> &nbsp; &nbsp;</li>
        <li class="right" >
          <a href="contents.html" title="Table Of Contents"
             accesskey="C">toc</a> &nbsp; &nbsp;</li>
        <li class="right" >
          <a href="psipep.html" title="PsiPEP: Plans and Practices to Organize Psi4"
             accesskey="N">next</a> &nbsp; &nbsp;</li>
        <li class="right" >
          <a href="bestpractices_py.html" title="Best Practices for Python Functions"
             accesskey="P">previous</a> &nbsp; &nbsp;</li>
    <li><a href="index.html">Psi4 []</a> &raquo; </li>

          <li class="nav-item nav-item-1"><a href="contributing.html" accesskey="U">Contributions: Intro to Programming in <span class="sc">Psi4</span></a> &raquo;</li> 
      </ul>
    </div>
    </div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <a class="reference internal image-reference" href="_images/psi4banner.png"><img alt="Psi4 Project Logo" src="_images/psi4banner.png" style="width: 100%;" /></a>
<div class="section" id="documentation">
<span id="sec-documentation"></span><h1>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline"></a></h1>
<p><span class="sc">Psi4</span>&#8216;s documentation is generated by <a class="reference external" href="http://sphinx.pocoo.org/">Sphinx</a>
and lives in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman">psi4/doc/sphinxman</a>. It is available online at
<a class="reference external" href="http://psicode.org/psi4manual/master/index.html">http://psicode.org/psi4manual/master/index.html</a>
for the latest development branch.</p>
<div class="section" id="installing-sphinx">
<h2>Installing Sphinx<a class="headerlink" href="#installing-sphinx" title="Permalink to this headline"></a></h2>
<p>Installing Sphinx is only necessary to build the documentation
yourself, locally. The docs are served from
from psicode, so most users/developers won&#8217;t need Sphinx
installed. Nevertheless, installation is easy.</p>
<p>On Mac:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">U</span> <span class="n">Sphinx</span>
<span class="go"># or</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">conda</span> <span class="n">install</span> <span class="n">sphinx</span>
</pre></div>
</div>
<p>On Linux:</p>
<ul>
<li><p class="first">Download</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">curl</span> <span class="o">-</span><span class="n">O</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">pypi</span><span class="o">.</span><span class="n">python</span><span class="o">.</span><span class="n">org</span><span class="o">/</span><span class="n">packages</span><span class="o">/</span><span class="n">source</span><span class="o">/</span><span class="n">S</span><span class="o">/</span><span class="n">Sphinx</span><span class="o">/</span><span class="n">Sphinx</span><span class="o">-</span><span class="mf">1.3</span><span class="o">.</span><span class="mf">1.</span><span class="n">tar</span><span class="o">.</span><span class="n">gz</span>
</pre></div>
</div>
</li>
<li><p class="first">Unpack, etc.</p>
</li>
<li><p class="first">Build and Install</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">python</span> <span class="n">setup</span><span class="o">.</span><span class="n">py</span> <span class="n">build</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">sudo</span> <span class="n">python</span> <span class="n">setup</span><span class="o">.</span><span class="n">py</span> <span class="n">install</span>
</pre></div>
</div>
</li>
<li><p class="first">Check the path</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">which</span> <span class="n">sphinx</span><span class="o">-</span><span class="n">build</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">which</span> <span class="n">latex</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">which</span> <span class="n">dvipng</span>
</pre></div>
</div>
</li>
<li><p class="first">LaTeX and dvipng are needed to render math. If the latter is missing,
the following may work.</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">sudo</span> <span class="n">yum</span> <span class="n">install</span> <span class="n">dvipng</span>
</pre></div>
</div>
</li>
</ul>
</div>
<div class="section" id="documentation-structure">
<h2>Documentation Structure<a class="headerlink" href="#documentation-structure" title="Permalink to this headline"></a></h2>
<p>Sphinx has nice capabilities for extracting docstrings from python files,
presenting both auto-generated and narrative documentation in the same
format, hyperlinking within and to trac/external websites, and generating
documentation in different formats from the same source.  <span class="sc">Psi4</span>&#8216;s
documentation is a unified document covering information for both users
and programmers in separate sections. From the top-level object directory,
build the following target (note that a working version of the <span class="sc">Psi4</span>
executable in <code class="docutils literal"><span class="pre">bin/psi4</span></code> is a requirement for building the
documentation).:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">make</span> <span class="n">sphinxman</span>
</pre></div>
</div>
<p>This will build a full set of documentation in the <code class="docutils literal"><span class="pre">html</span></code> directory that can be viewed offline through any browser.</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">doc</span><span class="o">/</span><span class="n">sphinxman</span><span class="o">/</span><span class="n">html</span><span class="o">/</span><span class="n">index</span><span class="o">.</span><span class="n">html</span>
</pre></div>
</div>
<p>Much of the documentation is auto-generated from the source. At present,
this covers:</p>
<ul class="simple">
<li>Physical Constants: <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/include/physconst.h">psi4/include/physconst.h</a></li>
<li>Python Driver: docstrings from *.py files in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/lib/python">psi4/lib/python</a></li>
<li>Databases: docstrings from *.py files in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/lib/databases">psi4/lib/databases</a></li>
<li>Basis Sets: *.gbs files in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/lib/basis">psi4/lib/basis</a></li>
<li>C++ Keywords: <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/src/bin/psi4/read_options.cc">psi4/src/bin/psi4/read_options.cc</a></li>
<li>Sample Inputs: input.dat files in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/samples">psi4/samples</a></li>
<li>PSI Variables: <code class="docutils literal"><span class="pre">Process::environment.globals</span></code> lines and comments in the C++ code</li>
<li>Plugins: <code class="docutils literal"><span class="pre">doc.rst</span></code> text, *.py modules, and C++ keywords in <code class="docutils literal"><span class="pre">psi4/tests/plugin_*</span></code> plugin directories (disabled at the moment)</li>
<li>PSI Files: scratch file names and numbers in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/include/psifiles.h">psi4/include/psifiles.h</a></li>
</ul>
<p>Some documentation is even extracted from Psi4 objects at runtime.</p>
<ul class="simple">
<li>psi4: docstrings for the psi4 built-in module constructed in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/src/bin/psi4">psi4/src/bin/psi4</a></li>
<li>DFT: functional availibility and characteristics as encoded in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/lib/python/functional.py">psi4/lib/python/functional.py</a></li>
<li>BasisFamily: fitting basis sets for each orbital basis as encoded in <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/lib/python/basislistdunning.py">psi4/lib/python/basislistdunning.py</a> and <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/lib/python/basislistother.py">psi4/lib/python/basislistother.py</a></li>
</ul>
<p>Building all the documentation takes ~10 minutes. There is now good
dependency structure built into the <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/CMakeLists.txt">psi4/doc/sphinxman/CMakeLists.txt</a>
, so very long builds should be infrequent (unless you&#8217;re touching
<a class="reference external" href="https://github.com/psi4/psi4public/blob/master/src/bin/psi4/read_options.cc">psi4/src/bin/psi4/read_options.cc</a>. Note that not all dependencies are
encoded (PSI variables, for instance, depend on every .cc file in the
source tree), so for a definitive doc build, remove (in the object
directory) <code class="docutils literal"><span class="pre">doc/sphinxman</span></code> and start from scratch.</p>
<p>Even ~10 minutes of build time can be annoying when developing
documentation and testing <code class="docutils literal"><span class="pre">rst</span></code> files. In that situation, use the target
below which builds only the written docs (not autodocs) in
<code class="docutils literal"><span class="pre">psi4/doc/sphinxman/source</span></code> quickly, though with a lot of warnings for
unresolved links:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">make</span> <span class="n">sphinxmini</span>
</pre></div>
</div>
</div>
<div class="section" id="restructuredtext">
<h2>reStructuredText<a class="headerlink" href="#restructuredtext" title="Permalink to this headline"></a></h2>
<p>Sphinx files are written in reStructuredText (*.rst). In the html
documentation, source code is available from the sidebar. Here&#8217;re a
few resources on Sphinx formatting.</p>
<ul class="simple">
<li><a class="reference external" href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">reStructuredText</a></li>
<li><a class="reference external" href="http://docutils.sourceforge.net/test/functional/expected/standalone_rst_html4css1.html">rendered test document</a>
<em>vs.</em> <a class="reference external" href="http://svn.python.org/projects/external/docutils-0.5/docs/user/rst/demo.txt">source test document</a></li>
<li><a class="reference external" href="http://people.ee.ethz.ch/~creller/web/tricks/reST.html">Another reStructuredText</a></li>
<li><a class="reference external" href="http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html">A third reStructuredText and Sphinx</a></li>
<li><a class="reference external" href="ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf">LaTeX that Sphinx can handle</a></li>
<li><a class="reference external" href="http://sphinx.pocoo.org/contents.html">Sphinx Docs</a></li>
</ul>
</div>
<div class="section" id="math-in-the-codebase">
<h2>Math in the Codebase<a class="headerlink" href="#math-in-the-codebase" title="Permalink to this headline"></a></h2>
<p>It is often useful to have mathematical expressions in docstrings or
comments in the code that are auto-documented into the manual. Such
locations include the <code class="docutils literal"><span class="pre">#!</span> <span class="pre">comment</span></code> comments at the top of test case
input files, the <code class="docutils literal"><span class="pre">/*-</span> <span class="pre">comment</span> <span class="pre">-*/</span></code> comments in
<a class="reference external" href="https://github.com/psi4/psi4public/blob/master/src/bin/psi4/read_options.cc">psi4/src/bin/psi4/read_options.cc</a>, and the <code class="docutils literal"><span class="pre">r&quot;&quot;&quot;</span> <span class="pre">comment</span> <span class="pre">&quot;&quot;&quot;</span></code>
docstrings in python modules. (That <code class="docutils literal"><span class="pre">r&quot;&quot;&quot;</span></code> makes the string read
literally, so your LaTeX symbols aren&#8217;t confused with escape characters.)
For the two former, math has traditionally
been written in LaTeX (with the special substitution <code class="docutils literal"><span class="pre">&#64;&#64;</span></code> for
subscripting underscore). The autodoc script has been trained to convert
inline LaTeX math to reST math, provided the expression within dollar
signs is offset from other text. That is, expressions of the form
<code class="regexp docutils literal"><span class="pre">^</span> <span class="pre">$latex</span> <span class="pre">math$[.,</span> <span class="pre">]$</span></code> (pseudo-regex) are good, while <code class="docutils literal"><span class="pre">H$_2$O</span></code> and LaTeX tables
are not translated correctly. Python docstrings are absorbed as-is, so
please use reST math formatting (essentially <code class="docutils literal"><span class="pre">$latex</span> <span class="pre">math$</span></code> <img class="math" src="_images/math/fcb47d177e58f83257e03078e39b830ee90caec8.png" alt="\Rightarrow" style="vertical-align: -1px"/>
<code class="docutils literal"><span class="pre">:math:`latex</span> <span class="pre">math`</span></code>).</p>
</div>
<div class="section" id="the-map-of-the-sphinx">
<h2>The Map of the Sphinx<a class="headerlink" href="#the-map-of-the-sphinx" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">Adding a new Appendix or First-TOC-Level page</p>
<p>Create your reST file and fill it with information. Add the name of your
file to <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/source/appendices.rst">psi4/doc/sphinxman/source/appendices.rst</a> for an appendix or
to <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/source/index.rst">psi4/doc/sphinxman/source/index.rst</a> for a first-TOC-level.
Finally, add your file to the <code class="docutils literal"><span class="pre">STATICDOC</span></code> variable in
<a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/CMakeLists.txt">psi4/doc/sphinxman/CMakeLists.txt</a>. Sphinx will now build with your
new page.</p>
</li>
<li><p class="first">Adding a new module to &#8220;Theoretical Methods&#8221;</p>
<p>Copy the file of a well-established module, like
<a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/source/sapt.rst">psi4/doc/sphinxman/source/sapt.rst</a>. Change the title, author, sec
label, ref, and source labels at the top of the file to point instead to
your code. Edit <a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/source/methods.rst">psi4/doc/sphinxman/source/methods.rst</a> to add the
name of your file so that it will appear in the TOC tree. Add your file
to the <code class="docutils literal"><span class="pre">STATICDOC</span></code> variable in
<a class="reference external" href="https://github.com/psi4/psi4public/blob/master/doc/sphinxman/CMakeLists.txt">psi4/doc/sphinxman/CMakeLists.txt</a>. Sphinx will now build with your new
file.  Follow the models in existing methods pages to write your
documentation. If you don&#8217;t get all the keyword links, bibliography
links, sample inputs, math, tables, etc. working in Sphinx, don&#8217;t worry
about it. A genie will probably come through and tidy up all your
source.</p>
</li>
</ul>
<style type="text/css"><!--
 .green {color: red;}
 .sc {font-variant: small-caps;}
 --></style></div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Documentation</a><ul>
<li><a class="reference internal" href="#installing-sphinx">Installing Sphinx</a></li>
<li><a class="reference internal" href="#documentation-structure">Documentation Structure</a></li>
<li><a class="reference internal" href="#restructuredtext">reStructuredText</a></li>
<li><a class="reference internal" href="#math-in-the-codebase">Math in the Codebase</a></li>
<li><a class="reference internal" href="#the-map-of-the-sphinx">The Map of the Sphinx</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="bestpractices_py.html"
                        title="previous chapter">Best Practices for Python Functions</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="psipep.html"
                        title="next chapter">PsiPEP: Plans and Practices to Organize <span class="sc">Psi4</span></a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/documentation.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="relbar-bottom">
        
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> &nbsp; &nbsp;</li>
        <li class="right" >
          <a href="contents.html" title="Table Of Contents"
             >toc</a> &nbsp; &nbsp;</li>
        <li class="right" >
          <a href="psipep.html" title="PsiPEP: Plans and Practices to Organize Psi4"
             >next</a> &nbsp; &nbsp;</li>
        <li class="right" >
          <a href="bestpractices_py.html" title="Best Practices for Python Functions"
             >previous</a> &nbsp; &nbsp;</li>
    <li><a href="index.html">Psi4 []</a> &raquo; </li>

          <li class="nav-item nav-item-1"><a href="contributing.html" >Contributions: Intro to Programming in <span class="sc">Psi4</span></a> &raquo;</li> 
      </ul>
    </div>
    </div>

    <div class="footer" role="contentinfo">
        &copy; Copyright 2015, The Psi4 Project.
      Last updated on Tuesday, 12 January 2016 03:10PM.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.3.
    </div>
    <!-- cloud_sptheme 1.3 -->
  </body>
</html>