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

Standardisation of sphinx docs page titles #232

Open
callumforrester opened this issue Feb 12, 2025 · 14 comments
Open

Standardisation of sphinx docs page titles #232

callumforrester opened this issue Feb 12, 2025 · 14 comments
Labels
enhancement New feature or request

Comments

@callumforrester
Copy link
Contributor

This may be the nitpickiest issue I have ever raised, so should not be actioned unless there's strong agreement.

Image
(from https://diamondlightsource.github.io/python-copier-template/main/how-to.html)

It annoys me that the titles for docs pages are not really standardised, Some Are Capitalised, some are not, some are prefixed with "How to" or similar. If there is a really easy check that can be added to the docs builds it might add a layer of consistency and professionalism. The hardest part, as ever when we talk about formatting, may be agreeing on which standard to use.

@callumforrester callumforrester added the enhancement New feature or request label Feb 12, 2025
@DiamondJoseph
Copy link

I'd remove any "how tos", make everything sentence case, make everything imperative tone, remove any specific names (Sphinx, Excalidraw).

This then becomes

Set up developer environment
Build docs
Check docs style
Contribute to the template
Check code coverage
Embed diagrams
Lint automatically
Lock requirements
Make a release
Set up publishing
Add images
Run tests
Run static analysis
Enable strict linting
Update to the latest template

@coretl
Copy link
Contributor

coretl commented Feb 12, 2025

https://diataxis.fr/how-to-guides/#pay-attention-to-naming suggests keeping "How to" in the title.

Agree with the rest of it

@DiamondJoseph
Copy link

Grumble grumble

How to set up developer environment
How to build docs
How to check docs style
How to contribute to the template
How to check code coverage
How to embed diagrams
How to lint automatically
How to lock requirements
How to make a release
How to set up publishing
How to add images
How to run tests
How to run static analysis
How to enable strict linting
How to update to the latest template

Just seems... repetitive

@callumforrester
Copy link
Contributor Author

Isn't it being in the "How-to" section enough?

@coretl
Copy link
Contributor

coretl commented Feb 12, 2025

Image

Is that too bad?

@DiamondJoseph
Copy link

I must admit variable multiple lines and not in monospace font does make it look less horrid for sure

@GDYendell
Copy link
Contributor

I think the titles should be phrased such that they could be (and implicitly are) prepended with "How to...", but don't actually include it.

@coretl
Copy link
Contributor

coretl commented Feb 13, 2025

I'm still going to argue that "How to" should be in the title, because then every time you reference it the title for the link will begin "How to", as will the page title in google...

@callumforrester
Copy link
Contributor Author

The hardest part, as ever when we talk about formatting, may be agreeing on which standard to use.

...

Anyone for rock, paper, scissors?

@GDYendell
Copy link
Contributor

I'm still going to argue that "How to" should be in the title, because then every time you reference it the title for the link will begin "How to", as will the page title in google...

Yeah OK, this is a good point...

@callumforrester
Copy link
Contributor Author

Do we want other prefixes for the other sections?

@coretl
Copy link
Contributor

coretl commented Feb 13, 2025

Do we want other prefixes for the other sections?

https://diataxis.fr/start-here/ doesn't seem to. I'm not sure if it is clear from just the titles if they are tutorials or not?

Image

@callumforrester
Copy link
Contributor Author

Just having them for how-tos seems more confusing but not too strongly opposed.

I'm still going to argue that "How to" should be in the title, because then every time you reference it the title for the link will begin "How to", as will the page title in google...

Having thought about it a bit more I don't really agree with this. Once you click a link you can clearly see that the page is in the "How To" section. There can also be context around the link and if you're Googling something you know you're trying to figure out how to do it. As an aside I have a pet peeve about Youtube tutorial videos that open with "Hi guys, today we're going to learn how to do XYZ". I know we are, I'm the one who googled it, get on with it!

I can't actually think of a realistic scenario where someone would click the link if it said "How to XYZ" and would not click the link if it didn't.

@coretl
Copy link
Contributor

coretl commented Feb 17, 2025

It's Monday morning and I don't have the energy to argue, so I'll accept a PR either way as long as it's consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants