Skip to content
Permalink
Browse files

Fix duplicates in generated documentation for `uses/2` relations

  • Loading branch information...
pmoura committed Jun 12, 2019
1 parent 044f8a0 commit e0c26f6fef50a2fb479cd0b264ed887510021bfa
@@ -21,11 +21,10 @@ Predicates for generating directory dependency diagrams. A dependency exists whe
| **Imports:**
| ``public`` :ref:`directory_diagram(Format) <directory_diagram/1>`
| **Uses:**
| :ref:`file_dependency_diagram(Format) <file_dependency_diagram/1>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
| :ref:`modules_diagram_support <modules_diagram_support/0>`
| :ref:`file_dependency_diagram(Format) <file_dependency_diagram/1>`
| :ref:`file_dependency_diagram(Format) <file_dependency_diagram/1>`

| **Remarks:**
| (none)
@@ -21,11 +21,10 @@ Predicates for generating directory loading dependency diagrams.
| **Imports:**
| ``public`` :ref:`directory_diagram(Format) <directory_diagram/1>`
| **Uses:**
| :ref:`file_load_diagram(Format) <file_load_diagram/1>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
| :ref:`modules_diagram_support <modules_diagram_support/0>`
| :ref:`file_load_diagram(Format) <file_load_diagram/1>`
| :ref:`file_load_diagram(Format) <file_load_diagram/1>`

| **Remarks:**
| (none)
@@ -25,15 +25,9 @@ Types and predicates for extended type-checking of expected term references and
| :ref:`arbitrary::arbitrary/2 <arbitrary/0::arbitrary/2>`
| **Uses:**
| :ref:`expected <expected/0>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`random <random/0>`
| :ref:`type <type/0>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`expected(Reference) <expected/1>`
| :ref:`expected(Reference) <expected/1>`

| **Remarks:**

@@ -17,4 +17,4 @@ Indices and tables
* :ref:`genindex`
* :ref:`search`

Generated on Tue Jun 11 18:16:34 WEST 2019
Generated on Wed Jun 12 16:59:45 WEST 2019
@@ -11,8 +11,8 @@
Documenting tool. Generates XML documenting files for loaded entities and for library, directory, entity, and predicate indexes.

| **Author:** Paulo Moura
| **Version:** 4.14
| **Date:** 2019/5/7
| **Version:** 4.15
| **Date:** 2019/6/12

| **Compilation flags:**
| ``static, context_switching_calls``
@@ -22,10 +22,10 @@ Predicates for generating library dependency diagrams. A dependency exists when
| ``public`` :ref:`library_diagram(Format) <library_diagram/1>`
| **Uses:**
| :ref:`entity_diagram <entity_diagram/0>`
| :ref:`entity_diagram(Format) <entity_diagram/1>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
| :ref:`modules_diagram_support <modules_diagram_support/0>`
| :ref:`entity_diagram(Format) <entity_diagram/1>`

| **Remarks:**
| (none)
@@ -22,10 +22,10 @@ Predicates for generating library loading dependency diagrams.
| ``public`` :ref:`library_diagram(Format) <library_diagram/1>`
| **Uses:**
| :ref:`entity_diagram <entity_diagram/0>`
| :ref:`entity_diagram(Format) <entity_diagram/1>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
| :ref:`modules_diagram_support <modules_diagram_support/0>`
| :ref:`entity_diagram(Format) <entity_diagram/1>`

| **Remarks:**
| (none)
@@ -25,10 +25,9 @@ Types and predicates for type-checking and handling optional term references. In
| :ref:`arbitrary::arbitrary/2 <arbitrary/0::arbitrary/2>`
| **Uses:**
| :ref:`optional <optional/0>`
| :ref:`optional(Reference) <optional/1>`
| :ref:`random <random/0>`
| :ref:`type <type/0>`
| :ref:`optional(Reference) <optional/1>`
| :ref:`optional(Reference) <optional/1>`

| **Remarks:**

@@ -285,11 +285,10 @@ <h1><code class="docutils literal notranslate"><span class="pre">directory_depen
</div>
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="file_dependency_diagram_1.html#file-dependency-diagram-1"><span class="std std-ref">file_dependency_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="list_0.html#list-0"><span class="std std-ref">list</span></a></div>
<div class="line"><a class="reference internal" href="logtalk_0.html#logtalk-0"><span class="std std-ref">logtalk</span></a></div>
<div class="line"><a class="reference internal" href="modules_diagram_support_0.html#modules-diagram-support-0"><span class="std std-ref">modules_diagram_support</span></a></div>
<div class="line"><a class="reference internal" href="file_dependency_diagram_1.html#file-dependency-diagram-1"><span class="std std-ref">file_dependency_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="file_dependency_diagram_1.html#file-dependency-diagram-1"><span class="std std-ref">file_dependency_diagram(Format)</span></a></div>
</div>
</div>
<div class="line-block">
@@ -285,11 +285,10 @@ <h1><code class="docutils literal notranslate"><span class="pre">directory_load_
</div>
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="file_load_diagram_1.html#file-load-diagram-1"><span class="std std-ref">file_load_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="list_0.html#list-0"><span class="std std-ref">list</span></a></div>
<div class="line"><a class="reference internal" href="logtalk_0.html#logtalk-0"><span class="std std-ref">logtalk</span></a></div>
<div class="line"><a class="reference internal" href="modules_diagram_support_0.html#modules-diagram-support-0"><span class="std std-ref">modules_diagram_support</span></a></div>
<div class="line"><a class="reference internal" href="file_load_diagram_1.html#file-load-diagram-1"><span class="std std-ref">file_load_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="file_load_diagram_1.html#file-load-diagram-1"><span class="std std-ref">file_load_diagram(Format)</span></a></div>
</div>
</div>
<div class="line-block">
@@ -262,15 +262,9 @@ <h1><code class="docutils literal notranslate"><span class="pre">either</span></
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="expected_0.html#expected-0"><span class="std std-ref">expected</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="random_0.html#random-0"><span class="std std-ref">random</span></a></div>
<div class="line"><a class="reference internal" href="type_0.html#type-0"><span class="std std-ref">type</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="expected_1.html#expected-1"><span class="std std-ref">expected(Reference)</span></a></div>
</div>
</div>
<div class="line-block">
@@ -3070,7 +3070,7 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
</ul>
<p>Generated on Tue Jun 11 18:16:34 WEST 2019</p>
<p>Generated on Wed Jun 12 16:59:45 WEST 2019</p>
</div>


@@ -241,8 +241,8 @@ <h1><code class="docutils literal notranslate"><span class="pre">lgtdoc</span></
<p>Documenting tool. Generates XML documenting files for loaded entities and for library, directory, entity, and predicate indexes.</p>
<div class="line-block">
<div class="line"><strong>Author:</strong> Paulo Moura</div>
<div class="line"><strong>Version:</strong> 4.14</div>
<div class="line"><strong>Date:</strong> 2019/5/7</div>
<div class="line"><strong>Version:</strong> 4.15</div>
<div class="line"><strong>Date:</strong> 2019/6/12</div>
</div>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
@@ -286,10 +286,10 @@ <h1><code class="docutils literal notranslate"><span class="pre">library_depende
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="entity_diagram_0.html#entity-diagram-0"><span class="std std-ref">entity_diagram</span></a></div>
<div class="line"><a class="reference internal" href="entity_diagram_1.html#entity-diagram-1"><span class="std std-ref">entity_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="list_0.html#list-0"><span class="std std-ref">list</span></a></div>
<div class="line"><a class="reference internal" href="logtalk_0.html#logtalk-0"><span class="std std-ref">logtalk</span></a></div>
<div class="line"><a class="reference internal" href="modules_diagram_support_0.html#modules-diagram-support-0"><span class="std std-ref">modules_diagram_support</span></a></div>
<div class="line"><a class="reference internal" href="entity_diagram_1.html#entity-diagram-1"><span class="std std-ref">entity_diagram(Format)</span></a></div>
</div>
</div>
<div class="line-block">
@@ -286,10 +286,10 @@ <h1><code class="docutils literal notranslate"><span class="pre">library_load_di
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="entity_diagram_0.html#entity-diagram-0"><span class="std std-ref">entity_diagram</span></a></div>
<div class="line"><a class="reference internal" href="entity_diagram_1.html#entity-diagram-1"><span class="std std-ref">entity_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="list_0.html#list-0"><span class="std std-ref">list</span></a></div>
<div class="line"><a class="reference internal" href="logtalk_0.html#logtalk-0"><span class="std std-ref">logtalk</span></a></div>
<div class="line"><a class="reference internal" href="modules_diagram_support_0.html#modules-diagram-support-0"><span class="std std-ref">modules_diagram_support</span></a></div>
<div class="line"><a class="reference internal" href="entity_diagram_1.html#entity-diagram-1"><span class="std std-ref">entity_diagram(Format)</span></a></div>
</div>
</div>
<div class="line-block">
@@ -262,10 +262,9 @@ <h1><code class="docutils literal notranslate"><span class="pre">maybe</span></c
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="optional_0.html#optional-0"><span class="std std-ref">optional</span></a></div>
<div class="line"><a class="reference internal" href="optional_1.html#optional-1"><span class="std std-ref">optional(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="random_0.html#random-0"><span class="std std-ref">random</span></a></div>
<div class="line"><a class="reference internal" href="type_0.html#type-0"><span class="std std-ref">type</span></a></div>
<div class="line"><a class="reference internal" href="optional_1.html#optional-1"><span class="std std-ref">optional(Reference)</span></a></div>
<div class="line"><a class="reference internal" href="optional_1.html#optional-1"><span class="std std-ref">optional(Reference)</span></a></div>
</div>
</div>
<div class="line-block">

Large diffs are not rendered by default.

@@ -22,9 +22,9 @@
implements(lgtdocp)).

:- info([
version is 4.14,
version is 4.15,
author is 'Paulo Moura',
date is 2019/05/07,
date is 2019/06/12,
comment is 'Documenting tool. Generates XML documenting files for loaded entities and for library, directory, entity, and predicate indexes.'
]).

@@ -1005,9 +1005,17 @@
),
fail.
write_xml_object_relations(Stream, Entity) :-
findall(Other, (object_property(Entity, calls(Other::_, _)), nonvar(Other)), Others0),
sort(Others0, Others),
member(Object, Others),
findall(
Name/Arity,
( object_property(Entity, calls(Other::_, _)),
nonvar(Other),
functor(Other, Name, Arity)
),
Functors
),
sort(Functors, UniqueFunctors),
member(Name/Arity, UniqueFunctors),
functor(Object, Name, Arity),
write_xml_uses_relation(Stream, Object),
fail.
write_xml_object_relations(_, _).
@@ -1039,9 +1047,17 @@
),
fail.
write_xml_category_relations(Stream, Entity) :-
findall(Other, (category_property(Entity, calls(Other::_, _)), nonvar(Other)), Others0),
sort(Others0, Others),
member(Object, Others),
findall(
Name/Arity,
( category_property(Entity, calls(Other::_, _)),
nonvar(Other),
functor(Other, Name, Arity)
),
Functors
),
sort(Functors, UniqueFunctors),
member(Name/Arity, UniqueFunctors),
functor(Object, Name, Arity),
write_xml_uses_relation(Stream, Object),
fail.
write_xml_category_relations(_, _).

0 comments on commit e0c26f6

Please sign in to comment.
You can’t perform that action at this time.