Skip to content

Comments

Fix links#137

Merged
dalonsoa merged 20 commits intodevelopfrom
fixlinks
Jul 21, 2023
Merged

Fix links#137
dalonsoa merged 20 commits intodevelopfrom
fixlinks

Conversation

@sgiarols
Copy link
Collaborator

@sgiarols sgiarols commented Jul 19, 2023

Description

This PR identifies and solves broken links in the documentation

Fixes #125

Type of change

Please add a line in the relevant section of
CHANGELOG.md to
document the change (include PR #) - note reverse order of PR #s.

  • New feature (non-breaking change which adds functionality)
  • Optimization (non-breaking, back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (whatever its nature)

Key checklist

  • All tests pass: $ python -m pytest
  • The documentation builds and looks OK: $ python -m sphinx -b html docs docs/build

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@sgiarols sgiarols changed the title NPV link Fix links Jul 19, 2023
@sgiarols sgiarols requested a review from dalonsoa July 21, 2023 09:20
@sgiarols
Copy link
Collaborator Author

@dalonsoa
There are more errors shown on the error checker, because changes are applied to fixlinks branch which RdD points to but the link-checker checks on the branch "latest". Maybe the branch where the link-checker works can be configured to work twice on current working branch (there is a time lag between when the PR is launched and when RdD updates the documentation). Or we can leave it as is. Not sure what is best.

Copy link
Collaborator

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

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

I think it looks good for a first pass. Let's see what happens when we merge it.

Comment on lines 685 to 686
.. _net present cost:
https://www.homerenergy.com/products/pro/docs/3.11/net_present_cost.html
https://www.homerenergy.com/products/pro/docs/3.11/net_present_cost.html # noqa
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that for this to work it needs to be on the same line:

.. _net present cost: https://www.homerenergy.com/products/pro/docs/3.11/net_present_cost.html # noqa

Copy link
Collaborator

Choose a reason for hiding this comment

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

I've fixed this myself and will merge now.

@dalonsoa dalonsoa merged commit f5f5954 into develop Jul 21, 2023
@dalonsoa dalonsoa deleted the fixlinks branch July 21, 2023 10:27
@dalonsoa
Copy link
Collaborator

We will see what is really missing when we merge develop into main and create a new release. Only then the changes will be reflected in Read The Docs.

I would suggest to remove checking links with every PR and push to main and develop and leave only the scheduled and manual options, so the warnings are relevant. Otherwise, the link checker will make no sense.

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.

Fix broken links in documentation

2 participants