Metadata-Version: 2.4
Name: cambium-astro
Version: 0.3.0
Summary: Astronomy-related stages for Cambium
License-Expression: MIT
License-File: LICENSE
Author: Sidrat Research
Author-email: info@sidratresearch.com
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Astronomy
Provides-Extra: healpix
Requires-Dist: astropy (>=8.0.1,<9)
Requires-Dist: basemap (>=2) ; (python_version < "3.14") and (extra == "healpix")
Requires-Dist: cambium (>=1)
Requires-Dist: matplotlib (>=3,<4)
Requires-Dist: reproject (>=0.21,<0.22) ; extra == "healpix"
Project-URL: Homepage, https://www.buildwithcambium.org/
Project-URL: Issues, https://github.com/sidratresearch/cambium-astro/issues
Project-URL: Repository, https://github.com/sidratresearch/cambium-astro
Description-Content-Type: text/markdown

# Astronomy Tools for Cambium

<div>
    <img src="https://img.shields.io/pypi/status/cambium-astro" alt="Development status: Alpha"/>
    <img src="https://img.shields.io/pypi/v/cambium-astro" alt="Currently available on PyPI"/>
    <img src="https://img.shields.io/pypi/pyversions/cambium-astro" alt="List of compatible Python versions"/>
    <img src="https://img.shields.io/pypi/l/cambium-astro" alt="MIT licensed"/>
</div>
<br />

<div>
    <img src="https://img.shields.io/badge/Cambium-Stage-587054" alt="Cambium Stage"/>
    <img src="https://img.shields.io/badge/Cambium-Macro-587054" alt="Cambium Macro"/>
</div>
<br />

This package provides astronomy-specific tooling for the static site generator [Cambium](https://github.com/sidratresearch/cambium).

> [!WARNING]
> This package is under active development. Provided functionality may be incomplete and is subject to major changes.

Currently `cambium-astro` includes the `PreviewFITS` stage. Much like the built-in `PreviewCSV` stage, `PreviewFITS` replaces markdown links that point at FITS files with links to new webpages which show a preview of the content (as well as a download link to the original file!).

Try it out with one of the following methods:

- Install this package, and run `cambium-astro` in place of the regular `cambium` command.
  - This method is only recommended for trying out Cambium Astro, as it cannot be combined with any other Cambium packages
- Edit your Cambium configuration file to include `cambium_astro` in the `extensions` and `cambium_astro.PreviewFITS` in the stages.
  - If you do not have a configuration file, run `cambium --dump-default-config` to display the full default configuration, and make the above changes.
  - Note that you do not need to keep all of the configuration keys - only the ones changed from their default values.

```yaml
# Sample configuration to run Cambium with Cambium Astro
# Do not copy this configuration!
# Cambium is fast-changing and the default stages listed here may be out of date
# Create your own configuration file with `cambium --dump-default-config`

stages:
  - PreviewCSV
  - cambium_astro.PreviewFITS
  - IdentifyMetadata
  - WriteReports
  - TransformMarkdown
  - TemplateMarkdown
  - EnsureIndexPages
  - PagefindSearch
  - CheckLinks

extensions:
  - cambium_astro
```

