fix
This commit is contained in:
202
book/node_modules/@honkit/honkit-plugin-highlight/LICENSE
generated
vendored
Normal file
202
book/node_modules/@honkit/honkit-plugin-highlight/LICENSE
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2020-present azu.
|
||||
Copyright 2014 FriendCode Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
30
book/node_modules/@honkit/honkit-plugin-highlight/README.md
generated
vendored
Normal file
30
book/node_modules/@honkit/honkit-plugin-highlight/README.md
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
# @honkit/honkit-plugin-highlight
|
||||
|
||||
`@honkit/honkit-plugin-highlight` is a fork of [Gitbook/plugin-highlight]@2.0.3.
|
||||
|
||||
## Code highlighting in HonKit
|
||||
|
||||
This plugin is the default HonKit plugin used to highlight code blocks.
|
||||
|
||||
You can remove it using:
|
||||
|
||||
```
|
||||
{
|
||||
plugins: ["-highlight"]
|
||||
}
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
Currently, tests have been disabled due to issues regarding [gitbook-tester] which is used in the tests.
|
||||
|
||||
Replacing [gitbook-tester] with [honkit-tester] can solve the issues, but introduces other issues which block to enable the tests.
|
||||
That requires additional effort.
|
||||
|
||||
## License
|
||||
|
||||
Apache-2.0 (same as [Gitbook/plugin-highlight])
|
||||
|
||||
[Gitbook/plugin-highlight]: https://github.com/GitbookIO/plugin-highlight
|
||||
[gitbook-tester]: https://github.com/todvora/gitbook-tester
|
||||
[honkit-tester]: https://github.com/vowstar/honkit-tester
|
215
book/node_modules/@honkit/honkit-plugin-highlight/css/ebook.css
generated
vendored
Normal file
215
book/node_modules/@honkit/honkit-plugin-highlight/css/ebook.css
generated
vendored
Normal file
@ -0,0 +1,215 @@
|
||||
pre,
|
||||
code {
|
||||
/* From highlight.js@11.10.0/styles/tomorrow.css */
|
||||
/*!
|
||||
Theme: Tomorrow
|
||||
Author: Chris Kempson (http://chriskempson.com)
|
||||
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
||||
Maintainer: @highlightjs/core-team
|
||||
Version: 2021.09.0
|
||||
*/
|
||||
/*
|
||||
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
This theme file was auto-generated from the Base16 scheme tomorrow
|
||||
by the Highlight.js Base16 template builder.
|
||||
|
||||
- https://github.com/highlightjs/base16-highlightjs
|
||||
*/
|
||||
/*
|
||||
base00 #ffffff Default Background
|
||||
base01 #e0e0e0 Lighter Background (Used for status bars, line number and folding marks)
|
||||
base02 #d6d6d6 Selection Background
|
||||
base03 #8e908c Comments, Invisibles, Line Highlighting
|
||||
base04 #969896 Dark Foreground (Used for status bars)
|
||||
base05 #4d4d4c Default Foreground, Caret, Delimiters, Operators
|
||||
base06 #282a2e Light Foreground (Not often used)
|
||||
base07 #1d1f21 Light Background (Not often used)
|
||||
base08 #c82829 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
||||
base09 #f5871f Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
||||
base0A #eab700 Classes, Markup Bold, Search Text Background
|
||||
base0B #718c00 Strings, Inherited Class, Markup Code, Diff Inserted
|
||||
base0C #3e999f Support, Regular Expressions, Escape Characters, Markup Quotes
|
||||
base0D #4271ae Functions, Methods, Attribute IDs, Headings
|
||||
base0E #8959a8 Keywords, Storage, Selector, Markup Italic, Diff Changed
|
||||
base0F #a3685a Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|
||||
*/
|
||||
/* purposely do not highlight these things */
|
||||
/* base03 - #8e908c - Comments, Invisibles, Line Highlighting */
|
||||
/* base04 - #969896 - Dark Foreground (Used for status bars) */
|
||||
/* base05 - #4d4d4c - Default Foreground, Caret, Delimiters, Operators */
|
||||
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
|
||||
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
|
||||
/* base0A - Classes, Markup Bold, Search Text Background */
|
||||
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
|
||||
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
|
||||
/* guessing */
|
||||
/* base0D - Functions, Methods, Attribute IDs, Headings */
|
||||
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
|
||||
/* .hljs-selector-id, */
|
||||
/* .hljs-selector-class, */
|
||||
/* .hljs-selector-attr, */
|
||||
/* .hljs-selector-pseudo, */
|
||||
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
|
||||
/*
|
||||
prevent top level .keyword and .string scopes
|
||||
from leaking into meta by accident
|
||||
*/
|
||||
/* for v10 compatible themes */
|
||||
}
|
||||
pre pre code.hljs,
|
||||
code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
pre code.hljs,
|
||||
code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
pre pre code.hljs,
|
||||
code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
pre code.hljs,
|
||||
code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
pre .hljs,
|
||||
code .hljs {
|
||||
color: #4d4d4c;
|
||||
background: #ffffff;
|
||||
}
|
||||
pre .hljs::selection,
|
||||
code .hljs::selection,
|
||||
pre .hljs ::selection,
|
||||
code .hljs ::selection {
|
||||
background-color: #d6d6d6;
|
||||
color: #4d4d4c;
|
||||
}
|
||||
pre .hljs-comment,
|
||||
code .hljs-comment {
|
||||
color: #8e908c;
|
||||
}
|
||||
pre .hljs-tag,
|
||||
code .hljs-tag {
|
||||
color: #969896;
|
||||
}
|
||||
pre .hljs-subst,
|
||||
code .hljs-subst,
|
||||
pre .hljs-punctuation,
|
||||
code .hljs-punctuation,
|
||||
pre .hljs-operator,
|
||||
code .hljs-operator {
|
||||
color: #4d4d4c;
|
||||
}
|
||||
pre .hljs-operator,
|
||||
code .hljs-operator {
|
||||
opacity: 0.7;
|
||||
}
|
||||
pre .hljs-bullet,
|
||||
code .hljs-bullet,
|
||||
pre .hljs-variable,
|
||||
code .hljs-variable,
|
||||
pre .hljs-template-variable,
|
||||
code .hljs-template-variable,
|
||||
pre .hljs-selector-tag,
|
||||
code .hljs-selector-tag,
|
||||
pre .hljs-name,
|
||||
code .hljs-name,
|
||||
pre .hljs-deletion,
|
||||
code .hljs-deletion {
|
||||
color: #c82829;
|
||||
}
|
||||
pre .hljs-symbol,
|
||||
code .hljs-symbol,
|
||||
pre .hljs-number,
|
||||
code .hljs-number,
|
||||
pre .hljs-link,
|
||||
code .hljs-link,
|
||||
pre .hljs-attr,
|
||||
code .hljs-attr,
|
||||
pre .hljs-variable.constant_,
|
||||
code .hljs-variable.constant_,
|
||||
pre .hljs-literal,
|
||||
code .hljs-literal {
|
||||
color: #f5871f;
|
||||
}
|
||||
pre .hljs-title,
|
||||
code .hljs-title,
|
||||
pre .hljs-class .hljs-title,
|
||||
code .hljs-class .hljs-title,
|
||||
pre .hljs-title.class_,
|
||||
code .hljs-title.class_ {
|
||||
color: #eab700;
|
||||
}
|
||||
pre .hljs-strong,
|
||||
code .hljs-strong {
|
||||
font-weight: bold;
|
||||
color: #eab700;
|
||||
}
|
||||
pre .hljs-code,
|
||||
code .hljs-code,
|
||||
pre .hljs-addition,
|
||||
code .hljs-addition,
|
||||
pre .hljs-title.class_.inherited__,
|
||||
code .hljs-title.class_.inherited__,
|
||||
pre .hljs-string,
|
||||
code .hljs-string {
|
||||
color: #718c00;
|
||||
}
|
||||
pre .hljs-built_in,
|
||||
code .hljs-built_in,
|
||||
pre .hljs-doctag,
|
||||
code .hljs-doctag,
|
||||
pre .hljs-quote,
|
||||
code .hljs-quote,
|
||||
pre .hljs-keyword.hljs-atrule,
|
||||
code .hljs-keyword.hljs-atrule,
|
||||
pre .hljs-regexp,
|
||||
code .hljs-regexp {
|
||||
color: #3e999f;
|
||||
}
|
||||
pre .hljs-function .hljs-title,
|
||||
code .hljs-function .hljs-title,
|
||||
pre .hljs-attribute,
|
||||
code .hljs-attribute,
|
||||
pre .ruby .hljs-property,
|
||||
code .ruby .hljs-property,
|
||||
pre .hljs-title.function_,
|
||||
code .hljs-title.function_,
|
||||
pre .hljs-section,
|
||||
code .hljs-section {
|
||||
color: #4271ae;
|
||||
}
|
||||
pre .hljs-type,
|
||||
code .hljs-type,
|
||||
pre .hljs-template-tag,
|
||||
code .hljs-template-tag,
|
||||
pre .diff .hljs-meta,
|
||||
code .diff .hljs-meta,
|
||||
pre .hljs-keyword,
|
||||
code .hljs-keyword {
|
||||
color: #8959a8;
|
||||
}
|
||||
pre .hljs-emphasis,
|
||||
code .hljs-emphasis {
|
||||
color: #8959a8;
|
||||
font-style: italic;
|
||||
}
|
||||
pre .hljs-meta,
|
||||
code .hljs-meta,
|
||||
pre .hljs-meta .hljs-keyword,
|
||||
code .hljs-meta .hljs-keyword,
|
||||
pre .hljs-meta .hljs-string,
|
||||
code .hljs-meta .hljs-string {
|
||||
color: #a3685a;
|
||||
}
|
||||
pre .hljs-meta .hljs-keyword,
|
||||
code .hljs-meta .hljs-keyword,
|
||||
pre .hljs-meta-keyword,
|
||||
code .hljs-meta-keyword {
|
||||
font-weight: bold;
|
||||
}
|
533
book/node_modules/@honkit/honkit-plugin-highlight/css/website.css
generated
vendored
Normal file
533
book/node_modules/@honkit/honkit-plugin-highlight/css/website.css
generated
vendored
Normal file
@ -0,0 +1,533 @@
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code {
|
||||
/* From highlight.js@11.10.0/styles/tomorrow.css */
|
||||
/*!
|
||||
Theme: Tomorrow
|
||||
Author: Chris Kempson (http://chriskempson.com)
|
||||
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
||||
Maintainer: @highlightjs/core-team
|
||||
Version: 2021.09.0
|
||||
*/
|
||||
/*
|
||||
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
This theme file was auto-generated from the Base16 scheme tomorrow
|
||||
by the Highlight.js Base16 template builder.
|
||||
|
||||
- https://github.com/highlightjs/base16-highlightjs
|
||||
*/
|
||||
/*
|
||||
base00 #ffffff Default Background
|
||||
base01 #e0e0e0 Lighter Background (Used for status bars, line number and folding marks)
|
||||
base02 #d6d6d6 Selection Background
|
||||
base03 #8e908c Comments, Invisibles, Line Highlighting
|
||||
base04 #969896 Dark Foreground (Used for status bars)
|
||||
base05 #4d4d4c Default Foreground, Caret, Delimiters, Operators
|
||||
base06 #282a2e Light Foreground (Not often used)
|
||||
base07 #1d1f21 Light Background (Not often used)
|
||||
base08 #c82829 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
||||
base09 #f5871f Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
||||
base0A #eab700 Classes, Markup Bold, Search Text Background
|
||||
base0B #718c00 Strings, Inherited Class, Markup Code, Diff Inserted
|
||||
base0C #3e999f Support, Regular Expressions, Escape Characters, Markup Quotes
|
||||
base0D #4271ae Functions, Methods, Attribute IDs, Headings
|
||||
base0E #8959a8 Keywords, Storage, Selector, Markup Italic, Diff Changed
|
||||
base0F #a3685a Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|
||||
*/
|
||||
/* purposely do not highlight these things */
|
||||
/* base03 - #8e908c - Comments, Invisibles, Line Highlighting */
|
||||
/* base04 - #969896 - Dark Foreground (Used for status bars) */
|
||||
/* base05 - #4d4d4c - Default Foreground, Caret, Delimiters, Operators */
|
||||
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
|
||||
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
|
||||
/* base0A - Classes, Markup Bold, Search Text Background */
|
||||
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
|
||||
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
|
||||
/* guessing */
|
||||
/* base0D - Functions, Methods, Attribute IDs, Headings */
|
||||
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
|
||||
/* .hljs-selector-id, */
|
||||
/* .hljs-selector-class, */
|
||||
/* .hljs-selector-attr, */
|
||||
/* .hljs-selector-pseudo, */
|
||||
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
|
||||
/*
|
||||
prevent top level .keyword and .string scopes
|
||||
from leaking into meta by accident
|
||||
*/
|
||||
/* for v10 compatible themes */
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre pre code.hljs,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre code.hljs,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre pre code.hljs,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre code.hljs,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs {
|
||||
color: #4d4d4c;
|
||||
background: #ffffff;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs::selection,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs::selection,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs ::selection,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs ::selection {
|
||||
background-color: #d6d6d6;
|
||||
color: #4d4d4c;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-comment,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-comment {
|
||||
color: #8e908c;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-tag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-tag {
|
||||
color: #969896;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-subst,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-subst,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-punctuation,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-punctuation,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-operator,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-operator {
|
||||
color: #4d4d4c;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-operator,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-operator {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-bullet,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-bullet,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-variable,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-variable,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-template-variable,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-template-variable,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-selector-tag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-selector-tag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-name,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-name,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-deletion {
|
||||
color: #c82829;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-symbol,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-symbol,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-number,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-number,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-link,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-link,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-attr,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-attr,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-variable.constant_,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-variable.constant_,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-literal,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-literal {
|
||||
color: #f5871f;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-title,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-title,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-class .hljs-title,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-class .hljs-title,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-title.class_,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-title.class_ {
|
||||
color: #eab700;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-strong,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-strong {
|
||||
font-weight: bold;
|
||||
color: #eab700;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-code,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-code,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-addition,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-addition,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-title.class_.inherited__,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-title.class_.inherited__,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-string,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-string {
|
||||
color: #718c00;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-built_in,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-doctag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-doctag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-quote,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-quote,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword.hljs-atrule,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-keyword.hljs-atrule,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-regexp,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-regexp {
|
||||
color: #3e999f;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-function .hljs-title,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-function .hljs-title,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-attribute,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-attribute,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-property,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-property,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-title.function_,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-title.function_,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-section,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-section {
|
||||
color: #4271ae;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-type,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-type,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-template-tag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-template-tag,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .diff .hljs-meta,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .diff .hljs-meta,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-keyword {
|
||||
color: #8959a8;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-emphasis,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-emphasis {
|
||||
color: #8959a8;
|
||||
font-style: italic;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-meta,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-meta,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-meta .hljs-keyword,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-meta .hljs-keyword,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-meta .hljs-string,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-meta .hljs-string {
|
||||
color: #a3685a;
|
||||
}
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-meta .hljs-keyword,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-meta .hljs-keyword,
|
||||
.book .book-body .page-wrapper .page-inner section.normal pre .hljs-meta-keyword,
|
||||
.book .book-body .page-wrapper .page-inner section.normal code .hljs-meta-keyword {
|
||||
font-weight: bold;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code {
|
||||
/* From highlight.js@11.10.0/styles/solarized-light.css */
|
||||
/*!
|
||||
Theme: Solarized Light
|
||||
Author: Ethan Schoonover (modified by aramisgithub)
|
||||
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
||||
Maintainer: @highlightjs/core-team
|
||||
Version: 2021.09.0
|
||||
*/
|
||||
/*
|
||||
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
This theme file was auto-generated from the Base16 scheme solarized-light
|
||||
by the Highlight.js Base16 template builder.
|
||||
|
||||
- https://github.com/highlightjs/base16-highlightjs
|
||||
*/
|
||||
/*
|
||||
base00 #fdf6e3 Default Background
|
||||
base01 #eee8d5 Lighter Background (Used for status bars, line number and folding marks)
|
||||
base02 #93a1a1 Selection Background
|
||||
base03 #839496 Comments, Invisibles, Line Highlighting
|
||||
base04 #657b83 Dark Foreground (Used for status bars)
|
||||
base05 #586e75 Default Foreground, Caret, Delimiters, Operators
|
||||
base06 #073642 Light Foreground (Not often used)
|
||||
base07 #002b36 Light Background (Not often used)
|
||||
base08 #dc322f Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
||||
base09 #cb4b16 Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
||||
base0A #b58900 Classes, Markup Bold, Search Text Background
|
||||
base0B #859900 Strings, Inherited Class, Markup Code, Diff Inserted
|
||||
base0C #2aa198 Support, Regular Expressions, Escape Characters, Markup Quotes
|
||||
base0D #268bd2 Functions, Methods, Attribute IDs, Headings
|
||||
base0E #6c71c4 Keywords, Storage, Selector, Markup Italic, Diff Changed
|
||||
base0F #d33682 Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|
||||
*/
|
||||
/* purposely do not highlight these things */
|
||||
/* base03 - #839496 - Comments, Invisibles, Line Highlighting */
|
||||
/* base04 - #657b83 - Dark Foreground (Used for status bars) */
|
||||
/* base05 - #586e75 - Default Foreground, Caret, Delimiters, Operators */
|
||||
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
|
||||
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
|
||||
/* base0A - Classes, Markup Bold, Search Text Background */
|
||||
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
|
||||
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
|
||||
/* guessing */
|
||||
/* base0D - Functions, Methods, Attribute IDs, Headings */
|
||||
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
|
||||
/* .hljs-selector-id, */
|
||||
/* .hljs-selector-class, */
|
||||
/* .hljs-selector-attr, */
|
||||
/* .hljs-selector-pseudo, */
|
||||
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
|
||||
/*
|
||||
prevent top level .keyword and .string scopes
|
||||
from leaking into meta by accident
|
||||
*/
|
||||
/* for v10 compatible themes */
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre pre code.hljs,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre code.hljs,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre pre code.hljs,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre code.hljs,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs {
|
||||
color: #586e75;
|
||||
background: #fdf6e3;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs::selection,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs::selection,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs ::selection,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs ::selection {
|
||||
background-color: #93a1a1;
|
||||
color: #586e75;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-comment,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-comment {
|
||||
color: #839496;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-tag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-tag {
|
||||
color: #657b83;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-subst,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-subst,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-punctuation,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-punctuation,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-operator,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-operator {
|
||||
color: #586e75;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-operator,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-operator {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-bullet,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-bullet,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-variable,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-variable,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-template-variable,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-template-variable,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-selector-tag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-selector-tag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-name,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-name,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-deletion {
|
||||
color: #dc322f;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-symbol,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-symbol,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-number,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-number,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-link,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-link,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-attr,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-attr,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-variable.constant_,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-variable.constant_,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-literal,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-literal {
|
||||
color: #cb4b16;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-title,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-title,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-class .hljs-title,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-class .hljs-title,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-title.class_,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-title.class_ {
|
||||
color: #b58900;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-strong,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-strong {
|
||||
font-weight: bold;
|
||||
color: #b58900;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-code,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-code,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-addition,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-addition,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-title.class_.inherited__,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-title.class_.inherited__,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-string,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-string {
|
||||
color: #859900;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-built_in,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-doctag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-doctag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-quote,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-quote,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword.hljs-atrule,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-keyword.hljs-atrule,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-regexp,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-regexp {
|
||||
color: #2aa198;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-function .hljs-title,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-function .hljs-title,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-attribute,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-attribute,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-property,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-property,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-title.function_,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-title.function_,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-section,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-section {
|
||||
color: #268bd2;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-type,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-type,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-template-tag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-template-tag,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .diff .hljs-meta,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .diff .hljs-meta,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-keyword {
|
||||
color: #6c71c4;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-emphasis,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-emphasis {
|
||||
color: #6c71c4;
|
||||
font-style: italic;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-meta,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-meta,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-meta .hljs-keyword,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-meta .hljs-keyword,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-meta .hljs-string,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-meta .hljs-string {
|
||||
color: #d33682;
|
||||
}
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-meta .hljs-keyword,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-meta .hljs-keyword,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-meta-keyword,
|
||||
.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-meta-keyword {
|
||||
font-weight: bold;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code {
|
||||
/* From highlight.js@11.10.0/styles/tomorrow-night-bright.css */
|
||||
/* Tomorrow Night Bright Theme */
|
||||
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
||||
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
||||
/* Tomorrow Comment */
|
||||
/* Tomorrow Red */
|
||||
/* Tomorrow Orange */
|
||||
/* Tomorrow Yellow */
|
||||
/* Tomorrow Green */
|
||||
/* Tomorrow Blue */
|
||||
/* Tomorrow Purple */
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre pre code.hljs,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre code.hljs,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-comment,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-comment,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-quote,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-quote {
|
||||
color: #969896;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-variable,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-variable,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-template-variable,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-template-variable,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-tag,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-tag,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-name,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-name,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-selector-id,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-selector-id,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-selector-class,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-selector-class,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-regexp,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-regexp,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-deletion {
|
||||
color: #d54e53;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-number,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-number,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-built_in,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-literal,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-literal,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-type,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-type,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-params,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-params,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-meta,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-meta,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-link,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-link {
|
||||
color: #e78c45;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-attribute,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-attribute {
|
||||
color: #e7c547;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-string,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-string,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-symbol,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-symbol,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-bullet,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-bullet,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-addition,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-addition {
|
||||
color: #b9ca4a;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-title,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-title,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-section,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-section {
|
||||
color: #7aa6da;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-keyword,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-selector-tag,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-selector-tag {
|
||||
color: #c397d8;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs {
|
||||
background: black;
|
||||
color: #eaeaea;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-emphasis,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-strong,
|
||||
.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
63
book/node_modules/@honkit/honkit-plugin-highlight/index.js
generated
vendored
Normal file
63
book/node_modules/@honkit/honkit-plugin-highlight/index.js
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
const hljs = require("highlight.js");
|
||||
|
||||
const MAP = {
|
||||
py: "python",
|
||||
js: "javascript",
|
||||
json: "javascript",
|
||||
rb: "ruby",
|
||||
csharp: "cs"
|
||||
};
|
||||
|
||||
function normalize(lang) {
|
||||
if (!lang) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const lower = lang.toLowerCase();
|
||||
return MAP[lower] || lower;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} lang
|
||||
* @param {string} code
|
||||
* @returns {string|{html: boolean, body}}
|
||||
*/
|
||||
function highlight(lang, code) {
|
||||
if (!lang)
|
||||
return {
|
||||
body: code,
|
||||
html: false
|
||||
};
|
||||
|
||||
// Normalize lang
|
||||
lang = normalize(lang);
|
||||
|
||||
try {
|
||||
return hljs.highlight(code, {
|
||||
language: lang
|
||||
}).value;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
return {
|
||||
body: code,
|
||||
html: false
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
book: {
|
||||
assets: "./css",
|
||||
css: ["website.css"]
|
||||
},
|
||||
ebook: {
|
||||
assets: "./css",
|
||||
css: ["ebook.css"]
|
||||
},
|
||||
blocks: {
|
||||
code: function (block) {
|
||||
return highlight(block.kwargs.language, block.body);
|
||||
}
|
||||
}
|
||||
};
|
38
book/node_modules/@honkit/honkit-plugin-highlight/package.json
generated
vendored
Normal file
38
book/node_modules/@honkit/honkit-plugin-highlight/package.json
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "@honkit/honkit-plugin-highlight",
|
||||
"description": "Default code highlighter for HonKit",
|
||||
"version": "6.0.2",
|
||||
"homepage": "https://github.com/honkit/honkit",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/honkit/honkit.git"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/honkit/honkit/issues"
|
||||
},
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
"css"
|
||||
],
|
||||
"dependencies": {
|
||||
"highlight.js": "^11.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"less": "^3.13.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build:less --scripts-prepend-node-path && npm run build:css --scripts-prepend-node-path",
|
||||
"build:less": "node ./scripts/build-less.js",
|
||||
"build:css": "lessc ./less/website.less ./css/website.css && lessc ./less/ebook.less ./css/ebook.css",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"engines": {
|
||||
"gitbook": ">=2.4.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "9dcd51c588177ee3a684788c633a67b82dea82a5"
|
||||
}
|
Reference in New Issue
Block a user