Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 19, 2024
1 parent feef3c9 commit b2aeffa
Show file tree
Hide file tree
Showing 28 changed files with 131 additions and 82 deletions.
Binary file modified latest/.doctrees/commands/networks.doctree
Binary file not shown.
Binary file modified latest/.doctrees/environment.pickle
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape_accounts.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape_compile.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape_ethereum.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape_node.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape_pm.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/ape_test.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/api.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/cli.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/contracts.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/exceptions.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/managers.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/plugins.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/types.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/utils.doctree
Binary file not shown.
Binary file modified latest/.doctrees/userguides/config.doctree
Binary file not shown.
21 changes: 21 additions & 0 deletions latest/_sources/userguides/config.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@ plugin:

This helps keep your secrets out of Ape!

## Base Path

Change the base path if it is different than your project root.
For example, imagine a project structure like:

```
project
└── src/
└── contracts/
└── MyContract.sol
```

In this case, you want to configure Ape like:

```yaml
base_path: src
```

This way, `MyContract.vy`'s source ID will be `"contracts/Factory.vy"` and not `"src/contracts/Factory.vy"`.
Some dependencies, such as python-based ones like `snekmate`, use this structure.

## Contracts Folder

Specify a different path to your `contracts/` directory.
Expand Down
6 changes: 3 additions & 3 deletions latest/commands/networks.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ <h2>list<a class="headerlink" href="#networks-list" title="Link to this heading"
<dd><p>Filter the results by network</p>
<dl class="field-list simple">
<dt class="field-odd">Options<span class="colon">:</span></dt>
<dd class="field-odd"><p>mainnet | local | holesky-fork | mainnet-fork | holesky | sepolia-fork | sepolia</p>
<dd class="field-odd"><p>local | holesky-fork | sepolia | holesky | sepolia-fork | mainnet | mainnet-fork</p>
</dd>
</dl>
</dd></dl>
Expand All @@ -211,7 +211,7 @@ <h2>list<a class="headerlink" href="#networks-list" title="Link to this heading"
<dd><p>Filter the results by provider</p>
<dl class="field-list simple">
<dt class="field-odd">Options<span class="colon">:</span></dt>
<dd class="field-odd"><p>test | node</p>
<dd class="field-odd"><p>node</p>
</dd>
</dl>
</dd></dl>
Expand All @@ -237,7 +237,7 @@ <h2>run<a class="headerlink" href="#networks-run" title="Link to this heading">
<dd><p>Override the default network and provider. (see <cite>ape networks list</cite> for options)</p>
<dl class="field-list simple">
<dt class="field-odd">Options<span class="colon">:</span></dt>
<dd class="field-odd"><p>:mainnet:node | ethereum:mainnet:node | :mainnet | ethereum:mainnet | :sepolia:node | ethereum:sepolia:node | :sepolia | ethereum:sepolia | :holesky:node | ethereum:holesky:node | :holesky | ethereum:holesky | ::node | :local:node | ethereum::node | ethereum:local:node | ::test | :local:test | ethereum::test | ethereum:local:test | :local | ethereum:local | ethereum</p>
<dd class="field-odd"><p>:mainnet:node | ethereum:mainnet:node | :mainnet | ethereum:mainnet | :sepolia:node | ethereum:sepolia:node | :sepolia | ethereum:sepolia | :holesky:node | ethereum:holesky:node | :holesky | ethereum:holesky | ::node | :local:node | ethereum::node | ethereum:local:node | :local | ethereum:local | ethereum</p>
</dd>
</dl>
</dd></dl>
Expand Down
6 changes: 4 additions & 2 deletions latest/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,8 @@ <h2 id="B">B</h2>
<li><a href="methoddocs/ape_ethereum.html#ape_ethereum.NetworkConfig.base_fee_multiplier">(ape_ethereum.NetworkConfig attribute)</a>
</li>
</ul></li>
<li><a href="methoddocs/api.html#ape.api.config.ApeConfig.base_path">base_path (ape.api.config.ApeConfig attribute)</a>
</li>
<li><a href="methoddocs/api.html#ape.api.address.BaseAddress">BaseAddress (class in ape.api.address)</a>
</li>
<li><a href="methoddocs/types.html#ape.types.BaseContractLog">BaseContractLog (class in ape.types)</a>
Expand All @@ -1797,11 +1799,11 @@ <h2 id="B">B</h2>
<li><a href="methoddocs/ape_ethereum.html#ape_ethereum.SharedBlobReceipt.blob_gas_used">blob_gas_used (ape_ethereum.SharedBlobReceipt attribute)</a>
</li>
<li><a href="methoddocs/api.html#ape.api.query.ContractCreation.block">block (ape.api.query.ContractCreation attribute)</a>
</li>
<li><a href="methoddocs/ape_ethereum.html#ape_ethereum.Block">Block (class in ape_ethereum)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="methoddocs/ape_ethereum.html#ape_ethereum.Block">Block (class in ape_ethereum)</a>
</li>
<li><a href="methoddocs/types.html#ape.types.ContractLog.block_hash">block_hash (ape.types.ContractLog attribute)</a>
</li>
<li><a href="methoddocs/types.html#ape.types.ContractLog.block_number">block_number (ape.types.ContractLog attribute)</a>
Expand Down
4 changes: 2 additions & 2 deletions latest/methoddocs/ape_node.html

Large diffs are not rendered by default.

144 changes: 76 additions & 68 deletions latest/methoddocs/api.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions latest/methoddocs/contracts.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions latest/methoddocs/managers.html

Large diffs are not rendered by default.

Binary file modified latest/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion latest/searchindex.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions latest/userguides/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<i class="i-lucide close"></i>
</button>
<div class="sy-scrollbar sy-rside-inner px-6 xl:top-16 xl:sticky xl:pl-0 pt-6 pb-4"><div class="localtoc"><h3>On this page</h3><ul>
<li><a class="reference internal" href="#base-path">Base Path</a></li>
<li><a class="reference internal" href="#contracts-folder">Contracts Folder</a></li>
<li><a class="reference internal" href="#default-ecosystem">Default Ecosystem</a></li>
<li><a class="reference internal" href="#dependencies">Dependencies</a></li>
Expand Down Expand Up @@ -186,6 +187,23 @@ <h1>Configure Ape<a class="headerlink" href="#configure-ape" title="Link to this
</span></pre></div>
</div>
<p>This helps keep your secrets out of Ape!</p>
<section id="base-path">
<h2>Base Path<a class="headerlink" href="#base-path" title="Link to this heading"></a></h2>
<p>Change the base path if it is different than your project root.
For example, imagine a project structure like:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1">project
</span><span data-line="2">└── src/
</span><span data-line="3"> └── contracts/
</span><span data-line="4"> └── MyContract.sol
</span></pre></div>
</div>
<p>In this case, you want to configure Ape like:</p>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="nt">base_path</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">src</span>
</span></pre></div>
</div>
<p>This way, <code class="docutils literal notranslate"><span class="pre">MyContract.vy</span></code>’s source ID will be <code class="docutils literal notranslate"><span class="pre">&quot;contracts/Factory.vy&quot;</span></code> and not <code class="docutils literal notranslate"><span class="pre">&quot;src/contracts/Factory.vy&quot;</span></code>.
Some dependencies, such as python-based ones like <code class="docutils literal notranslate"><span class="pre">snekmate</span></code>, use this structure.</p>
</section>
<section id="contracts-folder">
<h2>Contracts Folder<a class="headerlink" href="#contracts-folder" title="Link to this heading"></a></h2>
<p>Specify a different path to your <code class="docutils literal notranslate"><span class="pre">contracts/</span></code> directory.
Expand Down

0 comments on commit b2aeffa

Please sign in to comment.