Commit be718e9d434b0aa80456bfd19061cdb4b562abe2

Authored by Jürgen Knödlseder
1 parent f1c51a69

Reorganise documentation tree

doc/source/_templates/index.html
... ... @@ -28,29 +28,4 @@ and next steps, and advance with the coding of the software. {%endtrans%}</p>
28 28 <p>{%trans%} GammaLib is free software distributed under the
29 29 <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL license version 3</a> {%endtrans%}</p>
30 30  
31   -<h2 style="margin-bottom: 0">{%trans%}Getting started{%endtrans%}</h2>
32   -
33   -<ul>
34   -<li><a class="smalllink" href="{{ pathto("users/installation") }}">{%trans%}Installation{%endtrans%}</a></li>
35   -<li><a class="smalllink" href="{{ pathto("users/quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li>
36   -</ul>
37   -
38   -<h2 style="margin-bottom: 0">{%trans%}Documentation{%endtrans%}</h2>
39   -
40   -<ul>
41   -<li><a class="smalllink" href="{{ pathto("users/user_manual/index") }}">{%trans%}User Manual{%endtrans%}</a></li>
42   -<li><a class="smalllink" href="{{ pathto("users/howto/index") }}">{%trans%}How To{%endtrans%}</a></li>
43   -<li><a class="smalllink" href="{{ pathto("users/faq") }}">{%trans%}Frequently asked questions{%endtrans%}</a></li>
44   -<li><a class="smalllink" href="{{ pathto("users/issues") }}">{%trans%}Known issues{%endtrans%}</a></li>
45   -<li><a class="smalllink" href="{{ pathto("users/release_history/index") }}">{%trans%}Release history{%endtrans%}</a></li>
46   -<li><a class="smalllink" href="doxygen/index.html">{%trans%}Source code documentation (Doxygen){%endtrans%}</a></li>
47   -</ul>
48   -
49   -<h2 style="margin-bottom: 0">{%trans%}Links{%endtrans%}</h2>
50   -
51   -<ul>
52   - <li><a href="https://cta-gitlab.irap.omp.eu/gammalib/gammalib">GitLab</a></li>
53   - <li><a href="https://github.com/gammalib/gammalib">GitHub</a></li>
54   - <li><a href="https://cta-redmine.irap.omp.eu/projects/gammalib">Redmine</a></li>
55   - <li><a href="https://www.openhub.net/p/GammaLib">Open HUB</a>{% endblock %}</li>
56   -</ul>
  31 +{% endblock %}
... ...
doc/source/_themes/sphinx13/layout.html
... ... @@ -69,10 +69,10 @@
69 69 <div class="pageheader">
70 70 <ul>
71 71 <li><a href="{{ pathto('about') }}">About</a></li>
72   - <li><a href="{{ pathto('download') }}">Download</a></li>
  72 + <li><a href="{{ pathto('admin/index') }}">Getting GammaLib</a></li>
73 73 <li><a href="{{ pathto('users/index') }}">For Users</a></li>
74 74 <li><a href="{{ pathto('develop/index') }}">For Developers</a></li>
75   - <li><a href="{{ pathto('users/help') }}">Help</a></li>
  75 + <li><a href="{{ pathto('help/index') }}">Help</a></li>
76 76 </ul>
77 77 <div>
78 78 <a href="{{ pathto('index') }}">
... ...
doc/source/download.rst renamed to doc/source/admin/download.rst
1   -.. _download:
  1 +.. _sec_download:
2 2  
3 3 Download
4 4 ========
... ... @@ -92,7 +92,7 @@ the following command sequence (the code will be installed into the
92 92 $ export GAMMALIB=/usr/local/gamma
93 93 $ source $GAMMALIB/bin/gammalib-init.sh
94 94  
95   -Please read the :ref:`installation` section if you need more information on
  95 +Please read the :ref:`sec_installation` section if you need more information on
96 96 how to install GammaLib.
97 97  
98 98 .. note::
... ...
doc/source/admin/index.rst 0 → 100644
  1 +.. _sec_admin:
  2 +
  3 +Getting GammaLib
  4 +================
  5 +
  6 +.. toctree::
  7 + :maxdepth: 1
  8 +
  9 + download
  10 + install
  11 + release_history/index
  12 +
... ...
doc/source/users/installation.rst renamed to doc/source/admin/install.rst
1   -.. _installation:
  1 +.. _sec_installation:
2 2  
3 3 Installation
4 4 ============
... ...
doc/source/users/release_history/1.0.1.rst renamed to doc/source/admin/release_history/1.0.1.rst
doc/source/users/release_history/1.0.rst renamed to doc/source/admin/release_history/1.0.rst
doc/source/users/release_history/1.1.rst renamed to doc/source/admin/release_history/1.1.rst
doc/source/users/release_history/1.2.rst renamed to doc/source/admin/release_history/1.2.rst
doc/source/users/release_history/1.3.rst renamed to doc/source/admin/release_history/1.3.rst
doc/source/users/release_history/index.rst renamed to doc/source/admin/release_history/index.rst
doc/source/contents.rst
  1 +.. _sec_contents:
  2 +
1 3 Documentation
2 4 =============
3 5  
4 6 .. toctree::
5   - :maxdepth: 3
  7 + :maxdepth: 1
6 8  
7 9 about
8   - download
  10 + admin/index
9 11 users/index
10 12 develop/index
  13 + help/index
... ...
doc/source/users/faq.rst renamed to doc/source/help/faq.rst
doc/source/users/help.rst renamed to doc/source/help/index.rst
... ... @@ -3,8 +3,16 @@
3 3 Getting Help
4 4 ============
5 5  
  6 +If you need help you should first check
  7 +
  8 +.. toctree::
  9 + :maxdepth: 1
  10 +
  11 + faq
  12 + issues
  13 +
6 14 Any questions, bug reports, or suggested enhancements related to
7 15 GammaLib should be submitted via the
8 16 `issue tracker <https://cta-redmine.irap.omp.eu/projects/gammalib/issues/new>`_
9 17 or the
10   -`mailing list <mailto:ctools@irap.omp.eu>`_.
11 18 \ No newline at end of file
  19 +`mailing list <mailto:ctools@irap.omp.eu>`_.
... ...
doc/source/users/issues.rst renamed to doc/source/help/issues.rst
doc/source/users/howto/index.rst
... ... @@ -3,8 +3,8 @@ How To
3 3 ======
4 4  
5 5 .. toctree::
6   - :maxdepth: 2
  6 + :maxdepth: 1
7 7  
8   - sky
  8 + sky/index
9 9  
10 10  
... ...
doc/source/users/howto/sky.rst renamed to doc/source/users/howto/sky/convert_coordinates.rst
1   -Sky coordinates, sky maps and sky regions
2   ------------------------------------------
  1 +.. _sec_sky_convert_coordinates:
3 2  
4 3 How to convert a sky coordinate from celestial to Galactic?
5   -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4 +===========================================================
6 5  
7 6 To convert from celestial to Galactic coordinates you can set a sky
8 7 direction in celestial coordinates and read it back in Galactic
... ... @@ -30,33 +29,3 @@ C++:
30 29 double l = dir.l_deg();
31 30 double b = dir.b_deg();
32 31 std::cout << l << ", " << b << std::endl;
33   -
34   -
35   -How to convert sky map projections?
36   -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37   -
38   -The following code illustrates how to convert a map in HealPix projection
39   -into a map in cartesian projection. Map conversion is performed using the
40   -+= operator that adds the bilinearly interpolated intensity values from one
41   -map to another. The example code applies to any kind of map projections.
42   -
43   -Python:
44   -
45   -.. code-block:: python
46   -
47   - >>> import gammalib
48   - >>> healpix = gammalib.GSkyMap("healpix.fits")
49   - >>> map = gammalib.GSkyMap("CAR","GAL",0.0,0.0,0.5,0.5,100,100)
50   - >>> map += healpix
51   - >>> map.save("carmap.fits")
52   -
53   -C++:
54   -
55   -.. code-block:: cpp
56   -
57   - #include "GammaLib.hpp"
58   - GSkyMap healpix("healpix.fits");
59   - GSkyMap map("CAR","GAL",0.0,0.0,0.5,0.5,100,100);
60   - map += healpix;
61   - map.save("carmap.fits");
62   -
63 32 \ No newline at end of file
... ...
doc/source/users/howto/sky/convert_projections.rst 0 → 100644
  1 +.. _sec_sky_convert_projections:
  2 +
  3 +How to convert sky map projections?
  4 +===================================
  5 +
  6 +The following code illustrates how to convert a map in HealPix projection
  7 +into a map in cartesian projection. Map conversion is performed using the
  8 ++= operator that adds the bilinearly interpolated intensity values from one
  9 +map to another. The example code applies to any kind of map projections.
  10 +
  11 +Python:
  12 +
  13 +.. code-block:: python
  14 +
  15 + >>> import gammalib
  16 + >>> healpix = gammalib.GSkyMap("healpix.fits")
  17 + >>> map = gammalib.GSkyMap("CAR","GAL",0.0,0.0,0.5,0.5,100,100)
  18 + >>> map += healpix
  19 + >>> map.save("carmap.fits")
  20 +
  21 +C++:
  22 +
  23 +.. code-block:: cpp
  24 +
  25 + #include "GammaLib.hpp"
  26 + GSkyMap healpix("healpix.fits");
  27 + GSkyMap map("CAR","GAL",0.0,0.0,0.5,0.5,100,100);
  28 + map += healpix;
  29 + map.save("carmap.fits");
  30 +
... ...
doc/source/users/howto/sky/index.rst 0 → 100644
  1 +.. _sec_howto_sky:
  2 +
  3 +Sky coordinates, sky maps and sky regions
  4 +-----------------------------------------
  5 +
  6 +.. toctree::
  7 + :maxdepth: 1
  8 +
  9 + convert_coordinates
  10 + convert_projections
... ...
doc/source/users/index.rst
1   -.. _users:
  1 +.. _sec_users:
2 2  
3 3 User Documentation
4 4 ==================
5 5  
6 6 .. toctree::
7   - :maxdepth: 2
  7 + :maxdepth: 1
8 8  
9   - installation
10 9 quickstart
11 10 user_manual/index
12 11 howto/index
13   - faq
14   - issues
15   - release_history/index
16   - help
... ...
doc/source/users/user_manual/index.rst
  1 +.. _sec_user_manual:
  2 +
1 3 ===========
2 4 User Manual
3 5 ===========
4 6  
5 7 .. toctree::
6   - :maxdepth: 2
  8 + :maxdepth: 1
7 9  
8 10 introduction
9 11 getting
... ...