Skip to content

Commit

Permalink
Automatic deploy (build number 563)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConanCI bot committed Oct 24, 2023
1 parent 0c1573e commit 1de79fd
Show file tree
Hide file tree
Showing 36 changed files with 1,642 additions and 14 deletions.
1 change: 1 addition & 0 deletions 2.0/_sources/reference/config_files.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ These are the most important configuration files, used to customize conan.
config_files/remotes
config_files/source_credentials
config_files/credentials
config_files/conanrc
55 changes: 55 additions & 0 deletions 2.0/_sources/reference/config_files/conanrc.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.. _reference_config_files_conanrc:

.conanrc
========

.. warning::

This feature is in **preview**.
See :ref:`the Conan stability<stability>` section for more information.

The **.conanrc** file can be placed in the folder where you are running Conan or any
parent folder. This file is used to set up the Conan user home directory by defining the
`conan_home` value. This value will take precedence over the :ref:`CONAN_HOME
<reference_environment_variables_conan_home>` environment variable in case it's also
defined. Below are some examples of how you can define the Conan user home in the
**.conanrc** file:

Set the Conan home to an absolute folder:

.. code-block:: bash
# accepts comments
conan_home=/absolute/folder
Set the Conan home to a relative folder inside the current folder:

.. code-block:: bash
conan_home=./relative/folder/inside/current/folder
Set the Conan home to a relative folder outside the current folder:

.. code-block:: bash
conan_home=../relative/folder/outside/current/folder
Set the Conan home to a path containing the `~` symbol, which will be expanded to the system's user home:

.. code-block:: bash
conan_home=~/use/the/user/home/to/expand/it
Be aware that the **.conanrc** file is searched for in all parent folders. For
example, in this structure:

.. code-block:: bash
.
.conanrc
|-- project1
|-- project2
If you are running from the folder `project1`, the parent folders are traversed recursively
until a **.conanrc** file is found, in case it exists.
1 change: 1 addition & 0 deletions 2.0/_sources/reference/environment.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ These are very few environment variables that can be used to configure some of t
These variables are the exception, for customization and configuration control, Conan uses the
:ref:`global.conf configuration<reference_config_files_global_conf>` and the :ref:`profile [conf] section<reference_config_files_profiles>`

.. _reference_environment_variables_conan_home:

CONAN_HOME
----------
Expand Down
Binary file modified 2.0/conan.pdf
Binary file not shown.
Binary file modified 2.0/objects.inv
Binary file not shown.
1 change: 1 addition & 0 deletions 2.0/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
<li class="toctree-l2"><a class="reference internal" href="reference/config_files/remotes.html">remotes.json</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/config_files/source_credentials.html">source_credentials.json</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/config_files/credentials.html">credentials.json</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/config_files/conanrc.html">.conanrc</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="reference/extensions.html">Extensions</a><ul>
Expand Down
2 changes: 2 additions & 0 deletions 2.0/reference/config_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
<li class="toctree-l3"><a class="reference internal" href="config_files/remotes.html">remotes.json</a></li>
<li class="toctree-l3"><a class="reference internal" href="config_files/source_credentials.html">source_credentials.json</a></li>
<li class="toctree-l3"><a class="reference internal" href="config_files/credentials.html">credentials.json</a></li>
<li class="toctree-l3"><a class="reference internal" href="config_files/conanrc.html">.conanrc</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html">Extensions</a></li>
Expand Down Expand Up @@ -257,6 +258,7 @@
<li class="toctree-l1"><a class="reference internal" href="config_files/remotes.html">remotes.json</a></li>
<li class="toctree-l1"><a class="reference internal" href="config_files/source_credentials.html">source_credentials.json</a></li>
<li class="toctree-l1"><a class="reference internal" href="config_files/credentials.html">credentials.json</a></li>
<li class="toctree-l1"><a class="reference internal" href="config_files/conanrc.html">.conanrc</a></li>
</ul>
</div>
</div>
Expand Down
Loading

0 comments on commit 1de79fd

Please sign in to comment.