Skip to content

Commit

Permalink
Fix issues with documentations (#280)
Browse files Browse the repository at this point in the history
* Some fixes for documentations
* Use autodoc mock import
  • Loading branch information
alifbe authored Dec 21, 2022
1 parent 6f889f8 commit 57dd0a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
autodoc_member_order = "bysource"
autodoc_default_flags = ["members", "show_inheritance"]

# Mocking ert module
autodoc_mock_imports = ["ert"]

exclude_patterns = ["_build"]

pygments_style = "sphinx"
Expand Down
4 changes: 2 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Press + to see generated YAML file.

.. toggle::

.. literalinclude:: ../examples/s/d/nn/xcase/realization-0/iter-0/share/results/polygons/.topvolantis--faultlines.pol.yml
.. literalinclude:: ../examples/s/d/nn/xcase/realization-0/iter-0/share/results/polygons/.volantis_gp_top--faultlines.pol.yml
:language: yaml

|
Expand Down Expand Up @@ -78,7 +78,7 @@ Press + to see generated YAML files for metadata.

.. toggle::

.. literalinclude:: ../examples/s/d/nn/xcase/realization-0/iter-0/share/results/grids/.geogrid--facies.roff.yml
.. literalinclude:: ../examples/s/d/nn/xcase/realization-0/iter-0/share/results/grids/.facies.roff.yml
:language: yaml

|
Expand Down
1 change: 1 addition & 0 deletions docs/preparations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ from the Drogon workflow:
Now, load this workflow in your ERT config file and make it a HOOK workflow:

.. code-block::
-- Hook workflow for creating case metadata and (optional) registering case on Sumo
LOAD_WORKFLOW ../../bin/workflows/xhook_create_case_metadata
HOOK_WORKFLOW xhook_create_case_metadata PRE_SIMULATION
Expand Down

0 comments on commit 57dd0a1

Please sign in to comment.