rhcarvalho

rhcarvalho

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! Switch mode

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:

— All posts loaded —

Where Next? Top

Trending in Proposals: Ideas Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement