Skip to content

Commit 3ab05ba

Browse files
committed
update toltec theme
1 parent e8eaca9 commit 3ab05ba

14 files changed

+124
-258
lines changed

CONTRIBUTING.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Contributing
22
============
33

4+
The TolTECA tutorials repository is modeled after the
5+
`Astropy Tutorials <https://github.com/astropy/astropy-tutorials>`_.
6+
7+
Included below is the `CONTRIBUTING.rst <https://github.com/astropy/astropy-tutorials/blob/master/CONTRIBUTING.rst>`_ in the astropy tutorials repository
8+
which also serves as the guideline of contributing to this TolTECA tutorials.
9+
410
Overview
511
--------
612

@@ -250,8 +256,8 @@ To use this approach, follow these steps:
250256
* You will need to sign up for an account with Zenodo before you can upload a file there.
251257

252258
* After a Zenodo account has been properly set up, be sure to log in and do a new upload. Follow
253-
the Zenodo instructions and complete all the required fields as the bare minimum in order to have
254-
the data file(s) uploaded to their records. Once this is done you will have a link to share the data.
259+
the Zenodo instructions and complete all the required fields as the bare minimum in order to have
260+
the data file(s) uploaded to their records. Once this is done you will have a link to share the data.
255261

256262
* With the link to the data file record, which has the format ``https://zenodo.org/api/records/:id``, an example HTTP GET request needed to retrieve the data using the Python package ``requests`` is shown below::
257263

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
site_name: TolTECA Tutorials
2+
docs_dir: build/html

pip-requirements-dev.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
git+https://github.com/toltec-astro/tollan.git
2+
git+https://github.com/toltec-astro/kidsproc.git
3+
git+https://github.com/toltec-astro/tolteca.git
4+
matplotlib==3.0.2
5+
jupyter>=1.0
6+
notebook>=5.7.2
7+
nbconvert
8+
pandoc

tutorials/_static/astropy.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ a:hover{
8282
color: #ffffff !important;
8383
}
8484

85-
#astropy-logo {
85+
#toltec-logo {
8686
width: 35vw;
87-
padding-top: 100px;
87+
padding-top: 22px;
88+
margin-bottom: -12px;
8889
}
8990

9091
.landing {
@@ -320,4 +321,4 @@ a.reference.internal.nav-header {
320321
margin-left: 20px !important;
321322
margin-right: 20px !important;
322323
}
323-
}
324+
}

tutorials/_static/toltec_favicon.ico

15 KB
Binary file not shown.

tutorials/_static/toltec_logo.png

427 KB
Loading
1.8 MB
Loading

tutorials/documentation.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Documentation
22
=============
33

4-
Documentation has the complete description of an Astropy package with all requisite details including usage, dependencies, and examples.
5-
Documentation is comprehensive reference material—it's possibly a little dry, but is both basic and high level.
6-
7-
See the `Astropy documentation <http://docs.astropy.org/en/stable/>`_ for a structured view of the functionality within the Astropy project.
4+
Documentation has the complete description of the components of TolTECA.
5+
Check the `toltec-astro Github repositories <https://github.com/toltec-astro/>`_
6+
(``toltec-astro`` member loggin required) for the documentation of each package.

tutorials/examples.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

tutorials/index.rst

Lines changed: 56 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,74 @@
1-
Learn Astropy
2-
=============
3-
Astropy is a Python library for use in astronomy.
4-
Learn Astropy provides a portal to all of the Astropy educational material through a single dynamically searchable web page.
5-
It allows you to filter tutorials by keywords, search for filters, and make search queries in tutorials and documentation simultaneously.
1+
TolTECA
2+
=======
63

7-
Installing Astropy
4+
`TolTECA <https://github.com/toltec-astro>`_ is the software stack developed to
5+
facilitate the data analysis tasks of the
6+
`TolTEC camera <http://toltec.astro.umass.edu>`_, which is to be mounted on the
7+
`Large Millimeter Telescope (LMT) <http://www.lmtgtm.org>`_ and provides simultaneous,
8+
polarization-sensitive imaging at wavelengths of 1.1, 1.4 and 2.0mm through its
9+
7718 Lumped element Kinetic Inductance Detectors (KIDs). For more detailed
10+
description, please check out our recent SPIE papers
11+
`TolTEC <https://ui.adsabs.harvard.edu/abs/2020SPIE11453E..02W/abstract>`_
12+
and `TolTECA <https://ui.adsabs.harvard.edu/abs/2020SPIE11452E..2OM/abstract>`_.
13+
14+
This site hosts a wide range of learning materials and documentations for those
15+
who would like to working with TolTEC data. The site is equipped with a search
16+
box that allows you to filter tutorials by keywords, search for filters, and
17+
make search queries in tutorials and documentation simultaneously.
18+
19+
20+
Installing TolTECA
821
------------------
922

10-
The `Anaconda Python Distribution <https://www.anaconda.com/download/>`_ includes Astropy and is the recommended way to install both Python and the Astropy package. Once you have Anaconda installed, use the following to update to the latest version of Astropy:
23+
The two key components of TolTECA are the Python package ``tolteca``, and the
24+
fast data reduction engine ``citlali`` written in C++. Tolteca implements the
25+
general data and pipeline management framework that serves at the highest
26+
levels, while ``citlali`` works at the low-level to carry out the actual KIDs
27+
readout signal interpretation, time-ordered data (TOD) processing, and
28+
map-making. All the software source codes can be found in the
29+
`toltec-astro <https://github.com/toltec-astro>`_ Github page.
30+
31+
.. tip::
32+
33+
As of March 2021, the repositories are only available to `toltec-astro`
34+
organization members. please send email to zhiyuanma (at) umass (dot) edu
35+
if you would like to have access.
36+
1137

12-
.. code:: python
38+
To download and run the Jupyter notebook tutorials, one need to install the
39+
Python package ``tolteca`` and its dependencies, which can be done as follows:
1340

14-
conda update astropy
41+
.. code::
1542
16-
To install Astropy from the source into an existing Python installation, see the more detailed `installation instructions <http://astropy.readthedocs.io/en/stable/install.html>`_ in the main Astropy documentation.
43+
$ git clone https://github.com/toltec-astro/tolteca_tutorials.git
44+
$ cd tolteca_tutorials
45+
$ pip install -r pip-requirements.txt
1746
18-
Get help
19-
--------
2047
21-
If you have any questions regarding using Astropy there are numerous channels for communication.
22-
Post to any one of `several forums <https://www.astropy.org/help.html>`_ to get help from our active, helpful, and friendly community of users and developers.
48+
For more detailed instructions of installing ``tolteca`` and to learn about the
49+
C++ data reduction engine ``citlali``, see their documentations
50+
`tolteca <https://github.com/toltec-astro/tolteca>`_ and
51+
`citlali <https://toltec-astro.github.io/citlali/>`_.
52+
2353

2454
For contributors
2555
----------------
2656

27-
We welcome feedback, improvements, and new tutorial content via the `Astropy
28-
Tutorials Repository <https://github.com/astropy/astropy-tutorials>`_ on
29-
GitHub. If you find a typo or would like to clarify some text, please either
30-
`create an issue <https://github.com/astropy/astropy-tutorials/issues/new>`_ or
31-
make the change yourself and then submit a pull request directly to the
32-
repository. Questions and/or comments about the tutorials are welcome on the
33-
`astropy-dev <https://groups.google.com/forum/#!forum/astropy-dev>`_ mailing
34-
list. For more information, please see the contributing documentation:
57+
Feedback, improvements, and new tutorial content are highly appreciated
58+
via the `TolTECA tutorials repository <https://github.com/toltec-astro/tolteca_tutorials>`_ on
59+
GitHub. Please feel free to open issues or submit pull requests.
60+
61+
For more information, please see the contributing documentation:
3562

3663
.. raw:: html
3764

3865
<a href="contributing.html"><button id="binder" style="background-color: #fa743b; border-color: #fa743b; margin-bottom: 1rem; cursor: pointer">How to contribute</button></a>
3966

40-
For developers
41-
--------------
4267

43-
See the developer documentation: :ref:`dev-page`.
68+
Acknowledgement
69+
---------------
70+
71+
* The TolTEC project is funded by the National Science Foundation, grant #1636621.
72+
73+
* This site uses the HTML templates and infrastructure developed by `Learn Astropy <https://learn.astropy.org>`_.
74+

tutorials/recipes.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Recipes and Scripts
2+
===================
3+
4+
Recipes are utility code snippets that comes as part of the
5+
`tolteca <https://github.com/toltec-astro/tolteca>`_ package,
6+
which implements a set of specific, high-level TolTEC data related tasks.
7+
8+
Some of these tasks are used as part of the TolTEC data acquisition system,
9+
and some of them is used for operation and maintenance of the data archive.
10+
11+
Recipes and scripts offer a command-line interface and the level of
12+
extensiveness of the documentation within each recipe/script may vary.
13+
14+
See `tolteca/recipes <https://github.com/toltec-astro/tolteca/tree/master/tolteca/recipes>`_
15+
and `tolteca/scirpts <https://github.com/toltec-astro/tolteca/tree/master/tolteca/scripts>`_ for more details.

tutorials/themes/tutorials-theme/navbar.html

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1-
{% if pagename == "index" or pagename == "search" or pagename == "tutorials" or pagename == "documentation" or pagename == "examples" or pagename == "guides" %}
2-
<!-- Learn astropy banner -->
1+
{% if pagename == "index" or pagename == "search" or pagename == "tutorials" or pagename == "documentation" or pagename == "recipes" or pagename == "guides" %}
2+
<!-- TolTEC banner -->
33
<div class="container-fluid landing text-center">
4-
<a href="/"><img src="_static/astropy_logo_banner.png" id="astropy-logo"></a>
4+
<a href="/"><img src="_static/toltec_logo_banner.png" id="toltec-logo"></a>
55
<form class="input-group col-sm-7 m-auto" id="search-bar" action="{{ pathto('search') }}" method="get">
66
<div class="input-group-prepend">
77
<button class="input-group-text" type="submit"><i class="fa fa-search fa-fw"></i></button>
88
</div>
9-
<input type="text" name="q" id="search-bar-input" class="form-control" placeholder="Search the universe of Astropy" />
9+
<input type="text" name="q" id="search-bar-input" class="form-control" placeholder="Search in TolTECA" />
1010
</form>
1111
</div>
1212

1313
<!-- Guides, Tutorials, Examples, Documentation Placards -->
1414
<div class="container-fluid row definition-cards">
15-
<div class="card bg-guide col-md-3 col-lg-2 p-0 m-2 ml-auto enable-guides">
16-
<div class="card-body">
17-
<h2 class="card-title text-center"><a href="{{ pathto('guides') }}" class="text-white">Guides</a></h2>
18-
<p class="card-text text-center">Guides are comprehensive, conceptually-focused documents providing stand-alone introductions to core packages in addition to the underlying astronomical concepts.</p>
19-
</div>
20-
</div>
2115
<div class="card bg-tutorial col-md-3 col-lg-2 p-0 m-2 ml-auto">
2216
<div class="card-body">
23-
<h2 class="card-title text-center"><a href="tutorials.html" class="text-white">Tutorials</a></h2>
24-
<p class="card-text text-center">Tutorials are step-by-step cookbooks for common activities that incorporate several packages. They are more specific and less conceptual than Guides but more extended than Examples.</p>
17+
<h2 class="card-title text-center"><a href="{{ pathto('tutorials') }}" class="text-white">Tutorials</a></h2>
18+
<p class="card-text text-center">Tutorials are step-by-step cookbooks for common activities that incorporate several packages. They are more educational and interactive than recipes and scripts.</p>
2519
</div>
2620
</div>
2721
<div class="card bg-documentation col-md-3 col-lg-2 p-0 m-2">
@@ -32,24 +26,24 @@ <h2 class="card-title text-center" style="margin-left: -20px; margin-right: -20p
3226
</div>
3327
<div class="card bg-example col-md-3 col-lg-2 p-0 m-2 mr-auto">
3428
<div class="card-body">
35-
<h2 class="card-title text-center"><a href="{{ pathto('examples') }}" class="text-white">Examples</a></h2>
36-
<p class="card-text text-center">Examples are stand-alone code snippets that live in the astropy documentation that demonstrate a specific functionality within a package.</p>
29+
<h2 class="card-title text-center"><a href="{{ pathto('recipes') }}" class="text-white">Recipes & Scripts</a></h2>
30+
<p class="card-text text-center">Recipes and scripts are utility code snippets that accomplish specific, high-level data related tasks.</p>
3731
</div>
3832
</div>
3933
</div>
4034

4135
{% else %}
4236
<nav class="navbar navbar-expand-lg bg-navbar">
4337
<a class="navbar-brand" href="/" style="padding: 0px 5px;">
44-
<img src="{{ pathto('../_static/' + 'astropy_logo.png', 1) }}" onerror="this.onerror=null;this.src='{{ pathto("_static/" + "astropy_logo.png", 1) }}';" style="height: 38px;">
38+
<img src="{{ pathto('../_static/' + 'toltec_logo.png', 1) }}" onerror="this.onerror=null;this.src='{{ pathto("_static/" + "toltec_logo.png", 1) }}';" style="height: 38px;">
4539
</a>
4640
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
4741
<span class="navbar-toggler-icon"></span>
4842
</button>
4943
<div class="collapse navbar-collapse" id="navbarColor01">
5044
<ul class="navbar-nav ml-auto">
5145
<li class="nav-item active">
52-
<a class="nav-link" href="http://www.astropy.org"/>Astropy<span class="sr-only">(current)</span></a>
46+
<a class="nav-link" href="http://toltecdr.astro.umass.edu"/>TolTECA<span class="sr-only">(current)</span></a>
5347
</li>
5448
<li class="nav-item">
5549
<a class="nav-link" href="#">Modules</a>

0 commit comments

Comments
 (0)