Skip to content

Commit 9166e39

Browse files
committed
Deployed 50cd7e6 with MkDocs version: 1.1.2
1 parent 02e8c81 commit 9166e39

7 files changed

Lines changed: 226 additions & 63 deletions

File tree

changelog/index.html

Lines changed: 66 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,26 @@
481481
</label>
482482
<ul class="md-nav__list" data-md-scrollfix>
483483

484+
<li class="md-nav__item">
485+
<a href="#090-2020-09-28" class="md-nav__link">
486+
0.9.0 - 2020-09-28
487+
</a>
488+
489+
<nav class="md-nav" aria-label="0.9.0 - 2020-09-28">
490+
<ul class="md-nav__list">
491+
492+
<li class="md-nav__item">
493+
<a href="#features" class="md-nav__link">
494+
Features
495+
</a>
496+
497+
</li>
498+
499+
</ul>
500+
</nav>
501+
502+
</li>
503+
484504
<li class="md-nav__item">
485505
<a href="#080-2020-09-25" class="md-nav__link">
486506
0.8.0 - 2020-09-25
@@ -490,7 +510,7 @@
490510
<ul class="md-nav__list">
491511

492512
<li class="md-nav__item">
493-
<a href="#features" class="md-nav__link">
513+
<a href="#features_1" class="md-nav__link">
494514
Features
495515
</a>
496516

@@ -517,7 +537,7 @@
517537
</li>
518538

519539
<li class="md-nav__item">
520-
<a href="#features_1" class="md-nav__link">
540+
<a href="#features_2" class="md-nav__link">
521541
Features
522542
</a>
523543

@@ -537,7 +557,7 @@
537557
<ul class="md-nav__list">
538558

539559
<li class="md-nav__item">
540-
<a href="#features_2" class="md-nav__link">
560+
<a href="#features_3" class="md-nav__link">
541561
Features
542562
</a>
543563

@@ -611,7 +631,7 @@
611631
</li>
612632

613633
<li class="md-nav__item">
614-
<a href="#features_3" class="md-nav__link">
634+
<a href="#features_4" class="md-nav__link">
615635
Features
616636
</a>
617637

@@ -645,7 +665,7 @@
645665
</li>
646666

647667
<li class="md-nav__item">
648-
<a href="#features_4" class="md-nav__link">
668+
<a href="#features_5" class="md-nav__link">
649669
Features
650670
</a>
651671

@@ -672,7 +692,7 @@
672692
</li>
673693

674694
<li class="md-nav__item">
675-
<a href="#features_5" class="md-nav__link">
695+
<a href="#features_6" class="md-nav__link">
676696
Features
677697
</a>
678698

@@ -832,6 +852,26 @@
832852
</label>
833853
<ul class="md-nav__list" data-md-scrollfix>
834854

855+
<li class="md-nav__item">
856+
<a href="#090-2020-09-28" class="md-nav__link">
857+
0.9.0 - 2020-09-28
858+
</a>
859+
860+
<nav class="md-nav" aria-label="0.9.0 - 2020-09-28">
861+
<ul class="md-nav__list">
862+
863+
<li class="md-nav__item">
864+
<a href="#features" class="md-nav__link">
865+
Features
866+
</a>
867+
868+
</li>
869+
870+
</ul>
871+
</nav>
872+
873+
</li>
874+
835875
<li class="md-nav__item">
836876
<a href="#080-2020-09-25" class="md-nav__link">
837877
0.8.0 - 2020-09-25
@@ -841,7 +881,7 @@
841881
<ul class="md-nav__list">
842882

843883
<li class="md-nav__item">
844-
<a href="#features" class="md-nav__link">
884+
<a href="#features_1" class="md-nav__link">
845885
Features
846886
</a>
847887

@@ -868,7 +908,7 @@
868908
</li>
869909

870910
<li class="md-nav__item">
871-
<a href="#features_1" class="md-nav__link">
911+
<a href="#features_2" class="md-nav__link">
872912
Features
873913
</a>
874914

@@ -888,7 +928,7 @@
888928
<ul class="md-nav__list">
889929

890930
<li class="md-nav__item">
891-
<a href="#features_2" class="md-nav__link">
931+
<a href="#features_3" class="md-nav__link">
892932
Features
893933
</a>
894934

@@ -962,7 +1002,7 @@
9621002
</li>
9631003

9641004
<li class="md-nav__item">
965-
<a href="#features_3" class="md-nav__link">
1005+
<a href="#features_4" class="md-nav__link">
9661006
Features
9671007
</a>
9681008

@@ -996,7 +1036,7 @@
9961036
</li>
9971037

9981038
<li class="md-nav__item">
999-
<a href="#features_4" class="md-nav__link">
1039+
<a href="#features_5" class="md-nav__link">
10001040
Features
10011041
</a>
10021042

@@ -1023,7 +1063,7 @@
10231063
</li>
10241064

10251065
<li class="md-nav__item">
1026-
<a href="#features_5" class="md-nav__link">
1066+
<a href="#features_6" class="md-nav__link">
10271067
Features
10281068
</a>
10291069

@@ -1167,9 +1207,17 @@ <h1 id="changelog">Changelog<a class="headerlink" href="#changelog" title="Perma
11671207
and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semantic Versioning</a>.</p>
11681208
<!-- insertion marker -->
11691209

1210+
<h2 id="090-2020-09-28"><a href="https://github.com/pawamoy/pytkdocs/releases/tag/0.9.0">0.9.0</a> - 2020-09-28<a class="headerlink" href="#090-2020-09-28" title="Permanent link">¤</a></h2>
1211+
<p><small><a href="https://github.com/pawamoy/pytkdocs/compare/0.8.0...0.9.0">Compare with 0.8.0</a></small></p>
1212+
<h3 id="features">Features<a class="headerlink" href="#features" title="Permanent link">¤</a></h3>
1213+
<ul>
1214+
<li>Add <code>new_path_syntax</code> option (<a href="https://github.com/pawamoy/pytkdocs/commit/a0b677c9bbe62f344dfda05b50d729c4d8e7c36a">a0b677c</a> by Timothée Mazzucotelli).
1215+
See: <a href="https://pawamoy.github.io/pytkdocs/#details-on-new_path_syntax">"Details on <code>new_path_syntax</code>"</a> in the documentation.
1216+
Issue <a href="https://github.com/pawamoy/pytkdocs/issues/66">#66</a>.</li>
1217+
</ul>
11701218
<h2 id="080-2020-09-25"><a href="https://github.com/pawamoy/pytkdocs/releases/tag/0.8.0">0.8.0</a> - 2020-09-25<a class="headerlink" href="#080-2020-09-25" title="Permanent link">¤</a></h2>
11711219
<p><small><a href="https://github.com/pawamoy/pytkdocs/compare/0.7.0...0.8.0">Compare with 0.7.0</a></small></p>
1172-
<h3 id="features">Features<a class="headerlink" href="#features" title="Permanent link">¤</a></h3>
1220+
<h3 id="features_1">Features<a class="headerlink" href="#features_1" title="Permanent link">¤</a></h3>
11731221
<ul>
11741222
<li>Add async property for coroutine functions (<a href="https://github.com/pawamoy/pytkdocs/commit/a013c07f73fce72f73e1267de97d041036106ab5">a013c07</a> by Arthur Pastel). Issue <a href="https://github.com/pawamoy/mkdocstrings/issues/151">pawamoy/mkdocstrings#151</a>, PR <a href="https://github.com/pawamoy/pytkdocs/pull/65">#65</a></li>
11751223
</ul>
@@ -1181,13 +1229,13 @@ <h3 id="bug-fixes">Bug Fixes<a class="headerlink" href="#bug-fixes" title="Perma
11811229
<li>Prevent crash in case of empty dataclasses (<a href="https://github.com/pawamoy/pytkdocs/commit/835c066ac47cdb1203dc3feb9dfc3f96df7109e0">835c066</a> by Jared Khan). PR <a href="https://github.com/pawamoy/pytkdocs/issues/56">#56</a></li>
11821230
<li>Use <code>inspect.cleandoc</code> for stripping docstrings whitespace (<a href="https://github.com/pawamoy/pytkdocs/commit/8009940c43a551a86ca91e0f81b234933d47bd6e">8009940</a> by Jared Khan). Issue <a href="https://github.com/pawamoy/pytkdocs/issues/54">#54</a>, PR <a href="https://github.com/pawamoy/pytkdocs/issues/55">#55</a></li>
11831231
</ul>
1184-
<h3 id="features_1">Features<a class="headerlink" href="#features_1" title="Permanent link">¤</a></h3>
1232+
<h3 id="features_2">Features<a class="headerlink" href="#features_2" title="Permanent link">¤</a></h3>
11851233
<ul>
11861234
<li>Add support for Marshmallow models (<a href="https://github.com/pawamoy/pytkdocs/commit/c250466e219edf24d2f85b7337b5670e6f27a724">c250466</a> by Stu Fisher). References: <a href="https://github.com/pawamoy/pytkdocs/issues/51">#51</a></li>
11871235
</ul>
11881236
<h2 id="060-2020-06-14"><a href="https://github.com/pawamoy/pytkdocs/releases/tag/0.6.0">0.6.0</a> - 2020-06-14<a class="headerlink" href="#060-2020-06-14" title="Permanent link">¤</a></h2>
11891237
<p><small><a href="https://github.com/pawamoy/pytkdocs/compare/0.5.2...0.6.0">Compare with 0.5.2</a></small></p>
1190-
<h3 id="features_2">Features<a class="headerlink" href="#features_2" title="Permanent link">¤</a></h3>
1238+
<h3 id="features_3">Features<a class="headerlink" href="#features_3" title="Permanent link">¤</a></h3>
11911239
<ul>
11921240
<li>Support attributes sections for Google-style docstrings (<a href="https://github.com/pawamoy/pytkdocs/commit/02c0042f9d4d8ab799550418d8474d1a6669feec">02c0042</a> by Timothée Mazzucotelli).</li>
11931241
</ul>
@@ -1217,7 +1265,7 @@ <h3 id="code-refactoring">Code Refactoring<a class="headerlink" href="#code-refa
12171265
<li>Refactor parsers (<a href="https://github.com/pawamoy/pytkdocs/commit/3caefba1dcbd85a0bc2d05948073677c751aa1f3">3caefba</a> by Timothée Mazzucotelli).</li>
12181266
<li>Don't serialize empty error lists in the result (<a href="https://github.com/pawamoy/pytkdocs/commit/7bec6c4aca9d3087bb5fb4e34b2801a58839dd3a">7bec6c4</a> by Timothée Mazzucotelli).</li>
12191267
</ul>
1220-
<h3 id="features_3">Features<a class="headerlink" href="#features_3" title="Permanent link">¤</a></h3>
1268+
<h3 id="features_4">Features<a class="headerlink" href="#features_4" title="Permanent link">¤</a></h3>
12211269
<ul>
12221270
<li>Accept docstring options in JSON input (<a href="https://github.com/pawamoy/pytkdocs/commit/400af0bccb4297c3e872910d13c0b44ca3ce1339">400af0b</a> by Timothée Mazzucotelli).</li>
12231271
<li>Retrieve dataclass fields docstrings (<a href="https://github.com/pawamoy/pytkdocs/commit/09eb224c3c961bdd82640221b888cbe52b9a489e">09eb224</a> by Timothée Mazzucotelli). References: <a href="https://github.com/pawamoy/pytkdocs/issues/31">#31</a></li>
@@ -1239,7 +1287,7 @@ <h3 id="code-refactoring_1">Code Refactoring<a class="headerlink" href="#code-re
12391287
<ul>
12401288
<li>Layout a docstring parser base (<a href="https://github.com/pawamoy/pytkdocs/commit/d427bccbfd619f65ae2d12559fcd6f1f1649d036">d427bcc</a> by Timothée Mazzucotelli).</li>
12411289
</ul>
1242-
<h3 id="features_4">Features<a class="headerlink" href="#features_4" title="Permanent link">¤</a></h3>
1290+
<h3 id="features_5">Features<a class="headerlink" href="#features_5" title="Permanent link">¤</a></h3>
12431291
<ul>
12441292
<li>Add dataclass and pydantic support (<a href="https://github.com/pawamoy/pytkdocs/commit/a172ad88ee3b1735ee4ad0c91f3274c359e1e82e">a172ad8</a> by Shyam Dwaraknath). References: <a href="https://github.com/pawamoy/pytkdocs/issues/9">#9</a>, <a href="https://github.com/pawamoy/pytkdocs/issues/27">#27</a></li>
12451293
</ul>
@@ -1249,7 +1297,7 @@ <h3 id="bug-fixes_5">Bug Fixes<a class="headerlink" href="#bug-fixes_5" title="P
12491297
<ul>
12501298
<li>Fix parsing of <code>*args</code> and <code>**kwargs</code> (<a href="https://github.com/pawamoy/pytkdocs/commit/b81c93eef2435f2ed1d70b4d7c3946caa564c59e">b81c93e</a> by adrienhenry). Related issues/PRs: <a href="https://github.com/pawamoy/pytkdocs/issues/20">#20</a>, <a href="https://github.com/pawamoy/pytkdocs/issues/21">#21</a></li>
12511299
</ul>
1252-
<h3 id="features_5">Features<a class="headerlink" href="#features_5" title="Permanent link">¤</a></h3>
1300+
<h3 id="features_6">Features<a class="headerlink" href="#features_6" title="Permanent link">¤</a></h3>
12531301
<ul>
12541302
<li>Support different indentations and complex markup in docstrings sections (<a href="https://github.com/pawamoy/pytkdocs/commit/2f53082dbd2bcb72423d4aff0cb3bf4319476be7">2f53082</a> by Timothée Mazzucotelli). Related issues/PRs: <a href="https://github.com/pawamoy/pytkdocs/issues/17">#17</a></li>
12551303
</ul>

index.html

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,19 @@
256256
Configuration
257257
</a>
258258

259+
<nav class="md-nav" aria-label="Configuration">
260+
<ul class="md-nav__list">
261+
262+
<li class="md-nav__item">
263+
<a href="#details-on-new_path_syntax" class="md-nav__link">
264+
Details on new_path_syntax
265+
</a>
266+
267+
</li>
268+
269+
</ul>
270+
</nav>
271+
259272
</li>
260273

261274
</ul>
@@ -591,6 +604,19 @@
591604
Configuration
592605
</a>
593606

607+
<nav class="md-nav" aria-label="Configuration">
608+
<ul class="md-nav__list">
609+
610+
<li class="md-nav__item">
611+
<a href="#details-on-new_path_syntax" class="md-nav__link">
612+
Details on new_path_syntax
613+
</a>
614+
615+
</li>
616+
617+
</ul>
618+
</nav>
619+
594620
</li>
595621

596622
</ul>
@@ -655,6 +681,7 @@ <h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">
655681
<span class="nt">&quot;objects&quot;</span><span class="p">:</span> <span class="p">[</span>
656682
<span class="p">{</span>
657683
<span class="nt">&quot;path&quot;</span><span class="p">:</span> <span class="s2">&quot;pytkdocs&quot;</span><span class="p">,</span>
684+
<span class="nt">&quot;new_path_syntax&quot;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
658685
<span class="nt">&quot;members&quot;</span><span class="p">:</span> <span class="kc">true</span><span class="p">,</span>
659686
<span class="nt">&quot;inherited_members&quot;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
660687
<span class="nt">&quot;filters&quot;</span><span class="p">:</span> <span class="p">[</span>
@@ -759,6 +786,10 @@ <h2 id="configuration">Configuration<a class="headerlink" href="#configuration"
759786
<p>The configuration options available are:</p>
760787
<ul>
761788
<li>
789+
<p><code>new_path_syntax</code>: when set to true, this option forces the use of the new object path syntax,
790+
which uses a colon (<code>:</code>) to delimit modules from other objects.</p>
791+
</li>
792+
<li>
762793
<p><code>filters</code>: filters are regular expressions that allow to select or un-select objects based on their name.
763794
They are applied recursively (on every child of every object).
764795
If the expression starts with an exclamation mark,
@@ -778,6 +809,9 @@ <h2 id="configuration">Configuration<a class="headerlink" href="#configuration"
778809
If it's a list of names, select only those members, and apply filters on their children only.</p>
779810
</li>
780811
<li>
812+
<p><code>inherited_members</code>: true or false (default). When enabled, inherited members will be selected as well.</p>
813+
</li>
814+
<li>
781815
<p><code>docstring_style</code>: the docstring style to use when parsing the docstring. Only one parser available: <code>google</code>.</p>
782816
</li>
783817
<li>
@@ -788,10 +822,44 @@ <h2 id="configuration">Configuration<a class="headerlink" href="#configuration"
788822
<code>AdmonitionType: Title</code> will become <code>!!! admonitiontype "Title"</code>.</li>
789823
</ul>
790824
</li>
791-
<li>
792-
<p><code>inherited_members</code>: true or false (default). When enabled, inherited members will be selected as well.</p>
793-
</li>
794825
</ul>
826+
<h3 id="details-on-new_path_syntax">Details on <code>new_path_syntax</code><a class="headerlink" href="#details-on-new_path_syntax" title="Permanent link">¤</a></h3>
827+
<p>Example:</p>
828+
<table>
829+
<tr>
830+
<td>New syntax</td>
831+
<td><code>package.module:Class.attribute</code></td>
832+
</tr>
833+
<tr>
834+
<td>Old syntax</td>
835+
<td><code>package.module.Class.attribute</code></td>
836+
</tr>
837+
</table>
838+
839+
<ul>
840+
<li>If there is a colon is an object's path, <code>pytkdocs</code> splits the path accordingly,
841+
regardless of the value of <code>new_path_syntax</code>.</li>
842+
<li>If there isn't a colon, and <code>new_path_syntax</code> is false, <code>pytkdocs</code> uses the
843+
old importing behavior.</li>
844+
<li>If there isn't a colon, and <code>new_path_syntax</code> is true, <code>pytkdocs</code> uses the new
845+
importing behavior and therefore considers that the path points to a module.</li>
846+
</ul>
847+
<div class="admonition warning">
848+
<p class="admonition-title">The <code>new_path_syntax</code> option is temporary.</p>
849+
<p>It exists only to ease the transition to the new path syntax.</p>
850+
<p>Here is an idea of its life time:</p>
851+
<ul>
852+
<li><strong>version 0.9:</strong> the default value for <code>new_path_syntax</code> is false.
853+
A pending deprecation warning is emmitted to tell users to switch to the new path syntax.</li>
854+
<li><strong>once version 0.10 is published:</strong> <a href="https://github.com/pawamoy/mkdocstrings"><code>mkdocstrings</code></a>
855+
will log an MkDocs warning, making the builds fail
856+
when <code>new_path_syntax</code> is false and strict mode is enabled.</li>
857+
<li><strong>version 0.11:</strong> the default value for <code>new_path_syntax</code> becomes true,
858+
and the warning becomes a deprecation warning.</li>
859+
<li><strong>version 0.13:</strong> the <code>new_path_syntax</code> option is removed.</li>
860+
</ul>
861+
<p>Please update your paths to use the new colon syntax as soon as possible.</p>
862+
</div>
795863

796864

797865

reference/cli/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ <h2 class="doc doc-heading" id="pytkdocs.cli.discarded_stdout">
376376
<p>Discard standard output.</p>
377377
<div class="admonition yields">
378378
<p class="admonition-title">Yields</p>
379-
<p>Nothing: we only yield to act as a context manager.</p>
379+
<p>Nothing: We only yield to act as a context manager.</p>
380380
</div>
381381
<details class="quote">
382382
<summary>Source code in <code>pytkdocs/cli.py</code></summary>
@@ -387,7 +387,7 @@ <h2 class="doc doc-heading" id="pytkdocs.cli.discarded_stdout">
387387
<span class="sd"> Discard standard output.</span>
388388

389389
<span class="sd"> Yields:</span>
390-
<span class="sd"> Nothing: we only yield to act as a context manager.</span>
390+
<span class="sd"> Nothing: We only yield to act as a context manager.</span>
391391
<span class="sd"> """</span>
392392
<span class="c1"># Discard things printed at import time to avoid corrupting our JSON output</span>
393393
<span class="c1"># See https://github.com/pawamoy/pytkdocs/issues/24</span>

0 commit comments

Comments
 (0)