Ferrite.jl icon indicating copy to clipboard operation
Ferrite.jl copied to clipboard

Docs: Consistent formatting for capitalization of headers

Open jfdev001 opened this issue 9 months ago • 0 comments
trafficstars

This is a very trivial issue and arose as I was working on https://github.com/Ferrite-FEM/Ferrite.jl/pull/1138. There is not a consistent formatting for the capitalization of headers in the documentation. For example, in the Stokes Flow Tutorial, headers are written using sentence case (i.e., only the first word and any proper nouns are capitalized) as in ## Introduction and problem formulation while in other tutorials such as Transient Heat Equation Tutorial headers are written using title case (i.e., capitalize nouns, pronouns, verbs, adjectives, and adverbs, but do not capitalize short conjunctions, prepositions, or articles unless they are the first or last word) as in ## Commented Program.

It seems like the sentence case is the more widely used capitalization style used in the documentation, so I could easily make a PR correcting the places in the docs that don't adhere to this, but I wanted to open the issue first in case there is a preference by the lead maintainers for a certain style. Update: https://github.com/Ferrite-FEM/Ferrite.jl/pull/1175 resolves this!

  • [x] Manually update docs with sentence case. Resolved https://github.com/Ferrite-FEM/Ferrite.jl/pull/1175.

It may also be beneficial to update the CI (e.g., maybe runic or perhaps somewhere else in the github workflows) to enforce whatever the desired style is. I could also make this addition, by I would appreciate it if someone could point to which file they think it would be appropriate to make this type of style enforcing addition to. This capitalization style should naturally only affect code changes in docs/ (e.g., should someone wish to add a new topic guide, the topic name My Topic would error but the topic name My topic would pass CI). Update: This is not yet addressed, and could be a good-first-issue. I can look into this later if no one else claims it, but there are other issues/PRs i need to address first.

  • [ ] Update CI to enforce desired style. Still an open issue.

jfdev001 avatar Feb 17 '25 18:02 jfdev001