Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdownlint and tidy up markdown #465

Merged
merged 9 commits into from
Oct 22, 2024
Merged

Add markdownlint and tidy up markdown #465

merged 9 commits into from
Oct 22, 2024

Conversation

paddyroddy
Copy link
Member

@paddyroddy paddyroddy added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 22, 2024
@paddyroddy paddyroddy self-assigned this Oct 22, 2024
# Benchmarking
## Benchmarking
Copy link
Member Author

Choose a reason for hiding this comment

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

This type of change is because the title at the top of the page is essentially h1, so these should be h2

Comment on lines -148 to +157
<details>
<summary>Click to expand...</summary>
<details><summary>Click to expand...</summary> <!-- markdownlint-disable-line MD033 -->
Copy link
Member Author

Choose a reason for hiding this comment

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

Combining these, is just so we only have to have one markdownlint-disable-line

Copy link
Member

Choose a reason for hiding this comment

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

That's the second time I've thought that these instructions should be moved/merged into CONTRIBUTING.md.

@paddyroddy paddyroddy marked this pull request as draft October 22, 2024 10:33
@@ -58,6 +58,7 @@ def test_package_generation(
pathlib.Path(".github/workflows/linting.yml"),
pathlib.Path(".github/workflows/tests.yml"),
pathlib.Path(".gitignore"),
pathlib.Path(".markdownlint.yaml"),
Copy link
Member Author

Choose a reason for hiding this comment

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

This is required for the test to pass

@samcunliffe samcunliffe removed the request for review from dstansby October 22, 2024 10:42
@dstansby
Copy link
Member

What's the motivation for using this over just the prettier markdown formatting?

@paddyroddy
Copy link
Member Author

What's the motivation for using this over just the prettier markdown formatting?

This isn't formatting, it's linting

@dstansby
Copy link
Member

What's the difference?

@dstansby
Copy link
Member

What's the motivation for using this over just the prettier markdown formatting?

For a bit more context on my question, this adds complexity to the setup here so it would be good to understand what the benefits of adding this are :)

Comment on lines -22 to -26
[conda-badge]: https://img.shields.io/conda/vn/conda-forge/{{cookiecutter.project_slug}}
[conda-link]: https://github.com/conda-forge/{{cookiecutter.project_slug}}-feedstock
[pypi-link]: https://pypi.org/project/{{cookiecutter.project_slug}}/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/{{cookiecutter.project_slug}}
[pypi-version]: https://img.shields.io/pypi/v/{{cookiecutter.project_slug}}
Copy link
Member Author

Choose a reason for hiding this comment

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

These aren't being used (and picked up by markdownlint

@paddyroddy
Copy link
Member Author

For a bit more context on my question, this adds complexity to the setup here so it would be good to understand what the benefits of adding this are :)

It's adding more good practice so we don't accidentally break things. For example it will pick up that a file's first header is ## when it should be #. It will stop bare URLs so that they don't accidentally break. It will encourage the use of code fencing so you get nice syntax highlighting etc. Read the rules here to find out more https://github.com/DavidAnson/markdownlint?tab=readme-ov-file#rules--aliases

@paddyroddy paddyroddy marked this pull request as ready for review October 22, 2024 10:51
Copy link
Member

@samcunliffe samcunliffe left a comment

Choose a reason for hiding this comment

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

🫐

Comment on lines -148 to +157
<details>
<summary>Click to expand...</summary>
<details><summary>Click to expand...</summary> <!-- markdownlint-disable-line MD033 -->
Copy link
Member

Choose a reason for hiding this comment

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

That's the second time I've thought that these instructions should be moved/merged into CONTRIBUTING.md.

@paddyroddy paddyroddy merged commit df14157 into main Oct 22, 2024
14 checks passed
@paddyroddy paddyroddy deleted the paddy/markdownlint branch October 22, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants