From 06c42269a5092d5c8dbfa142c562cb420d3ac3c6 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Wed, 3 Sep 2025 11:55:34 +0530 Subject: [PATCH] doc: changing heading levels for sub-sections This commit correctly nests the sub-sections under the "Package Management in a Project" section of the doc. Signed-off-by: Puneeth Chaganti --- doc/explanation/package-management.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/explanation/package-management.md b/doc/explanation/package-management.md index b9f8a1f12e7..c702632fe05 100644 --- a/doc/explanation/package-management.md +++ b/doc/explanation/package-management.md @@ -41,7 +41,7 @@ stay installable with opam. This section describes what happens in a Dune project using the package management feature. -## Dependency Selection +### Dependency Selection The first step is to determine which packages need to be installed. Traditionally this has been defined in the `depends` field of a project's opam @@ -64,7 +64,7 @@ Dune will fall back to reading dependencies from `.opam` files when the package is not defined in `dune-project`. -## Locking +### Locking Given the list of the project's dependencies and their version constraints, the next steps are: @@ -105,7 +105,7 @@ The information is stored in a directory (`dune.lock` by default) as separate files, to reduce potential merge conflicts and simplify code review. Storing additional files like patches is also simpler this way. -### Package Repository Management +#### Package Repository Management To find a valid solution that allows a project to be built, it is necessary to know what packages exist, what versions of these packages exist, and what other @@ -148,7 +148,7 @@ Dune uses two repositories by default: work within Dune Package Management upstream. Check the [compatibility](#compatibility) section for details. -### Solving +#### Solving After Dune has read the constraints and loaded set of candidate packages, it is necessary to determine which packages and versions should be selected for the @@ -180,7 +180,7 @@ in the build step. ::: (building)= -## Building +### Building When building, Dune will read the information from the lock directory and set up rules for the packages. Check {doc}`/explanation/mental-model` for details