From 66f4d32f74d2bead5cac188ed6573434917eccb4 Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Thu, 8 Feb 2024 16:11:48 +0000 Subject: [PATCH 1/9] Update style for bibliography sections --- preview-src/algorithms.adoc | 12 ++++++++++++ src/css/neo4j-docs.css | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/preview-src/algorithms.adoc b/preview-src/algorithms.adoc index 73af931d..336108a7 100644 --- a/preview-src/algorithms.adoc +++ b/preview-src/algorithms.adoc @@ -20,3 +20,15 @@ [[undirected]]Undirected:: xref:introduction.adoc#introduction-algorithms-undirected[Undirected trait]. The algorithm is well-defined on an undirected graph. [[homogeneous]]Homogeneous:: xref:introduction.adoc#introduction-algorithms-homogeneous[Homogeneous trait]. The algorithm will treat all nodes and relationships in its input graph(s) similarly, as if they were all of the same type. If multiple types of nodes or relationships exist in the graph, this must be taken into account when analysing the results of the algorithm. + +== Algorithm + +Work started in <> and <>. +Continued in <>. + +[bibliography] +== References + +* [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. +* [[[Brandes2007, 2]]] Brandes, Ulrik, and Christian Pich. "Centrality estimation in large networks." _International Journal of Bifurcation and Chaos_ 17, no. 07 (2007): 2303-2318. link:https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/BrPi07.pdf[]. +* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. \ No newline at end of file diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index 38054c6e..8a5f6192 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -417,3 +417,13 @@ div.beta-symbol p::before { background-color: var(--warning-background-color); color: var(--warning-color); } + +ul.bibliography { + list-style-type: none; + padding: 0; +} + +ul.bibliography > li > p > a { + list-style-type: none; + padding: 0; +} \ No newline at end of file From d18afe4415250a8902a33b25ea9b925f818a0b67 Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Thu, 8 Feb 2024 16:17:40 +0000 Subject: [PATCH 2/9] Add newline to CSS file --- src/css/neo4j-docs.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index 8a5f6192..5a43cc8b 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -426,4 +426,4 @@ ul.bibliography { ul.bibliography > li > p > a { list-style-type: none; padding: 0; -} \ No newline at end of file +} From 1b881fd96d0966c9645e7775e61387d5f0de2895 Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Thu, 8 Feb 2024 16:33:44 +0000 Subject: [PATCH 3/9] Remove spurious CSS selector --- src/css/neo4j-docs.css | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index 5a43cc8b..627f4e14 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -422,8 +422,3 @@ ul.bibliography { list-style-type: none; padding: 0; } - -ul.bibliography > li > p > a { - list-style-type: none; - padding: 0; -} From 548df2017922f3d56b01f6921a965e8f6ea60d0b Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Thu, 8 Feb 2024 19:25:34 +0000 Subject: [PATCH 4/9] Add no-bullets role --- preview-src/algorithms.adoc | 10 ++++++++-- src/css/neo4j-docs.css | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/preview-src/algorithms.adoc b/preview-src/algorithms.adoc index 336108a7..95983e24 100644 --- a/preview-src/algorithms.adoc +++ b/preview-src/algorithms.adoc @@ -27,8 +27,14 @@ Work started in <> and <>. Continued in <>. [bibliography] -== References +== References (default) * [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. -* [[[Brandes2007, 2]]] Brandes, Ulrik, and Christian Pich. "Centrality estimation in large networks." _International Journal of Bifurcation and Chaos_ 17, no. 07 (2007): 2303-2318. link:https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/BrPi07.pdf[]. +* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. + +[bibliography] +== References (`no-bullets`) + +[.no-bullets] +* [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. * [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. \ No newline at end of file diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index 627f4e14..7dd5fe2a 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -418,7 +418,7 @@ div.beta-symbol p::before { color: var(--warning-color); } -ul.bibliography { +.no-bullets > ul.bibliography { list-style-type: none; padding: 0; } From db1e5c85dfb2366a370f44840ead7eed68d23447 Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Thu, 8 Feb 2024 19:40:20 +0000 Subject: [PATCH 5/9] Change role name --- preview-src/algorithms.adoc | 2 +- src/css/neo4j-docs.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/preview-src/algorithms.adoc b/preview-src/algorithms.adoc index 95983e24..af01d4b2 100644 --- a/preview-src/algorithms.adoc +++ b/preview-src/algorithms.adoc @@ -35,6 +35,6 @@ Continued in <>. [bibliography] == References (`no-bullets`) -[.no-bullets] +[.no-marker] * [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. * [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. \ No newline at end of file diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index 7dd5fe2a..325af04f 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -418,7 +418,7 @@ div.beta-symbol p::before { color: var(--warning-color); } -.no-bullets > ul.bibliography { +.no-marker > ul.bibliography { list-style-type: none; padding: 0; } From 381a958cdd900f3c342171a10ff695e627520bd4 Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Fri, 9 Feb 2024 10:35:52 +0000 Subject: [PATCH 6/9] Add new roles to style bibliography --- src/css/neo4j-docs.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index 325af04f..c94a08fc 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -418,7 +418,11 @@ div.beta-symbol p::before { color: var(--warning-color); } -.no-marker > ul.bibliography { +.no-bullet > ul.bibliography { list-style-type: none; - padding: 0; +} + +.unstyled > ul.bibliography { + list-style-type: none; + padding-left: 0; } From 93af6a996beae33f97baebd99858e6dae1be0aba Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Fri, 9 Feb 2024 10:36:20 +0000 Subject: [PATCH 7/9] Move bibliography examples to dedicated page --- preview-src/algorithms.adoc | 18 ------------------ preview-src/bibliography.adoc | 16 ++++++++++++++++ preview-src/ui-model.yml | 3 +++ 3 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 preview-src/bibliography.adoc diff --git a/preview-src/algorithms.adoc b/preview-src/algorithms.adoc index af01d4b2..73af931d 100644 --- a/preview-src/algorithms.adoc +++ b/preview-src/algorithms.adoc @@ -20,21 +20,3 @@ [[undirected]]Undirected:: xref:introduction.adoc#introduction-algorithms-undirected[Undirected trait]. The algorithm is well-defined on an undirected graph. [[homogeneous]]Homogeneous:: xref:introduction.adoc#introduction-algorithms-homogeneous[Homogeneous trait]. The algorithm will treat all nodes and relationships in its input graph(s) similarly, as if they were all of the same type. If multiple types of nodes or relationships exist in the graph, this must be taken into account when analysing the results of the algorithm. - -== Algorithm - -Work started in <> and <>. -Continued in <>. - -[bibliography] -== References (default) - -* [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. -* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. - -[bibliography] -== References (`no-bullets`) - -[.no-marker] -* [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. -* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. \ No newline at end of file diff --git a/preview-src/bibliography.adoc b/preview-src/bibliography.adoc new file mode 100644 index 00000000..506d0e12 --- /dev/null +++ b/preview-src/bibliography.adoc @@ -0,0 +1,16 @@ += Use of `bibliography` + +Citations with xreftext: <>, <>. + +Citations without xreftext (ID only): <>. + +[bibliography] +== References + +* [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. + +[.no-bullet] +* [[[Brandes2007, 2]]] Brandes, Ulrik, and Christian Pich. "Centrality estimation in large networks." _International Journal of Bifurcation and Chaos_ 17, no. 07 (2007): 2303-2318. link:https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/BrPi07.pdf[]. + +[.unstyled] +* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. diff --git a/preview-src/ui-model.yml b/preview-src/ui-model.yml index 8041a596..c3c1d5be 100644 --- a/preview-src/ui-model.yml +++ b/preview-src/ui-model.yml @@ -208,6 +208,9 @@ page: - content: Algorithms url: algorithms.html urlType: internal + - content: Bibliography + url: bibliography.html + urlType: internal - content: Private Page url: private-page.html urlType: internal From 21bc5ea7a6e3c5157316e98369fbfba7c9e493ce Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Fri, 9 Feb 2024 15:47:38 +0000 Subject: [PATCH 8/9] Add default styling for bibliography --- preview-src/bibliography.adoc | 4 ---- src/css/neo4j-docs.css | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/preview-src/bibliography.adoc b/preview-src/bibliography.adoc index 506d0e12..2046d47a 100644 --- a/preview-src/bibliography.adoc +++ b/preview-src/bibliography.adoc @@ -8,9 +8,5 @@ Citations without xreftext (ID only): <>. == References * [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. - -[.no-bullet] * [[[Brandes2007, 2]]] Brandes, Ulrik, and Christian Pich. "Centrality estimation in large networks." _International Journal of Bifurcation and Chaos_ 17, no. 07 (2007): 2303-2318. link:https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/BrPi07.pdf[]. - -[.unstyled] * [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. diff --git a/src/css/neo4j-docs.css b/src/css/neo4j-docs.css index c94a08fc..2ff85fe4 100644 --- a/src/css/neo4j-docs.css +++ b/src/css/neo4j-docs.css @@ -418,11 +418,7 @@ div.beta-symbol p::before { color: var(--warning-color); } -.no-bullet > ul.bibliography { - list-style-type: none; -} - -.unstyled > ul.bibliography { +ul.bibliography { list-style-type: none; padding-left: 0; } From 8c9f4ad5c7003484c55b57e48ed5dfd0c6e8787a Mon Sep 17 00:00:00 2001 From: Nicola Vitucci Date: Fri, 9 Feb 2024 15:51:44 +0000 Subject: [PATCH 9/9] Remove link --- preview-src/bibliography.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preview-src/bibliography.adoc b/preview-src/bibliography.adoc index 2046d47a..8a2b9a88 100644 --- a/preview-src/bibliography.adoc +++ b/preview-src/bibliography.adoc @@ -9,4 +9,4 @@ Citations without xreftext (ID only): <>. * [[[Brandes2001, 1]]] Brandes, Ulrik. "A faster algorithm for betweenness centrality." _Journal of mathematical sociology_ 25, no. 2 (2001): 163-177. link:https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf[]. * [[[Brandes2007, 2]]] Brandes, Ulrik, and Christian Pich. "Centrality estimation in large networks." _International Journal of Bifurcation and Chaos_ 17, no. 07 (2007): 2303-2318. link:https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/BrPi07.pdf[]. -* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41. link:http://moreno.ss.uci.edu/23.pdf[]. +* [[[Freeman1977]]] Freeman, Linton C. "A set of measures of centrality based on betweenness." _Sociometry_ (1977): 35-41.