Skip to content

Commit e2729f0

Browse files
authored
Merge pull request #124 from kayjan/highlight-text
Documentation enhancement to highlight code blocks
2 parents 276182b + d77a9d4 commit e2729f0

File tree

12 files changed

+124
-65
lines changed

12 files changed

+124
-65
lines changed

README.md

Lines changed: 99 additions & 51 deletions
Large diffs are not rendered by default.

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
autodocsumm==0.2.9
1+
autodocsumm==0.2.11
22
karma-sphinx-theme==0.0.8
3-
myst-parser==0.18.1
3+
myst-parser~=1.0.0
44
pandas==1.5.1
55
sphinxemoji==0.2.0

docs/source/_static/custom.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Palette
22
#1D4289 Blue
33
#212322 Black
4-
#D7A068 Gold (Replace #CEB47E Sand)
4+
#D7A068 Gold (rgb 215,160,104)(Replace #CEB47E Sand)
55
#DBE2E9 Light blue
66
#B7926C Dark sand
77
*/
@@ -21,11 +21,15 @@ header {
2121
h1, h2, h3, h4, p, a {
2222
font-family: Nobile, sans-serif !important;
2323
}
24+
p {
25+
margin-bottom: 2rem;
26+
}
2427
a {
2528
color: #D7A068 !important;
2629
}
2730
blockquote {
28-
border-left: 5px solid grey;
31+
border-left: 2px solid grey;
32+
padding: 0.5rem 1.5rem;
2933
}
3034
blockquote p {
3135
display: inline;
@@ -55,11 +59,15 @@ span.pre {
5559

5660
/* Code box */
5761
.highlight pre {
58-
background: lightyellow !important;
62+
background: lightyellow;
5963
}
6064
.highlight .c1 {
6165
font-style: normal;
6266
}
67+
.hll {
68+
display: block;
69+
background-color: rgba(215,160,104,0.2) !important;
70+
}
6371

6472
/* Table */
6573
table {

docs/source/binarytree.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Binary Tree
1+
|:cactus:| Binary Tree
22
===================================
33

44
.. toctree::

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
]
3232
autodoc_default_options = {"autosummary": True}
3333
sphinxemoji_style = "twemoji"
34+
myst_enable_extensions = [
35+
"attrs_block",
36+
]
3437

3538
templates_path = ["_templates"]
3639
exclude_patterns = []

docs/source/dag.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Directed Acyclic Graph (DAG)
2-
===================================
1+
|:palm_tree:| Directed Acyclic Graph (DAG)
2+
==========================================
33

44
.. toctree::
55
:maxdepth: 2

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
:alt: black
2929

3030
.. toctree::
31-
:maxdepth: 2
31+
:maxdepth: 1
3232

3333
node
3434
binarytree

docs/source/node.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Node
1+
|:herb:| Node
22
===================================
33

44
.. toctree::

docs/source/others.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Others
1+
|:globe_with_meridians:| Others
22
===================================
33

44
.. toctree::

docs/source/tree.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Tree
1+
|:evergreen_tree:| Tree
22
===================================
33

44
.. toctree::

0 commit comments

Comments
 (0)