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

Only use shell_docs for html docs (OTP26-) #13583

Merged
merged 3 commits into from
May 21, 2024

Conversation

sabiwara
Copy link
Contributor

Approach 1 for discussion - only use shell docs for OTP26-, and use the new markdown + existing IO.ANSI.Docs markdown.
Will bring back specs, supports tables & skips mermaid charts.

Still need to fix tests.

Screenshot 2024-05-21 at 20 54 59 Screenshot 2024-05-21 at 20 55 06

@josevalim
Copy link
Member

I think this is what we want for now. We may go back to Erlang+HTML, but only once we are on OTP 27+.

@@ -259,7 +259,7 @@ defmodule IEx.Introspection do
case Code.ensure_loaded(module) do
{:module, _} ->
case Code.fetch_docs(module) do
{:docs_v1, _, :erlang, _, _, _, _} = erl_docs ->
{:docs_v1, _, :erlang, "application/erlang+html", _, _, _} = erl_docs ->
Copy link
Member

Choose a reason for hiding this comment

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

We should add a TODO to remove support for "application/erlang+html" once we are on OTP 27+.

@josevalim josevalim added this to the v1.17 milestone May 21, 2024
@sabiwara sabiwara marked this pull request as ready for review May 21, 2024 13:34
@sabiwara sabiwara merged commit 803d08b into elixir-lang:main May 21, 2024
9 checks passed
@sabiwara sabiwara deleted the doc-markdown branch May 21, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants