Skip to content

Conversation

@mzecc
Copy link
Collaborator

@mzecc mzecc commented Sep 8, 2025

Description

Added cross-references both in the Fortran and Python part.
Weirdly enough some fortran-api/module/m_error_v.html cross references are not resolved at the time being.

Checklist

Please confirm that this pull request has done the following:

  • [ ]Tests added
  • [ ]Documentation added (where applicable)
  • Changelog item added to changelog/

@codecov
Copy link

codecov bot commented Sep 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ca2a5f5) to head (b693360).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #32   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines           68        68           
=========================================
  Hits            68        68           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@znicholls znicholls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super. Few things to clean up, then add a changelog entry then good to merge

@@ -1,5 +1,5 @@
"""
Wrappers of `m_error_v_creation` [TODO think about naming and x-referencing]
Wrappers of [`m_error_v_creation`](/fortran-api/module/m_error_v_creation.html)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh very nice, I like it a lot

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Wrappers of [`m_error_v_creation`](/fortran-api/module/m_error_v_creation.html)
Wrappers of [`m_error_v_creation`](../fortran-api/module/m_error_v_creation.html)

might need to be something like this, at least the current link doesn't work on https://example-fgen-basic--32.org.readthedocs.build/en/32/api/example_fgen_basic/error_v/creation/


function create_error(inv) result(res_instance_index)
!! Wrapper around `m_error_v_creation.create_error` (TODO: x-ref)
!> Wrapper around `m_error_v_creation.create_error` ([[m_error_v_creation(module):create_error(function)]])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> Wrapper around `m_error_v_creation.create_error` ([[m_error_v_creation(module):create_error(function)]])
!! Wrapper around `m_error_v_creation.create_error` ([[m_error_v_creation(module):create_error(function)]])

!> means document the thing below this. !! means document the thing above this. (this is mentioned somewhere in the Ford docs)

this is why the docs here for inv are wrong: https://example-fgen-basic--32.org.readthedocs.build/en/32/fortran-api/proc/create_error~2.html

!!
!! See docstring of `m_error_v_creation.create_error` for details.
!! [TODO: x-ref]
!> See docstring of [[m_error_v_creation(module):create_error(function)]] for details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> See docstring of [[m_error_v_creation(module):create_error(function)]] for details.
!! See docstring of [[m_error_v_creation(module):create_error(function)]] for details.

as above


function create_errors(invs, n) result(res_instance_indexes)
!! Wrapper around `m_error_v_creation.create_errors` (TODO: x-ref)
!> Wrapper around `m_error_v_creation.create_errors` ([[m_error_v_creation(module):create_errors(function)]])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> Wrapper around `m_error_v_creation.create_errors` ([[m_error_v_creation(module):create_errors(function)]])
!! Wrapper around `m_error_v_creation.create_errors` ([[m_error_v_creation(module):create_errors(function)]])

as above

!!
!! See docstring of `m_error_v_creation.create_error` for details.
!! [TODO: x-ref]
!> See docstring of [[m_error_v_creation(module):create_errors(function)]] for details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> See docstring of [[m_error_v_creation(module):create_errors(function)]] for details.
!! See docstring of [[m_error_v_creation(module):create_errors(function)]] for details.

as above

@@ -1,4 +1,4 @@
!> Error passing
!> *Error passing*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a convention? Always put the title in * ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. I was messing around, with the formatting.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok cool let's undo this before merging then

@@ -1,5 +1,5 @@
"""
Wrappers of `m_error_v_passing` [TODO think about naming and x-referencing]
Wrappers of [`m_error_v_passing`](/fortran-api/module/m_error_v_passing.html).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above re links being broken in the preview


function pass_error(inv_instance_index) result(res)
!! Wrapper around `m_error_v_passing.pass_error` (TODO: x-ref)
!> Wrapper around `m_error_v_passing.pass_error` [[m_error_v_passing(module):pass_error(function)]].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> Wrapper around `m_error_v_passing.pass_error` [[m_error_v_passing(module):pass_error(function)]].
!! Wrapper around `m_error_v_passing.pass_error` [[m_error_v_passing(module):pass_error(function)]].

!!
!! See docstring of `m_error_v_passing.pass_error` for details.
!! [TODO: x-ref]
!> See docstring of [[m_error_v_passing(module):pass_error(function)]] for details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> See docstring of [[m_error_v_passing(module):pass_error(function)]] for details.
!!
!! See docstring of [[m_error_v_passing(module):pass_error(function)]] for details.


function pass_errors(inv_instance_indexes, n) result(res)
!! Wrapper around `m_error_v_passing.pass_errors` (TODO: x-ref)
!> Wrapper around `m_error_v_passing.pass_error` [[m_error_v_passing(module):pass_errors(function)]].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> Wrapper around `m_error_v_passing.pass_error` [[m_error_v_passing(module):pass_errors(function)]].
!! Wrapper around `m_error_v_passing.pass_error` [[m_error_v_passing(module):pass_errors(function)]].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants