Skip to content

Commit

Permalink
Fix doc building
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSava committed Nov 14, 2023
1 parent 3a22bdd commit cee62aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/fmu-ensemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ jobs:
- name: Build docs
run: |
sphinx-apidoc -H "API for fmu.ensemble" -o ./docs ./src/fmu
python setup.py build_sphinx
mkdir tmp
sphinx-build -W -b html -d tmp/doctrees docs build/sphinx/html
touch build/sphinx/html/.nojekyll
- name: 🚢 Build and deploy Python package
Expand Down
2 changes: 1 addition & 1 deletion docs/advancedusage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ VirtualRealization object from an Ensemble object. If we want only the
aggregated table for our particular custom function, we can aggregate the
ensemble only for that particular datatype:

.. code-block:: ipython
.. code-block::
In [1]: mean_realization = ensemble.agg("mean", keylist="zonestats.csv")
In [2]: mean_realization.get_df("zonestats.csv")
Expand Down
10 changes: 0 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
"""The setup script."""
from setuptools import setup, find_packages

try:
from sphinx.setup_command import BuildDoc

cmdclass = {"build_sphinx": BuildDoc}
except ImportError:
# sphinx not installed - do not provide build_sphinx cmd
cmdclass = {}


with open("README.rst") as readme_file:
readme = readme_file.read()

Expand Down Expand Up @@ -42,7 +33,6 @@
setup(
name="fmu-ensemble",
use_scm_version={"write_to": "src/fmu/ensemble/version.py"},
cmdclass=cmdclass,
description="Python API to ensembles produced by ERT",
long_description=readme + "\n\n" + history,
author="Håvard Berland",
Expand Down

0 comments on commit cee62aa

Please sign in to comment.