Skip to content

Commit

Permalink
doc: Add versions when opam-file related stanzas were added
Browse files Browse the repository at this point in the history
There is no note about `generate_opam_files` in the changelog so the
only reference seems to be the source.

Signed-off-by: Marek Kubica <[email protected]>
  • Loading branch information
Leonidas-from-XIV committed Oct 2, 2024
1 parent 451e5b4 commit ac1a278
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/reference/dune-project/generate_opam_files.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
generate_opam_files
-------------------


.. describe:: (generate_opam_files ...)

.. versionadded:: 1.10

Use metadata specified in the ``dune-project`` file to generate ``.opam``
files.

Expand All @@ -20,6 +23,8 @@ defined in the project:

.. describe:: (license <strings>)

.. versionadded:: 1.9

Specify the license of the project, ideally as an identifier from the `SPDX
License List <https://spdx.org/licenses/>`__.

Expand All @@ -33,6 +38,8 @@ defined in the project:

.. describe:: (authors <strings>)

.. versionadded:: 1.9

Specify authors.

Example:
Expand All @@ -45,6 +52,8 @@ defined in the project:
.. describe:: (maintainers <strings>)

.. versionadded:: 1.10

Specify maintainers.

Example:
Expand All @@ -57,6 +66,8 @@ defined in the project:
.. describe:: (source ...)

.. versionadded:: 1.7

Specify where the source for the package can be found.

It can be specified as ``(uri <uri>)`` or using shortcuts for some
Expand Down Expand Up @@ -92,6 +103,8 @@ defined in the project:
.. describe:: (bug_reports <url>)

.. versionadded:: 1.10

Where bugs should be reported.

If a hosting service is used in ``(source)``, a default value is provided.
Expand All @@ -104,6 +117,8 @@ defined in the project:
.. describe:: (homepage <url>)

.. versionadded:: 1.10

The homepage of the project.

If a hosting service is used in ``(source)``, a default value is provided.
Expand All @@ -116,6 +131,8 @@ defined in the project:
.. describe:: (documentation <url>)

.. versionadded:: 1.10

Where the documentation is hosted.

With these fields, every time one calls Dune to execute some rules (either via
Expand Down

0 comments on commit ac1a278

Please sign in to comment.