Skip to content

Commit

Permalink
doc: remove dune:stanza directive (#10219)
Browse files Browse the repository at this point in the history
* remove dune:stanza uses

Signed-off-by: Etienne Millon <me@emillon.org>

* remove dunedomain

Signed-off-by: Etienne Millon <me@emillon.org>

---------

Signed-off-by: Etienne Millon <me@emillon.org>
  • Loading branch information
emillon authored Mar 6, 2024
1 parent 534f25f commit 633256c
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 166 deletions.
1 change: 0 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
# ones.
extensions = [
'sphinx_copybutton',
'sphinx_dunedomain',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
124 changes: 0 additions & 124 deletions doc/exts/sphinx_dunedomain.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
accept_alternative_dune_file_name
---------------------------------

.. dune:stanza:: accept_alternative_dune_file_name
.. describe:: (accept_alternative_dune_file_name ...)

.. versionadded:: 3.0

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/cram.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
cram
----

.. dune:stanza:: cram
:param: <status>
.. describe:: (cram <status>)

Define whether Cram-style tests are enabled for the project.

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/files/dune-project/dialect.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dialect
-------

.. dune:stanza:: dialect
.. describe:: (dialect ...)

Declare a new :term:`dialect`.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executables_implicit_empty_intf
-------------------------------

.. dune:stanza:: executables_implicit_empty_intf
.. describe:: (executables_implicit_empty_intf ...)

.. versionadded:: 2.9

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
expand_aliases_in_sandbox
-------------------------

.. dune:stanza:: expand_aliases_in_sandbox
.. describe:: (expand_aliases_in_sandbox ...)

When a sandboxed action depends on an alias, copy the expansion of the alias
inside the sandbox. For instance, in the following example:
Expand Down
2 changes: 1 addition & 1 deletion doc/reference/files/dune-project/explicit_js_mode.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
explicit_js_mode
----------------

.. dune:stanza:: explicit_js_mode
.. describe:: (explicit_js_mode ...)

Do not implicitly add ``js`` to the ``(modes ...)`` field of executables.

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/files/dune-project/formatting.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
formatting
----------

.. dune:stanza:: formatting
.. describe:: (formatting ...)

.. versionadded:: 2.0

Expand Down
22 changes: 8 additions & 14 deletions doc/reference/files/dune-project/generate_opam_files.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
generate_opam_files
-------------------

.. dune:stanza:: generate_opam_files
.. describe:: (generate_opam_files ...)

Use metadata specified in the ``dune-project`` file to generate ``.opam``
files.
Expand All @@ -18,8 +18,7 @@ generate_opam_files
Dune uses the following global fields to set the metadata for all packages
defined in the project:

.. dune:stanza:: license
:param: <strings>
.. describe:: (license <strings>)

Specify the license of the project, ideally as an identifier from the `SPDX
License List <https://spdx.org/licenses/>`__.
Expand All @@ -32,8 +31,7 @@ defined in the project:
Multiple licenses may be specified.

.. dune:stanza:: authors
:param: <strings>
.. describe:: (authors <strings>)

Specify authors.

Expand All @@ -45,8 +43,7 @@ defined in the project:
"Jane Doe <jane.doe@example.com>"
"John Doe <john.doe@example.com>")
.. dune:stanza:: maintainers
:param: <strings>
.. describe:: (maintainers <strings>)

Specify maintainers.

Expand All @@ -58,7 +55,7 @@ defined in the project:
"Jane Doe <jane.doe@example.com>"
"John Doe <john.doe@example.com>")
.. dune:stanza:: source
.. describe:: (source ...)

Specify where the source for the package can be found.

Expand Down Expand Up @@ -90,8 +87,7 @@ defined in the project:
(source
(uri https://dev.example.com/project.git))
.. dune:stanza:: bug_reports
:param: <url>
.. describe:: (bug_reports <url>)

Where bugs should be reported.

Expand All @@ -103,8 +99,7 @@ defined in the project:
(bug_reports https://dev.example.com/project/issues)
.. dune:stanza:: homepage
:param: <url>
.. describe:: (homepage <url>)

The homepage of the project.

Expand All @@ -116,8 +111,7 @@ defined in the project:
(bug_reports https://example.com/)
.. dune:stanza:: documentation
:param: <url>
.. describe:: (documentation <url>)

Where the documentation is hosted.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
implicit_transitive_deps
------------------------

.. dune:stanza:: implicit_transitive_deps
.. describe:: (implicit_transitive_deps ...)

Control whether transitive dependencies are made implicitly visible.

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/map_workspace_root.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
map_workspace_root
-------------------

.. dune:stanza:: map_workspace_root
:param: <bool>
.. describe:: (map_workspace_root <bool>)

Control references to the file system locations where the project has been
built.
Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/name.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name
----

.. dune:stanza:: name
:param: <string>
.. describe:: (name <string>)

Set the name of the project.

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/opam_file_location.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
opam_file_location
------------------

.. dune:stanza:: opam_file_location
:param: <location>
.. describe:: (opam_file_location <location>)

.. versionadded:: 3.8

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/files/dune-project/package.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package
-------

.. dune:stanza:: package
.. describe:: (package ...)

Define package-specific metadata.

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/subst.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
subst
-----

.. dune:stanza:: subst
:param: <bool>
.. describe:: (subst <bool>)

.. versionadded: 3.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use_standard_c_and_cxx_flags
----------------------------

.. dune:stanza:: use_standard_c_and_cxx_flags
.. describe:: (use_standard_c_and_cxx_flags ...)

.. versionadded:: 2.8

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/using.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using
-----

.. dune:stanza:: using
:param: <plugin> <version>
.. describe:: (using <plugin> <version>)

Enable a dune language extension.

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/version.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version
-------

.. dune:stanza:: version
:param: <version>
.. describe:: (version <version>)

Set the version of the project.

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/files/dune-project/warnings.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warnings
--------

.. dune:stanza:: warnings
.. describe:: (warnings ...)

.. versionadded:: 3.11

Expand Down
3 changes: 1 addition & 2 deletions doc/reference/files/dune-project/wrapped_executables.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
wrapped_executables
-------------------

.. dune:stanza:: wrapped_executables
:param: <bool>
.. describe:: (wrapped_executables <bool>)

.. versionadded:: 1.11

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/files/dune/cram.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Cram
----

.. dune:stanza:: cram
.. describe:: (cram ...)

Configure Cram tests in the current directory (and subdirectories).

Expand Down

0 comments on commit 633256c

Please sign in to comment.