Skip to content

Commit 84acb2b

Browse files
authored
doc: include conda install command in installation guide (#235)
* doc: include conda install command in installation guide Added conda installation instructions for jax-galsim. * feat: add copy button to docs Added 'sphinx-copybutton' to the documentation dependencies. * feat: add sphinx_copybutton extension to conf.py * Include conda install command in documentation Add conda installation instructions for jax-galsim.
1 parent d83c941 commit 84acb2b

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"sphinx.ext.viewcode", # "View source" links
5151
"sphinx.ext.intersphinx", # cross-links to external docs
5252
"sphinx_design", # dropdown / collapsible directives
53+
"sphinx_copybutton", # copy button for code blocks
5354
]
5455

5556
templates_path = ["_templates"]

docs/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ Quick Install
6666
6767
pip install jax-galsim
6868
69+
.. code-block:: bash
70+
71+
conda install -c conda-forge jax-galsim
72+
6973
See :doc:`installation` for GPU support and development setup.
7074

7175
Minimal Example

docs/installation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Quick Install
88
99
pip install jax-galsim
1010
11+
.. code-block:: bash
12+
13+
conda install -c conda-forge jax-galsim
14+
1115
This installs JAX-GalSim and its dependencies (JAX, NumPy, GalSim, Astropy).
1216

1317
GPU Support

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = ["numpy >=1.18.0", "galsim >=2.7.0", "jax >=0.6.0", "astropy >
1414

1515
[project.optional-dependencies]
1616
dev = ["pytest", "pytest-codspeed"]
17-
docs = ["sphinx>=7.0", "furo>=2024.1.29", "sphinx-design>=0.5"]
17+
docs = ["sphinx>=7.0", "furo>=2024.1.29", "sphinx-design>=0.5", "sphinx-copybutton"]
1818

1919
[project.urls]
2020
home = "https://github.com/GalSim-developers/JAX-GalSim"

0 commit comments

Comments
 (0)