# generate the TOC with all packages
toc_template = jinja_env.get_template('pkgs_toc.rst')
toc = codecs.open(os.path.join(outdir, 'pkgs.rst'), 'w', 'utf-8')
- toc.write(toc_template.render(pkgs=db.keys()))
+ # this is a fragile test
+ toc.write(toc_template.render(
+ pkgs=[k for k in db.keys()
+ if not ('Datasets', 'neurodebian-data') in db[k]]))
toc.close()
+ # and now only for dataset packages
+ toc_template = jinja_env.get_template('datasets_toc.rst')
+ toc = codecs.open(os.path.join(outdir, 'datasets.rst'), 'w', 'utf-8')
+ # this is a fragile test
+ toc.write(toc_template.render(
+ pkgs=[k for k in db.keys()
+ if ('Datasets', 'neurodebian-data') in db[k]]))
+ toc.close()
+
# and now each individual package page
pkg_template = jinja_env.get_template('pkg.rst')
{% block rootrellink %}
<li><a href="http://www.debian.org" target="_blank">Debian</a> | </li>
- <li><a href="{{ pathto('index') }}">Neuroscience Repository</a> »</li>
- <li><a href="{{ pathto('pkgs') }}">Package list</a> »</li>
- <li><a href="{{ pathto('faq') }}">FAQ</a></li>
+ <li><a href="{{ pathto('index') }}">Neuroscience Repository</a> | </li>
+ <li><a href="{{ pathto('pkgs') }}">Software</a> | </li>
+ <li><a href="{{ pathto('datasets') }}">Datasets</a> | </li>
+ <li><a href="{{ pathto('faq') }}">FAQ</a> | </li>
{% endblock %}
{% block sidebar1 %}{% endblock %}