Skip to content

[DOCS] Cleaning up the documentation - #2825

Open
erikvansebille wants to merge 2 commits into
Parcels-code:mainfrom
erikvansebille:docs-cleanup
Open

[DOCS] Cleaning up the documentation#2825
erikvansebille wants to merge 2 commits into
Parcels-code:mainfrom
erikvansebille:docs-cleanup

Conversation

@erikvansebille

Copy link
Copy Markdown
Member

Description

This PR cleans up the Documentation, by fixing linking errors and myST warnings, and removing TODOS

Checklist

AI Disclosure

I have asked CoPilot to help me remove the WARNING: skipping unknown output mime type: application/vnd.holoviews_load.v0+json [mystnb.unknown_mime_type] [mystnb.unknown_mime_type] warnings - and the warnings about missing cross-reference targets in notebook links

Fixing linking errors, myST warnings, and removing TODOs
@VeckoTheGecko

Copy link
Copy Markdown
Contributor

Should we update our settings on the Sphinx docs build to fail on these types of warnings?

@erikvansebille

Copy link
Copy Markdown
Member Author

Good question, I'm not sure how robust this pipeline would be. But we could certainly try for a while. if it triggers too many (erroneous) failed builds, we can always revert

Could you turn failing on warnings on?

@VeckoTheGecko VeckoTheGecko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just a couple comments/clarifications

Comment on lines -21 to 30
```{code-cell}
```{code-block} python
ds = ds.load()
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Curious as to why these are code-blocks and note code-cells? This doesn't match the documentation of Myst-parser which we're using (docs)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is intentional. These are now code-blocks because these shouldn't be run by the parser. The data is not available and the notebook doesn't even have import statements; so running these will fail

Comment on lines +17 to +23
particles.temperature = fieldset.temperature[
particles.t,
particles.z,
particles.y,
particles.x,
particles
]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Curious if this is a result of an autoformatter? (if not, I think it would be a good ideal to include an autoformatter for python code cells in docs)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, I hand-formatted this for better readability. An autoformatter would indeed be a good idea

@VeckoTheGecko

Copy link
Copy Markdown
Contributor

Could you turn failing on warnings on?

Just about to head off, can look into next week

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants