-
Notifications
You must be signed in to change notification settings - Fork 455
Rearrange docs to make the content more discoverable for newcomers #12612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sabine
wants to merge
5
commits into
ocaml:main
Choose a base branch
from
sabine:rearrange_docs_for_clarity
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
533ac96
rename and restructure documentation content to be more obvious about…
sabine eb0eb0d
add redirects for the renamed pages
sabine dee7838
point to opam howto on the index page of dune pkg tutorial, rename Pr…
sabine 3ad0f98
move dune package management tutorial a bit further down in the main …
sabine 076f4b8
move FAQ out of Misk into the main TOC
sabine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| Core Concepts | ||
| ================================= | ||
|
|
||
| These documents explain what Dune is, how it works, and how to use it. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| mental-model | ||
| scopes | ||
| terminology | ||
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
|
|
||
| Terminology | ||
| =========== | ||
|
|
||
| .. glossary:: | ||
| root | ||
| The top-most directory in a GitHub repo, workspace, and project, | ||
| differentiated by variables such as ``%{workspace_root}`` and | ||
| ``%{project_root}``. Dune builds things from this directory. It knows how to | ||
| build targets that are descendants of the root. Anything outside of the tree | ||
| starting from the root is considered part of the :term:`installed world`. | ||
| Refer to :ref:`finding-root` to learn how the workspace root is determined. | ||
|
|
||
| workspace | ||
| The subtree starting from each root. It can contain any number of projects | ||
| that will be built simultaneously by Dune, and it must contain a | ||
| ``dune-workspace`` file. | ||
|
|
||
| project | ||
| A collection of source files that must include a ``dune-project`` file. It | ||
| may also contain one or more packages. A project consists in a hierarchy | ||
| of directories. Every directory (at the root, or a subdirectory) can | ||
| contain a ``dune`` file that contains instructions to build files in that | ||
| directory. Projects can be shared between different applications. | ||
|
|
||
| package | ||
| A set of libraries and executables that opam builds and installs as one. | ||
|
|
||
| installed world | ||
| Anything outside of the workspace. Dune doesn't know how to build things | ||
| in the installed world. | ||
|
|
||
| installation | ||
| The action of copying build artifacts or other files from the | ||
| ``<root>/_build`` directory to the :term:`installed world`. | ||
|
|
||
| scope | ||
| Defined by any directory that contains at least one `<package>.opam` file. | ||
| Typically, every project defines a single scope that is a subtree starting | ||
| from this directory. Moreover, scopes are separate from your project's | ||
| dependencies. The scope also determines where private items are visible. | ||
| Private items include libraries or binaries that will not be installed. | ||
| See :doc:`/core-concepts/scopes` for more details. | ||
|
|
||
| build context | ||
| A specific configuration written in a | ||
| :doc:`/reference/dune-workspace/index` file, which has a | ||
| corresponding subdirectory in the ``<root>/_build`` directory. It contains | ||
| all the workspace's build artifacts. Without this specific configuration | ||
| from the user, there is always a ``default`` build context that | ||
| corresponds to the executed Dune environment. | ||
|
|
||
| build context root | ||
| The root of a build context named ``foo`` is ``<root>/_build/<foo>``. | ||
|
|
||
| build target | ||
| Specified on the command line, e.g., ``dune build <target_path.exe>``. All | ||
| targets that Dune knows how to build live in the ``_build`` directory. | ||
|
|
||
| alias | ||
| A build target that doesn't produce any file and has configurable | ||
| dependencies. Targets starting with ``@`` on the command line are | ||
| interpreted as aliases (e.g., ``dune build @src/runtest``). Aliases are | ||
| per-directory. See :doc:`/reference/aliases`. | ||
|
|
||
| environment | ||
| Determines the default values of various parameters, such as the | ||
| compilation flags. In Dune, each directory has an environment attached to | ||
| it. Inside a scope, each directory inherits the environment from its | ||
| parent. At the root of every scope, a default environment is used. At any | ||
| point, the environment can be altered using an | ||
| :doc:`/reference/dune/env` stanza. | ||
|
|
||
| build profile | ||
| A global setting that influences various defaults. It can be set from the | ||
| command line using ``--profile <profile>`` or from ``dune-workspace`` | ||
| files. The following profiles are standard: | ||
|
|
||
| - ``release`` which is the profile used for opam releases | ||
| - ``dev`` which is the default profile when none is set explicitly, it has | ||
| stricter warnings than the ``release`` one | ||
|
|
||
| dialect | ||
| An alternative frontend to OCaml (such as ReasonML). It is described | ||
| by a pair of file extensions, one corresponding to interfaces and one to | ||
| implementations. It can use the standard OCaml syntax, or it can specify an | ||
| action to convert from a custom syntax to a binary OCaml abstract syntax | ||
| tree. It can also specify a custom formatter. | ||
|
|
||
| placeholder substitution | ||
| A build step in which placeholders such as ``%%VERSION%%`` in source files | ||
| are replaced by concrete values such as ``1.2.3``. It is performed by | ||
| :ref:`dune-subst` for development versions and dune-release_ for | ||
| releases. | ||
|
|
||
| stanza | ||
| A fragment of a file interpreted by Dune, that will appear as a | ||
| s-expression at the top-level of a file. For example, the | ||
| :doc:`/reference/dune/library` stanza describes a library. This can be | ||
| either a generic term ("the library stanza") or it can refer to a | ||
| particular instance in a file ("the executable stanza in ``bin/dune``"). |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,5 @@ information about the project itself. | |
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| ../faq | ||
| ../goals | ||
| ../hacking | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think rst (make doc) will complain about non-matching underlines.