rhcarvalho

rhcarvalho

Proposal for Consistent Capitalization in Documentation Titles

tldr: I propose we standardize on Title Case for the Phoenix and LiveView documentation.


A code review suggestion by @josevalim made me realize that section titles in Phoenix and Phoenix LiveView documentation don’t follow a specific pattern.

From what I’ve been following of Elixir and Phoenix, there’s a push to improve the quality and polish of documentation, among other initiatives.

I believe consistency, in particular consistent capitalization, makes for more pleasant documents that are easier to read on screen and in print, adding an extra level of polish to match the quality of the content.

A screenshot to illustrate the current situation:

image

Many titles capitalize only the first letter (e.g. “Security considerations”) and proper nouns (e.g. “Assigns and HEEx templates”). However, some others use Title Case (e.g. “API Reference”, “External Uploads”, “Debugging Client Events”).

At the main Phoenix docs, most top level titles use Title Case. There are exceptions, so it is not fully consistent. Another illustration:

image

Considering the common practice in published English works and the recommendation of many style guides, I propose we standardize on Title Case for the Phoenix and LiveView documentation to make it feel consistent and familiar to the community.

If the proposal is accepted, I volunteer to document the style preference in the repos and update existing titles. Since only capitalization would change, there would be no impact on existing links as they are all downcased anyway (e.g. “Debugging Client Events” is at https://hexdocs.pm/phoenix_live_view/js-interop.html#debugging-client-events). The updates can be done in multiple stages without prejudice to the end result, thus avoiding huge and hard to review PRs.

PS: As an extra reference that uses Title Case, consider the Erlang Reference Manual User’s Guide.

I would love to hear feedback from the community :purple_heart:

First Post!

josevalim

josevalim

Creator of Elixir

Elixir doesn’t use title casing in its docs, so I’d argue for not using it in Phoenix/LiveView either. :slight_smile:

Where Next?

Popular in Proposals: Ideas Top

markevans
Hi! I feel like Phoenix is slightly missing a trick when it comes to front-end Javascript libraries like React, Svelte, etc. I feel tha...
New
iaguirre88
Hi, everyone! Sometimes, you might want to build your app using Phoenix just for the backend and use another tool for the frontend (such...
New
pinetops
LiveView is by far my favorite web tech, but a few things have been nagging me. So with all the fancy and ill advised elixir tricks I cou...
New
cheerfulstoic
I feel like Elixir is getting big enough and old enough that I’m starting to experience problems with conflicting dependencies. An examp...
New
derekkraan
I have been using a multi-endpoint setup in my app, just because I think it makes the most sense for a multi-subdomain app. This worked w...
New
New
cgraham
Please change passwordless login from a link to a 6-8 digit code a user can enter. Gen Auth in the latest RC 1.8 of Phoenix defaults ...
New
superchris
Currently there is no out of the box way to support DOM Custom Events in phoenix. I’ve created a separate library to do this, but I’d lov...
New
dogweather
Hi Phoenix community! First off, huge thanks for an amazing framework - Phoenix has been a joy to work with. I have a small UX suggestio...
New
PJUllrich
Hey folks, I have the unique problem that I need to ignore all “change” and “input” events for one specific input element in a LiveView F...
New

Other popular topics Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement