Skip to content

Commit

Permalink
docs: adding code highlighting (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmachan committed Feb 5, 2024
1 parent 1d28b5f commit 1bbb8d5
Show file tree
Hide file tree
Showing 9 changed files with 511 additions and 9 deletions.
85 changes: 85 additions & 0 deletions docs/_static/css/highlight_ipython3.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight-ipython3 .hll { background-color: #49483e }
.highlight-ipython3 { background: #272822; color: #f8f8f2 }
.highlight-ipython3 .c { color: #959077 } /* Comment */
.highlight-ipython3 .err { color: #ed007e; background-color: #1e0010 } /* Error */
.highlight-ipython3 .esc { color: #f8f8f2 } /* Escape */
.highlight-ipython3 .g { color: #f8f8f2 } /* Generic */
.highlight-ipython3 .k { color: #66d9ef } /* Keyword */
.highlight-ipython3 .l { color: #ae81ff } /* Literal */
.highlight-ipython3 .n { color: #f8f8f2 } /* Name */
.highlight-ipython3 .o { color: #ff4689 } /* Operator */
.highlight-ipython3 .x { color: #f8f8f2 } /* Other */
.highlight-ipython3 .p { color: #f8f8f2 } /* Punctuation */
.highlight-ipython3 .ch { color: #959077 } /* Comment.Hashbang */
.highlight-ipython3 .cm { color: #959077 } /* Comment.Multiline */
.highlight-ipython3 .cp { color: #959077 } /* Comment.Preproc */
.highlight-ipython3 .cpf { color: #959077 } /* Comment.PreprocFile */
.highlight-ipython3 .c1 { color: #959077 } /* Comment.Single */
.highlight-ipython3 .cs { color: #959077 } /* Comment.Special */
.highlight-ipython3 .gd { color: #ff4689 } /* Generic.Deleted */
.highlight-ipython3 .ge { color: #f8f8f2; font-style: italic } /* Generic.Emph */
.highlight-ipython3 .ges { color: #f8f8f2; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight-ipython3 .gr { color: #f8f8f2 } /* Generic.Error */
.highlight-ipython3 .gh { color: #f8f8f2 } /* Generic.Heading */
.highlight-ipython3 .gi { color: #a6e22e } /* Generic.Inserted */
.highlight-ipython3 .go { color: #66d9ef } /* Generic.Output */
.highlight-ipython3 .gp { color: #ff4689; font-weight: bold } /* Generic.Prompt */
.highlight-ipython3 .gs { color: #f8f8f2; font-weight: bold } /* Generic.Strong */
.highlight-ipython3 .gu { color: #959077 } /* Generic.Subheading */
.highlight-ipython3 .gt { color: #f8f8f2 } /* Generic.Traceback */
.highlight-ipython3 .kc { color: #66d9ef } /* Keyword.Constant */
.highlight-ipython3 .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight-ipython3 .kn { color: #ff4689 } /* Keyword.Namespace */
.highlight-ipython3 .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight-ipython3 .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight-ipython3 .kt { color: #66d9ef } /* Keyword.Type */
.highlight-ipython3 .ld { color: #e6db74 } /* Literal.Date */
.highlight-ipython3 .m { color: #ae81ff } /* Literal.Number */
.highlight-ipython3 .s { color: #e6db74 } /* Literal.String */
.highlight-ipython3 .na { color: #a6e22e } /* Name.Attribute */
.highlight-ipython3 .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight-ipython3 .nc { color: #a6e22e } /* Name.Class */
.highlight-ipython3 .no { color: #66d9ef } /* Name.Constant */
.highlight-ipython3 .nd { color: #a6e22e } /* Name.Decorator */
.highlight-ipython3 .ni { color: #f8f8f2 } /* Name.Entity */
.highlight-ipython3 .ne { color: #a6e22e } /* Name.Exception */
.highlight-ipython3 .nf { color: #a6e22e } /* Name.Function */
.highlight-ipython3 .nl { color: #f8f8f2 } /* Name.Label */
.highlight-ipython3 .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight-ipython3 .nx { color: #a6e22e } /* Name.Other */
.highlight-ipython3 .py { color: #f8f8f2 } /* Name.Property */
.highlight-ipython3 .nt { color: #ff4689 } /* Name.Tag */
.highlight-ipython3 .nv { color: #f8f8f2 } /* Name.Variable */
.highlight-ipython3 .ow { color: #ff4689 } /* Operator.Word */
.highlight-ipython3 .pm { color: #f8f8f2 } /* Punctuation.Marker */
.highlight-ipython3 .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight-ipython3 .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight-ipython3 .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight-ipython3 .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight-ipython3 .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight-ipython3 .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight-ipython3 .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight-ipython3 .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight-ipython3 .sc { color: #e6db74 } /* Literal.String.Char */
.highlight-ipython3 .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight-ipython3 .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight-ipython3 .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight-ipython3 .se { color: #ae81ff } /* Literal.String.Escape */
.highlight-ipython3 .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight-ipython3 .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight-ipython3 .sx { color: #e6db74 } /* Literal.String.Other */
.highlight-ipython3 .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight-ipython3 .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight-ipython3 .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight-ipython3 .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight-ipython3 .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight-ipython3 .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight-ipython3 .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight-ipython3 .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight-ipython3 .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight-ipython3 .il { color: #ae81ff } /* Literal.Number.Integer.Long */
85 changes: 85 additions & 0 deletions docs/_static/css/highlight_ipython3_dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight-ipython3 .hll { background-color: #49483e }
.highlight-ipython3 { background: #232629; color: #cccccc }
.highlight-ipython3 .c { color: #777777; font-style: italic } /* Comment */
.highlight-ipython3 .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight-ipython3 .esc { color: #cccccc } /* Escape */
.highlight-ipython3 .g { color: #cccccc } /* Generic */
.highlight-ipython3 .k { color: #7686bb; font-weight: bold } /* Keyword */
.highlight-ipython3 .l { color: #cccccc } /* Literal */
.highlight-ipython3 .n { color: #cccccc } /* Name */
.highlight-ipython3 .o { color: #cccccc } /* Operator */
.highlight-ipython3 .x { color: #cccccc } /* Other */
.highlight-ipython3 .p { color: #cccccc } /* Punctuation */
.highlight-ipython3 .ch { color: #777777; font-style: italic } /* Comment.Hashbang */
.highlight-ipython3 .cm { color: #777777; font-style: italic } /* Comment.Multiline */
.highlight-ipython3 .cp { color: #777777; font-style: italic } /* Comment.Preproc */
.highlight-ipython3 .cpf { color: #777777; font-style: italic } /* Comment.PreprocFile */
.highlight-ipython3 .c1 { color: #777777; font-style: italic } /* Comment.Single */
.highlight-ipython3 .cs { color: #777777; font-style: italic } /* Comment.Special */
.highlight-ipython3 .gd { color: #cccccc } /* Generic.Deleted */
.highlight-ipython3 .ge { color: #cccccc } /* Generic.Emph */
.highlight-ipython3 .ges { color: #cccccc } /* Generic.EmphStrong */
.highlight-ipython3 .gr { color: #cccccc } /* Generic.Error */
.highlight-ipython3 .gh { color: #cccccc } /* Generic.Heading */
.highlight-ipython3 .gi { color: #cccccc } /* Generic.Inserted */
.highlight-ipython3 .go { color: #cccccc } /* Generic.Output */
.highlight-ipython3 .gp { color: #ffffff } /* Generic.Prompt */
.highlight-ipython3 .gs { color: #cccccc } /* Generic.Strong */
.highlight-ipython3 .gu { color: #cccccc } /* Generic.Subheading */
.highlight-ipython3 .gt { color: #cccccc } /* Generic.Traceback */
.highlight-ipython3 .kc { color: #7686bb; font-weight: bold } /* Keyword.Constant */
.highlight-ipython3 .kd { color: #7686bb; font-weight: bold } /* Keyword.Declaration */
.highlight-ipython3 .kn { color: #7686bb; font-weight: bold } /* Keyword.Namespace */
.highlight-ipython3 .kp { color: #7686bb; font-weight: bold } /* Keyword.Pseudo */
.highlight-ipython3 .kr { color: #7686bb; font-weight: bold } /* Keyword.Reserved */
.highlight-ipython3 .kt { color: #7686bb; font-weight: bold } /* Keyword.Type */
.highlight-ipython3 .ld { color: #cccccc } /* Literal.Date */
.highlight-ipython3 .m { color: #4FB8CC } /* Literal.Number */
.highlight-ipython3 .s { color: #51cc99 } /* Literal.String */
.highlight-ipython3 .na { color: #cccccc } /* Name.Attribute */
.highlight-ipython3 .nb { color: #cccccc } /* Name.Builtin */
.highlight-ipython3 .nc { color: #cccccc } /* Name.Class */
.highlight-ipython3 .no { color: #cccccc } /* Name.Constant */
.highlight-ipython3 .nd { color: #cccccc } /* Name.Decorator */
.highlight-ipython3 .ni { color: #cccccc } /* Name.Entity */
.highlight-ipython3 .ne { color: #cccccc } /* Name.Exception */
.highlight-ipython3 .nf { color: #6a6aff } /* Name.Function */
.highlight-ipython3 .nl { color: #cccccc } /* Name.Label */
.highlight-ipython3 .nn { color: #cccccc } /* Name.Namespace */
.highlight-ipython3 .nx { color: #e2828e } /* Name.Other */
.highlight-ipython3 .py { color: #cccccc } /* Name.Property */
.highlight-ipython3 .nt { color: #cccccc } /* Name.Tag */
.highlight-ipython3 .nv { color: #7AB4DB; font-weight: bold } /* Name.Variable */
.highlight-ipython3 .ow { color: #cccccc } /* Operator.Word */
.highlight-ipython3 .pm { color: #cccccc } /* Punctuation.Marker */
.highlight-ipython3 .w { color: #bbbbbb } /* Text.Whitespace */
.highlight-ipython3 .mb { color: #4FB8CC } /* Literal.Number.Bin */
.highlight-ipython3 .mf { color: #4FB8CC } /* Literal.Number.Float */
.highlight-ipython3 .mh { color: #4FB8CC } /* Literal.Number.Hex */
.highlight-ipython3 .mi { color: #4FB8CC } /* Literal.Number.Integer */
.highlight-ipython3 .mo { color: #4FB8CC } /* Literal.Number.Oct */
.highlight-ipython3 .sa { color: #51cc99 } /* Literal.String.Affix */
.highlight-ipython3 .sb { color: #51cc99 } /* Literal.String.Backtick */
.highlight-ipython3 .sc { color: #51cc99 } /* Literal.String.Char */
.highlight-ipython3 .dl { color: #51cc99 } /* Literal.String.Delimiter */
.highlight-ipython3 .sd { color: #51cc99 } /* Literal.String.Doc */
.highlight-ipython3 .s2 { color: #51cc99 } /* Literal.String.Double */
.highlight-ipython3 .se { color: #51cc99 } /* Literal.String.Escape */
.highlight-ipython3 .sh { color: #51cc99 } /* Literal.String.Heredoc */
.highlight-ipython3 .si { color: #51cc99 } /* Literal.String.Interpol */
.highlight-ipython3 .sx { color: #51cc99 } /* Literal.String.Other */
.highlight-ipython3 .sr { color: #51cc99 } /* Literal.String.Regex */
.highlight-ipython3 .s1 { color: #51cc99 } /* Literal.String.Single */
.highlight-ipython3 .ss { color: #51cc99 } /* Literal.String.Symbol */
.highlight-ipython3 .bp { color: #cccccc } /* Name.Builtin.Pseudo */
.highlight-ipython3 .fm { color: #6a6aff } /* Name.Function.Magic */
.highlight-ipython3 .vc { color: #7AB4DB; font-weight: bold } /* Name.Variable.Class */
.highlight-ipython3 .vg { color: #BE646C; font-weight: bold } /* Name.Variable.Global */
.highlight-ipython3 .vi { color: #7AB4DB; font-weight: bold } /* Name.Variable.Instance */
.highlight-ipython3 .vm { color: #7AB4DB; font-weight: bold } /* Name.Variable.Magic */
.highlight-ipython3 .il { color: #4FB8CC } /* Literal.Number.Integer.Long */
75 changes: 75 additions & 0 deletions docs/_static/css/highlight_ipython3_light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight-ipython3 .hll { background-color: #ffffcc }
.highlight-ipython3 { background: #f8f8f8; }
.highlight-ipython3 .c { color: #008800; font-style: italic } /* Comment */
.highlight-ipython3 .err { border: 1px solid #FF0000 } /* Error */
.highlight-ipython3 .k { color: #AA22FF; font-weight: bold } /* Keyword */
.highlight-ipython3 .o { color: #666666 } /* Operator */
.highlight-ipython3 .ch { color: #008800; font-style: italic } /* Comment.Hashbang */
.highlight-ipython3 .cm { color: #008800; font-style: italic } /* Comment.Multiline */
.highlight-ipython3 .cp { color: #008800 } /* Comment.Preproc */
.highlight-ipython3 .cpf { color: #008800; font-style: italic } /* Comment.PreprocFile */
.highlight-ipython3 .c1 { color: #008800; font-style: italic } /* Comment.Single */
.highlight-ipython3 .cs { color: #008800; font-weight: bold } /* Comment.Special */
.highlight-ipython3 .gd { color: #A00000 } /* Generic.Deleted */
.highlight-ipython3 .ge { font-style: italic } /* Generic.Emph */
.highlight-ipython3 .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight-ipython3 .gr { color: #FF0000 } /* Generic.Error */
.highlight-ipython3 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight-ipython3 .gi { color: #00A000 } /* Generic.Inserted */
.highlight-ipython3 .go { color: #888888 } /* Generic.Output */
.highlight-ipython3 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight-ipython3 .gs { font-weight: bold } /* Generic.Strong */
.highlight-ipython3 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight-ipython3 .gt { color: #0044DD } /* Generic.Traceback */
.highlight-ipython3 .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */
.highlight-ipython3 .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */
.highlight-ipython3 .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */
.highlight-ipython3 .kp { color: #AA22FF } /* Keyword.Pseudo */
.highlight-ipython3 .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */
.highlight-ipython3 .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */
.highlight-ipython3 .m { color: #666666 } /* Literal.Number */
.highlight-ipython3 .s { color: #BB4444 } /* Literal.String */
.highlight-ipython3 .na { color: #BB4444 } /* Name.Attribute */
.highlight-ipython3 .nb { color: #AA22FF } /* Name.Builtin */
.highlight-ipython3 .nc { color: #0000FF } /* Name.Class */
.highlight-ipython3 .no { color: #880000 } /* Name.Constant */
.highlight-ipython3 .nd { color: #AA22FF } /* Name.Decorator */
.highlight-ipython3 .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight-ipython3 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.highlight-ipython3 .nf { color: #00A000 } /* Name.Function */
.highlight-ipython3 .nl { color: #A0A000 } /* Name.Label */
.highlight-ipython3 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.highlight-ipython3 .nt { color: #008000; font-weight: bold } /* Name.Tag */
.highlight-ipython3 .nv { color: #B8860B } /* Name.Variable */
.highlight-ipython3 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight-ipython3 .w { color: #bbbbbb } /* Text.Whitespace */
.highlight-ipython3 .mb { color: #666666 } /* Literal.Number.Bin */
.highlight-ipython3 .mf { color: #666666 } /* Literal.Number.Float */
.highlight-ipython3 .mh { color: #666666 } /* Literal.Number.Hex */
.highlight-ipython3 .mi { color: #666666 } /* Literal.Number.Integer */
.highlight-ipython3 .mo { color: #666666 } /* Literal.Number.Oct */
.highlight-ipython3 .sa { color: #BB4444 } /* Literal.String.Affix */
.highlight-ipython3 .sb { color: #BB4444 } /* Literal.String.Backtick */
.highlight-ipython3 .sc { color: #BB4444 } /* Literal.String.Char */
.highlight-ipython3 .dl { color: #BB4444 } /* Literal.String.Delimiter */
.highlight-ipython3 .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */
.highlight-ipython3 .s2 { color: #BB4444 } /* Literal.String.Double */
.highlight-ipython3 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.highlight-ipython3 .sh { color: #BB4444 } /* Literal.String.Heredoc */
.highlight-ipython3 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.highlight-ipython3 .sx { color: #008000 } /* Literal.String.Other */
.highlight-ipython3 .sr { color: #BB6688 } /* Literal.String.Regex */
.highlight-ipython3 .s1 { color: #BB4444 } /* Literal.String.Single */
.highlight-ipython3 .ss { color: #B8860B } /* Literal.String.Symbol */
.highlight-ipython3 .bp { color: #AA22FF } /* Name.Builtin.Pseudo */
.highlight-ipython3 .fm { color: #00A000 } /* Name.Function.Magic */
.highlight-ipython3 .vc { color: #B8860B } /* Name.Variable.Class */
.highlight-ipython3 .vg { color: #B8860B } /* Name.Variable.Global */
.highlight-ipython3 .vi { color: #B8860B } /* Name.Variable.Instance */
.highlight-ipython3 .vm { color: #B8860B } /* Name.Variable.Magic */
.highlight-ipython3 .il { color: #666666 } /* Literal.Number.Integer.Long */
Loading

0 comments on commit 1bbb8d5

Please sign in to comment.