Skip to content

Commit

Permalink
Fixes parsing headers and links
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed Jun 25, 2024
1 parent 484946c commit 7762233
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions dockerfiles/climate-notebook-gpu/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Packages

| ML packages |
| ----------- |
| [rapids 0.0.1](https://anaconda.org/conda-forge/rapids) |
| [cupy 13.2.0](https://anaconda.org/conda-forge/cupy) |
| ML |
| -- |
| [rapids](https://anaconda.org/conda-forge/rapids) 0.0.1 |
| [cupy](https://anaconda.org/conda-forge/cupy) 13.2.0 |
28 changes: 14 additions & 14 deletions dockerfiles/climate-notebook/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Packages

| Data packages | Climate packages | Plotting packages |
| ------------- | ---------------- | ----------------- |
| [xarray 2024.6.0](https://anaconda.org/conda-forge/xarray) | [xcdat 0.7.0](https://anaconda.org/conda-forge/xcdat) | [matplotlib 3.8.4](https://anaconda.org/conda-forge/matplotlib) |
| [xarray-datatree 0.0.14](https://anaconda.org/conda-forge/xarray-datatree) | [xesmf 0.8.5](https://anaconda.org/conda-forge/xesmf) | [holoviews 1.17.1](https://anaconda.org/conda-forge/holoviews) |
| [pandas 2.2.2](https://anaconda.org/conda-forge/pandas) | [xgcm 0.8.1](https://anaconda.org/conda-forge/xgcm) | [hvplot 0.10.0](https://anaconda.org/conda-forge/hvplot) |
| [flox 0.9.8](https://anaconda.org/conda-forge/flox) | [pcmdi_metrics 3.4.1](https://anaconda.org/conda-forge/pcmdi_metrics) | [geoviews 1.9.6](https://anaconda.org/conda-forge/geoviews) |
| [netcdf4 1.6.5](https://anaconda.org/conda-forge/netcdf4) | [gsw-xarray 0.4.0](https://anaconda.org/conda-forge/gsw-xarray) | [seaborn 0.13.2](https://anaconda.org/conda-forge/seaborn) |
| [s3fs 2024.6.0](https://anaconda.org/conda-forge/s3fs) | | [cartopy 0.23.0](https://anaconda.org/conda-forge/cartopy) |
| [zarr 2.18.2](https://anaconda.org/conda-forge/zarr) | | [datashader 0.16.2](https://anaconda.org/conda-forge/datashader) |
| Data | Climate | Plotting |
| ---- | ------- | -------- |
| [xarray](https://anaconda.org/conda-forge/xarray) 2024.6.0 | [xcdat](https://anaconda.org/conda-forge/xcdat) 0.7.0 | [matplotlib](https://anaconda.org/conda-forge/matplotlib) 3.8.4 |
| [xarray-datatree](https://anaconda.org/conda-forge/xarray-datatree) 0.0.14 | [xesmf](https://anaconda.org/conda-forge/xesmf) 0.8.5 | [holoviews](https://anaconda.org/conda-forge/holoviews) 1.17.1 |
| [pandas](https://anaconda.org/conda-forge/pandas) 2.2.2 | [xgcm](https://anaconda.org/conda-forge/xgcm) 0.8.1 | [hvplot](https://anaconda.org/conda-forge/hvplot) 0.10.0 |
| [flox](https://anaconda.org/conda-forge/flox) 0.9.8 | [pcmdi_metrics](https://anaconda.org/conda-forge/pcmdi_metrics) 3.4.1 | [geoviews](https://anaconda.org/conda-forge/geoviews) 1.9.6 |
| [netcdf4](https://anaconda.org/conda-forge/netcdf4) 1.6.5 | [gsw-xarray](https://anaconda.org/conda-forge/gsw-xarray) 0.4.0 | [seaborn](https://anaconda.org/conda-forge/seaborn) 0.13.2 |
| [s3fs](https://anaconda.org/conda-forge/s3fs) 2024.6.0 | | [cartopy](https://anaconda.org/conda-forge/cartopy) 0.23.0 |
| [zarr](https://anaconda.org/conda-forge/zarr) 2.18.2 | | [datashader](https://anaconda.org/conda-forge/datashader) 0.16.2 |

| Computing packages | Discovery packages |
| ------------------ | ------------------ |
| [dask-gateway 2024.1.0](https://anaconda.org/conda-forge/dask-gateway) | [intake-esm 2024.2.6](https://anaconda.org/conda-forge/intake-esm) |
| | [intake-stac 0.4.0](https://anaconda.org/conda-forge/intake-stac) |
| | [intake-xarray 0.7.0](https://anaconda.org/conda-forge/intake-xarray) |
| Computing | Discovery |
| --------- | --------- |
| [dask-gateway](https://anaconda.org/conda-forge/dask-gateway) 2024.1.0 | [intake-esm](https://anaconda.org/conda-forge/intake-esm) 2024.2.6 |
| | [intake-stac](https://anaconda.org/conda-forge/intake-stac) 0.4.0 |
| | [intake-xarray](https://anaconda.org/conda-forge/intake-xarray) 0.7.0 |
4 changes: 2 additions & 2 deletions dockerfiles/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main():
rows = [
" | ".join(
[
"" if y is None else f"[{y} {get_version(y, versions)}](https://anaconda.org/conda-forge/{y})"
"" if y is None else f"[{y}](https://anaconda.org/conda-forge/{y}) {get_version(y, versions)}"
for y in x
]
)
Expand Down Expand Up @@ -83,7 +83,7 @@ def get_categories(file, **_):

for line in lines:
if "#" in line:
m = re.search("# (.*)(?: packages)?", line)
m = re.search(r"# ([^\s]*)(?: packages)?", line)

if m is None:
continue
Expand Down

0 comments on commit 7762233

Please sign in to comment.