Commit db53e84f authored by Duncan Macleod's avatar Duncan Macleod

docs: fixed broken defaults link

parent 51444994
......@@ -13,6 +13,11 @@ import yaml
from astropy.table import Table
ANACONDA_CHANNELS = {
"pkgs/free",
"pkgs/main",
}
def find_environments(path=None):
"""Finds all of the environments known to conda
......@@ -83,7 +88,7 @@ def write_environment(env, file=None):
rows = []
images = {}
for pkg in packages:
cloudchannel = ('anaconda' if pkg['channel'] == 'pkgs/main' else
cloudchannel = ('anaconda' if pkg['channel'] in ANACONDA_CHANNELS else
pkg['channel'])
rows.append((
"`{name} <https://anaconda.org/{cloudchannel}/{name}/>`_".format(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment