![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Generate static documentation of your Elm application project.
Requires Python >= 3.5, rsync >= 2.6.7, and macOS or Linux. It may work on Windows but it's untested.
Supported Elm versions:
You will need to enable the --pre
flag if you're installing the latest version through the pip
command.
Simplest invocation:
$ elm-doc . --output docs --fake-license 'SPDX license name'
The license name is required because elm-doc uses the official Elm binary to validate and generate docs; the official Elm binary only generates docs for a package project, and a package project requires a license to be set. While the license name will not be part of the generated doc, it will be associated with the project in the temporary elm.json file elm-doc generates during the build / validation.
Do no use elm-doc if you'd rather not risk the legal consequences of this fact. (IANAL: my understanding is OSS license doesn't take effect unless you distribute the code it's attached to.)
To view the generated docs, you'll need an HTTP server that can detect mimetypes based on file contents, rather than file extensions.
I personally use spark:
$ (cd doc && ~/go/bin/spark)
You can specify other attributes of the project with --fake-user
, --fake-project
,
and --fake-version
.
elm-doc creates a build directory named .elm-doc
at the root of the project.
You may want to ignore it in your SCM config, or you can change its path with --build-dir
.
--validate
can check if you have all the necessary documentation in place:
$ elm-doc . \
--elm-path ./node_modules/.bin/elm \
--validate
elm-doc
assumes you're working on an app, not a package; it will try to generate
documentation for all modules found in the application source directories.
You can --exclude-modules
by using fnmatch
patterns:
$ elm-doc . --output docs --fake-license 'SPDX license name' \
--exclude-modules '*.Private.*,Blacklist.*'
or --exclude-source-directories
entirely:
$ elm-doc . --output docs --fake-license 'SPDX license name' \
--exclude-source-directories generated
You can also specify which files and directories to include in the list of modules:
$ elm-doc . --output docs \
src/Whitelist src/Main.elm
Note that the --exclude
flag takes no effect if you explicitly specify which
files to include, unless you add the --force-exclusion
flag:
$ elm-doc . --output docs --fake-license 'SPDX license name' \
--exclude-modules '*.Private.*,Blacklist.*' \
--force-exclusion \
src/Whitelist src/Main.elm
For a full list of options, see:
$ elm-doc --help
In a Python (>=3.5) virtualenv or globally:
$ pip install --upgrade pip setuptools
$ pip install elm-doc
This is the rough build process:
package
and restructure / reformat to match the schema for a package project's elm.json--fake-*
fields, including the license: these are required for a package project but not included in an application project's elm.jsonsrc
directory using rsync
src
elm make
with the --doc
flag on~/.elm
Running tests:
$ nix-shell
$ poetry install
$ poetry run tox -e py35,...
Updating the prebuilt frontend code and test fixture:
$ poetry run doit
FAQs
Generate static documentation for your Elm application
We found that elm-doc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.