Repository navigation
Releases
Releases · milmazz/ex_doc_json
v0.3.0
This release makes the formatter work with ExDoc v0.40.1 and later. ExDoc v0.40 revamped its formatter API.
Enhancements
- Implement the
ExDoc.Formatterbehaviour introduced in ExDoc v0.40 - The project
descriptionis now the one ExDoc was given, instead of being read from the Mix project running the formatter. This also makes the formatter usable outside of Mix - Add
source_urlto the top-level information - Add
idanddefaultsto functions, callbacks, and types - Add
nameto functions and callbacks, andgroupto types - Add
idandnested_contextto modules - Add
typeto extras, and export extras that link to an external URL - Documentation in the
application/erlang+htmlformat is exported as HTML instead of failing to be encoded - Modules of a kind unknown to the formatter are listed under
modulesinstead of being left out - The generated file is listed in ExDoc's
.build.json, so ExDoc cleans it up when the project is renamed - Documentation is generated faster: extras are no longer rendered to HTML and autolinked only to be discarded, and the JSON is written without building it in memory as a single binary
Backwards incompatible changes
- Require ExDoc v0.40.1 or later and Elixir
~> 1.15 docs_groupsnow lists the groups that have members, includingTypes, as reported by ExDocdocsandtypespecsare ordered by group, and by name within each group- Opaque types no longer have the
opaqueannotation, as ExDoc stopped adding it: theirtypeis stillopaque - Remove
rendered_docfrom functions and types: it was alwaysnull - Remove
title_contentfrom extras: usetitle ExDoc.Formatter.JSON.runnow takes three arguments (the formatter configuration, the modules, and the extras), as required by ExDoc
Package: https://hex.pm/packages/ex_doc_json/0.3.0
Documentation: https://hexdocs.pm/ex_doc_json/0.3.0