Skip to content

Commit

Permalink
installing-solidity.rst: Use full option names and tweak example comm…
Browse files Browse the repository at this point in the history
…ands

- Also put example paths in /tmp to avoid new root dirs being created if the example is used verbatim
  • Loading branch information
cameel committed Jan 31, 2025
1 parent 8796496 commit 93e7e70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/installing-solidity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Please refer to the solc-js repository for instructions.

.. code-block:: bash
npm install -g solc
npm install --global solc
.. note::

Expand Down Expand Up @@ -94,7 +94,13 @@ local folder for input and output, and specify the contract to compile. For exam

.. code-block:: bash
docker run -v /local/path:/sources ethereum/solc:stable -o /sources/output --abi --bin /sources/Contract.sol
docker run \
--volume "/tmp/some/local/path/:/sources/" \
ethereum/solc:stable \
/sources/Contract.sol \
--abi \
--bin \
--output-dir /sources/output/
You can also use the standard JSON interface (which is recommended when using the compiler with tooling).
When using this interface, it is not necessary to mount any directories as long as the JSON input is
Expand Down

0 comments on commit 93e7e70

Please sign in to comment.