Skip to content

Commit 32518a7

Browse files
author
vektra-bot
committed
Deployed de91ba4 to v3.0 with MkDocs 1.6.1 and mike 2.2.0.dev0
1 parent f6fab1d commit 32518a7

File tree

15 files changed

+232
-146
lines changed

15 files changed

+232
-146
lines changed

v3.0/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@
760760

761761

762762
<span class="md-typeset">
763-
v3 Release
763+
v3 Migration
764764
</span>
765765

766766

v3.0/assets/images/social/v3.png

1.55 KB
Loading

v3.0/configuration/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@
925925

926926

927927
<span class="md-typeset">
928-
v3 Release
928+
v3 Migration
929929
</span>
930930

931931

@@ -1189,11 +1189,6 @@ <h2 id="mockery-init"><code>mockery init</code><a class="headerlink" href="#mock
11891189
<li>The style of mock to be generated is specified using the <a href="../template/"><code>template</code></a> parameter.</li>
11901190
</ol>
11911191
</details>
1192-
<p>As you can see, configuration parameters are hierarchal such that:</p>
1193-
<ul>
1194-
<li>Interface-level config overrides package-level config.</li>
1195-
<li>Package-level config overrides top-level config.</li>
1196-
</ul>
11971192
<h2 id="parameter-descriptions">Parameter Descriptions<a class="headerlink" href="#parameter-descriptions" title="Permanent link">&para;</a></h2>
11981193
<table>
11991194
<thead>
@@ -1321,6 +1316,10 @@ <h2 id="parameter-descriptions">Parameter Descriptions<a class="headerlink" href
13211316
</tr>
13221317
</tbody>
13231318
</table>
1319+
<div class="admonition tip">
1320+
<p class="admonition-title"><code>pkg.go.dev</code></p>
1321+
<p>The full schema definition can be viewed at our <a href="https://pkg.go.dev/github.com/vektra/mockery/v3/config#RootConfig">pkg.go.dev</a> site.</p>
1322+
</div>
13241323
<h2 id="templates">Templates<a class="headerlink" href="#templates" title="Permanent link">&para;</a></h2>
13251324
<p>Parameters marked as being templated have access to a number of template variables and functions through the Go <a href="https://pkg.go.dev/text/template#hdr-Examples"><code>text/template</code></a> system.</p>
13261325
<h3 id="variables">Variables<a class="headerlink" href="#variables" title="Permanent link">&para;</a></h3>

v3.0/faq/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@
906906

907907

908908
<span class="md-typeset">
909-
v3 Release
909+
v3 Migration
910910
</span>
911911

912912

v3.0/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@
876876

877877

878878
<span class="md-typeset">
879-
v3 Release
879+
v3 Migration
880880
</span>
881881

882882

v3.0/installation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@
912912

913913

914914
<span class="md-typeset">
915-
v3 Release
915+
v3 Migration
916916
</span>
917917

918918

v3.0/replace-type/index.html

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,38 @@
735735
</span>
736736
</a>
737737

738+
<nav class="md-nav" aria-label="Description">
739+
<ul class="md-nav__list">
740+
741+
<li class="md-nav__item">
742+
<a href="#schema" class="md-nav__link">
743+
<span class="md-ellipsis">
744+
745+
<span class="md-typeset">
746+
Schema
747+
</span>
748+
749+
</span>
750+
</a>
751+
752+
</li>
753+
754+
<li class="md-nav__item">
755+
<a href="#result" class="md-nav__link">
756+
<span class="md-ellipsis">
757+
758+
<span class="md-typeset">
759+
Result
760+
</span>
761+
762+
</span>
763+
</a>
764+
765+
</li>
766+
767+
</ul>
768+
</nav>
769+
738770
</li>
739771

740772
<li class="md-nav__item">
@@ -863,7 +895,7 @@
863895

864896

865897
<span class="md-typeset">
866-
v3 Release
898+
v3 Migration
867899
</span>
868900

869901

@@ -920,6 +952,38 @@
920952
</span>
921953
</a>
922954

955+
<nav class="md-nav" aria-label="Description">
956+
<ul class="md-nav__list">
957+
958+
<li class="md-nav__item">
959+
<a href="#schema" class="md-nav__link">
960+
<span class="md-ellipsis">
961+
962+
<span class="md-typeset">
963+
Schema
964+
</span>
965+
966+
</span>
967+
</a>
968+
969+
</li>
970+
971+
<li class="md-nav__item">
972+
<a href="#result" class="md-nav__link">
973+
<span class="md-ellipsis">
974+
975+
<span class="md-typeset">
976+
Result
977+
</span>
978+
979+
</span>
980+
</a>
981+
982+
</li>
983+
984+
</ul>
985+
</nav>
986+
923987
</li>
924988

925989
<li class="md-nav__item">
@@ -984,12 +1048,14 @@ <h2 id="description">Description<a class="headerlink" href="#description" title=
9841048
<a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a><span class="p">}</span>
9851049
</code></pre></div>
9861050
<p>You can selectively replace the <code>rt1.RType1</code> with a new type if so desired. For example:</p>
1051+
<h3 id="schema">Schema<a class="headerlink" href="#schema" title="Permanent link">&para;</a></h3>
9871052
<div class="highlight"><span class="filename">.mockery.yml</span><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="nt">replace-type</span><span class="p">:</span>
9881053
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="w"> </span><span class="nt">github.com/vektra/mockery/v3/internal/fixtures/example_project/replace_type/rti/rt1</span><span class="p">:</span>
9891054
<a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><span class="w"> </span><span class="nt">RType1</span><span class="p">:</span>
9901055
<a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="w"> </span><span class="nt">pkg-path</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">github.com/vektra/mockery/v3/internal/fixtures/example_project/replace_type/rti/rt2</span>
9911056
<a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a><span class="w"> </span><span class="nt">type-name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">RType2</span>
9921057
</code></pre></div>
1058+
<h3 id="result">Result<a class="headerlink" href="#result" title="Permanent link">&para;</a></h3>
9931059
<p>The mock will now replace all instances of <code>rt1.RType1</code> with <code>rt2.RType2</code>. You can see the before and after of <code>mockery</code>-style mocks:</p>
9941060
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">before</label><label for="__tabbed_1_2">after</label></div>
9951061
<div class="tabbed-content">

v3.0/running/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@
805805

806806

807807
<span class="md-typeset">
808-
v3 Release
808+
v3 Migration
809809
</span>
810810

811811

v3.0/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

v3.0/sitemap.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://vektra.github.io/mockery/latest/</loc>
5-
<lastmod>2025-03-17</lastmod>
5+
<lastmod>2025-03-28</lastmod>
66
</url>
77
<url>
88
<loc>https://vektra.github.io/mockery/latest/configuration/</loc>
9-
<lastmod>2025-03-17</lastmod>
9+
<lastmod>2025-03-28</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://vektra.github.io/mockery/latest/faq/</loc>
13-
<lastmod>2025-03-17</lastmod>
13+
<lastmod>2025-03-28</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://vektra.github.io/mockery/latest/installation/</loc>
17-
<lastmod>2025-03-17</lastmod>
17+
<lastmod>2025-03-28</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://vektra.github.io/mockery/latest/replace-type/</loc>
21-
<lastmod>2025-03-17</lastmod>
21+
<lastmod>2025-03-28</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://vektra.github.io/mockery/latest/running/</loc>
25-
<lastmod>2025-03-17</lastmod>
25+
<lastmod>2025-03-28</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://vektra.github.io/mockery/latest/v3/</loc>
29-
<lastmod>2025-03-17</lastmod>
29+
<lastmod>2025-03-28</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://vektra.github.io/mockery/latest/template/</loc>
33-
<lastmod>2025-03-17</lastmod>
33+
<lastmod>2025-03-28</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://vektra.github.io/mockery/latest/template/matryer/</loc>
37-
<lastmod>2025-03-17</lastmod>
37+
<lastmod>2025-03-28</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://vektra.github.io/mockery/latest/template/testify/</loc>
41-
<lastmod>2025-03-17</lastmod>
41+
<lastmod>2025-03-28</lastmod>
4242
</url>
4343
</urlset>

0 commit comments

Comments
 (0)