mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
Concatenate all scripts
This commit is contained in:
1 parent
67c60f4806
commit
fb9012d549
27 files changed
+165
-284
No files matched your search
@@ -79,7 +79,7 @@ See what's coming next in the [Hugo roadmap][].
|
|||||||
[Shortcodes]: /content-management/shortcodes/
|
[Shortcodes]: /content-management/shortcodes/
|
||||||
[sort content]: /templates/
|
[sort content]: /templates/
|
||||||
[supported formats]: /content-management/formats/
|
[supported formats]: /content-management/formats/
|
||||||
[Syntax highlighting]: /developer-tools/syntax-highlighting/
|
[Syntax highlighting]: /tools/syntax-highlighting/
|
||||||
[table of contents]: /content-management/toc/
|
[table of contents]: /content-management/toc/
|
||||||
[taxonomies]: /content-management/taxonomies/
|
[taxonomies]: /content-management/taxonomies/
|
||||||
[URLs]: /content-management/urls/
|
[URLs]: /content-management/urls/
|
||||||
@@ -35,7 +35,7 @@ Feel free to [contribute to Hugo's development][devcontribute], [improve Hugo's
|
|||||||
[devcontribute]: /contribute/development/
|
[devcontribute]: /contribute/development/
|
||||||
[doccontribute]: /contribute/documentation/
|
[doccontribute]: /contribute/documentation/
|
||||||
[hosting and deployment]: /hosting-and-deployment/
|
[hosting and deployment]: /hosting-and-deployment/
|
||||||
[migrate]: /developer-tools/migrate-to-hugo/
|
[migrate]: /tools/migrations/
|
||||||
[newissue]: https://github.com/spf13/hugo/issues/
|
[newissue]: https://github.com/spf13/hugo/issues/
|
||||||
[related Discuss thread]: https://discuss.gohugo.io/t/web-based-editor/155
|
[related Discuss thread]: https://discuss.gohugo.io/t/web-based-editor/155
|
||||||
[themes]: /themes/
|
[themes]: /themes/
|
||||||
|
|||||||
+2
-2
@@ -269,7 +269,7 @@ Themes section organization has only changed slightly in that the 6 content page
|
|||||||
* Scratch. Has it's own devoted function page at [/functions/scratch/](/functions/scratch/), and is therefore in the [Functions Quick Reference](/functions/). Also mentioned in an admonition in [/variables/page-variables/](/variables/page-variables/).
|
* Scratch. Has it's own devoted function page at [/functions/scratch/](/functions/scratch/), and is therefore in the [Functions Quick Reference](/functions/). Also mentioned in an admonition in [/variables/page-variables/](/variables/page-variables/).
|
||||||
* Shortcodes. Now split into two pages, one a [/content-management/shortcodes/](/content-management/shortcodes/) and the templating portion (i.e. "create your own shortcodes") at [/templates/shortcode-templates/]
|
* Shortcodes. Now split into two pages, one a [/content-management/shortcodes/](/content-management/shortcodes/) and the templating portion (i.e. "create your own shortcodes") at [/templates/shortcode-templates/]
|
||||||
* URLS. Now combined with permalinks and others as a heading/subsection of [/content-management/urls/](/content-management/urls/)
|
* URLS. Now combined with permalinks and others as a heading/subsection of [/content-management/urls/](/content-management/urls/)
|
||||||
* Syntax Highlighting. The shortcode is featured and explained with usage examples at [/content-management/shortcodes/](/content-management/shortcodes/), as well as expaned upon in it's own page under [/developer-tools/syntax-highlighting/](/developer-tools/syntax-highlighting/). I did this under the assumption that *developers* are most interested in adding code blocks to their content.
|
* Syntax Highlighting. The shortcode is featured and explained with usage examples at [/content-management/shortcodes/](/content-management/shortcodes/), as well as expaned upon in it's own page under [/tools/syntax-highlighting/](/tools/syntax-highlighting/). I did this under the assumption that *developers* are most interested in adding code blocks to their content.
|
||||||
* Table of Contents. This is now it's own page under [/content-management/toc](/content-management/toc/) and referenced in [/variables/page-variables](/variables/page-variables/).
|
* Table of Contents. This is now it's own page under [/content-management/toc](/content-management/toc/) and referenced in [/variables/page-variables](/variables/page-variables/).
|
||||||
* Traversing Local Files. This is now split into [/templates/local-file-templates/](/templates/local-file-templates/) and variables delimited at [/variables/other/](/variables/other/).
|
* Traversing Local Files. This is now split into [/templates/local-file-templates/](/templates/local-file-templates/) and variables delimited at [/variables/other/](/variables/other/).
|
||||||
|
|
||||||
@@ -425,7 +425,7 @@ Apache License - 60
|
|||||||
* Hosting on Github - 40
|
* Hosting on Github - 40
|
||||||
* Hosting on Gitlab - 50
|
* Hosting on Gitlab - 50
|
||||||
|
|
||||||
### "developer-tools" Ordering
|
### "tools" Ordering
|
||||||
|
|
||||||
* _index.md - 01
|
* _index.md - 01
|
||||||
* migrate to hugo - 10
|
* migrate to hugo - 10
|
||||||
|
|||||||
@@ -104,10 +104,10 @@ Because additional format are external commands---with the exception of org mode
|
|||||||
[bfconfig]: /getting-started/configuration/#configuring-blackfriday-rendering
|
[bfconfig]: /getting-started/configuration/#configuring-blackfriday-rendering
|
||||||
[blackfriday]: https://github.com/russross/blackfriday
|
[blackfriday]: https://github.com/russross/blackfriday
|
||||||
[config]: /getting-started/configuration/
|
[config]: /getting-started/configuration/
|
||||||
[developer tools]: /developer-tools/
|
[developer tools]: /tools/
|
||||||
[fireball]: https://daringfireball.net/projects/markdown/
|
[fireball]: https://daringfireball.net/projects/markdown/
|
||||||
[helperssource]: https://github.com/spf13/hugo/blob/77c60a3440806067109347d04eb5368b65ea0fe8/helpers/general.go#L65
|
[helperssource]: https://github.com/spf13/hugo/blob/77c60a3440806067109347d04eb5368b65ea0fe8/helpers/general.go#L65
|
||||||
[hl]: /developer-tools/syntax-highlighting/
|
[hl]: /tools/syntax-highlighting/
|
||||||
[hlsc]: /content-management/shortcodes/#highlight
|
[hlsc]: /content-management/shortcodes/#highlight
|
||||||
[hugocss]: /css/style.min.css
|
[hugocss]: /css/style.min.css
|
||||||
[mdcheatsheet]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
|
[mdcheatsheet]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ To demonstrate the remarkably efficiency of Hugo's shortcode feature, we have em
|
|||||||
|
|
||||||
### `highlight`
|
### `highlight`
|
||||||
|
|
||||||
This shortcode will convert the source code provided into syntax-highlighted HTML. Read more on [highlighting](/developer-tools/syntax-highlighting/). `highlight` takes exactly one required parameter of _language_ and requires a closing shortcode.
|
This shortcode will convert the source code provided into syntax-highlighted HTML. Read more on [highlighting](/tools/syntax-highlighting/). `highlight` takes exactly one required parameter of _language_ and requires a closing shortcode.
|
||||||
|
|
||||||
#### Example `highlight` Input
|
#### Example `highlight` Input
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ The `highlight` shortcode example above would produce the following HTML when th
|
|||||||
{{% /output %}}
|
{{% /output %}}
|
||||||
|
|
||||||
{{% note "More on Syntax Highlighting" %}}
|
{{% note "More on Syntax Highlighting" %}}
|
||||||
To see even more options for adding syntax-highlighted code blocks to your website, see [Syntax Highlighting](/developer-tools/syntax-highlighting/) in Developer Tools.
|
To see even more options for adding syntax-highlighted code blocks to your website, see [Syntax Highlighting](/tools/syntax-highlighting/) in Developer Tools.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
### `instagram`
|
### `instagram`
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ that specifies three taxonomies (the default two, plus `series`).
|
|||||||
|
|
||||||
Notice the format is `singular key = "plural value"` for TOML and `singular key: "plural value"` for YAML:
|
Notice the format is `singular key = "plural value"` for TOML and `singular key: "plural value"` for YAML:
|
||||||
|
|
||||||
### TOML Taxonomy Configuration
|
### Example: TOML Taxonomy Configuration
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
@@ -117,7 +117,7 @@ Notice the format is `singular key = "plural value"` for TOML and `singular key:
|
|||||||
series = "series"
|
series = "series"
|
||||||
```
|
```
|
||||||
|
|
||||||
### YAML Taxonomy Configuration
|
### Example: YAML Taxonomy Configuration
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
taxonomies:
|
taxonomies:
|
||||||
@@ -128,29 +128,26 @@ taxonomies:
|
|||||||
|
|
||||||
### Overriding Hugo's Default Taxonomies
|
### Overriding Hugo's Default Taxonomies
|
||||||
|
|
||||||
If you do not specify any taxonomies in your site configuration file *and* your content already includes front matter with `tags:` or `categories`, Hugo will automatically create taxonomy pages. To override this behavior, set the key-value pairs for both of the default taxonomies to empty strings in your `config` file.
|
If you do not specify any taxonomies in your site configuration file *and* your content already includes front matter with `tags:` or `categories`, Hugo will automatically create taxonomy pages. To override this behavior, set the key-value pairs for both of the default taxonomies to empty strings in your `config` file:
|
||||||
|
|
||||||
{{% code file="remove-default-taxonomies-config.toml" %}}
|
|
||||||
```toml
|
```toml
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tag = ""
|
tag = ""
|
||||||
category = ""
|
category = ""
|
||||||
```
|
```
|
||||||
{{% /code %}}
|
|
||||||
|
|
||||||
{{% code file="remove-default-taxonomies-config.yml" %}}
|
|
||||||
```yaml
|
```yaml
|
||||||
taxonomies:
|
taxonomies:
|
||||||
tag: ""
|
tag: ""
|
||||||
category: ""
|
category: ""
|
||||||
```
|
```
|
||||||
{{% /code %}}
|
|
||||||
|
|
||||||
### Preserving Taxonomy Values
|
### Preserving Taxonomy Values
|
||||||
|
|
||||||
By default, taxonomy names are hyphenated, lower-cased, normalized, and then fixed and title-ized within.
|
By default, taxonomy names are hyphenated, lower-cased, normalized, and then fixed and title-ized within.
|
||||||
|
|
||||||
Therefore, if you want to have a taxonomy value with special characters such as `Gérard Depardieu` instead of `Gerard Depardieu`, you need to set the value for `preserveTaxonomyNames` in your [site configuration][config] to `true`. Hugo will then preserve special characters in taxonomy values but will still title-ize the values for titles and normalize them in URLs.
|
Therefore, if you want to have a taxonomy value with special characters such as `Gérard Depardieu` instead of `Gerard Depardieu`, set the value for `preserveTaxonomyNames` to `true` in your [site configuration][config]. Hugo will then preserve special characters in taxonomy values but will still title-ize the values for titles and normalize them in URLs.
|
||||||
|
|
||||||
Note that if you use `preserveTaxonomyNames` and intend to manually construct URLs to the archive pages, you will need to pass the taxonomy values through the [`urlize` template function][].
|
Note that if you use `preserveTaxonomyNames` and intend to manually construct URLs to the archive pages, you will need to pass the taxonomy values through the [`urlize` template function][].
|
||||||
|
|
||||||
@@ -164,7 +161,7 @@ Assigning content to a taxonomy is done in the [front matter][]. Simply create a
|
|||||||
If you would like the ability to quickly generate content files with preconfigured taxonomies or terms, read the docs on [Hugo archetypes](/content-management/archetypes/).
|
If you would like the ability to quickly generate content files with preconfigured taxonomies or terms, read the docs on [Hugo archetypes](/content-management/archetypes/).
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
### TOML Front Matter with Taxonomies Example
|
### Example: TOML Front Matter with Taxonomies
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
+++
|
+++
|
||||||
@@ -177,7 +174,7 @@ project_url = "https://github.com/spf13/hugo"
|
|||||||
+++
|
+++
|
||||||
```
|
```
|
||||||
|
|
||||||
### YAML Front Matter with Taxonomies Example
|
### Example: YAML Front Matter with Taxonomies
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
@@ -190,7 +187,7 @@ project_url: "https://github.com/spf13/hugo"
|
|||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
### JSON Front Matter with Taxonomies Example
|
### Example: JSON Front Matter with Taxonomies
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -218,7 +215,7 @@ A content file can assign weight for each of its associate taxonomies. Taxonomic
|
|||||||
|
|
||||||
The following TOML and YAML examples show a piece of content that has a weight of 22, which can be used for ordering purposes when rendering the pages assigned to the "a", "b" and "c" values of the `tags` taxonomy. It has also been assigned the weight of 44 when rendering the "d" category page.
|
The following TOML and YAML examples show a piece of content that has a weight of 22, which can be used for ordering purposes when rendering the pages assigned to the "a", "b" and "c" values of the `tags` taxonomy. It has also been assigned the weight of 44 when rendering the "d" category page.
|
||||||
|
|
||||||
### TOML Taxonomic `weight` Example
|
### Example: TOML Taxonomic `weight`
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
+++
|
+++
|
||||||
@@ -230,16 +227,16 @@ categories_weight = 44
|
|||||||
+++
|
+++
|
||||||
```
|
```
|
||||||
|
|
||||||
### YAML Taxonomic `weight` Example
|
### Example: YAML Taxonomic `weight`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
+++
|
---
|
||||||
title: foo
|
title: foo
|
||||||
tags: [ "a", "b", "c" ]
|
tags: [ "a", "b", "c" ]
|
||||||
tags_weight: 22
|
tags_weight: 22
|
||||||
categories: ["d"]
|
categories: ["d"]
|
||||||
categories_weight: 44
|
categories_weight: 44
|
||||||
+++
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
By using taxonomic weight, the same piece of content can appear in different positions in different taxonomies.
|
By using taxonomic weight, the same piece of content can appear in different positions in different taxonomies.
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ See [Installing Hugo][installpygments] for more information on Pygments or [Synt
|
|||||||
|
|
||||||
[highlight]: /content-management/shortcodes/#highlight
|
[highlight]: /content-management/shortcodes/#highlight
|
||||||
[installpygments]: /getting-started/installing/#installing-pygments-optional
|
[installpygments]: /getting-started/installing/#installing-pygments-optional
|
||||||
[syntax]: /developer-tools/syntax-highlighting/
|
[syntax]: /tools/syntax-highlighting/
|
||||||
@@ -247,7 +247,7 @@ The rendered output of the HTML example code block will be as follows:
|
|||||||
{{% /output %}}
|
{{% /output %}}
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
The preceding shortcode makes use of a Hugo-specific template function called `highlight`, which uses [Pygments](http://pygments.org) to add syntax highlighting to the example HTML code block. See the [developer tools page on syntax highlighting](/developer-tools/syntax-highlighting/) for more information.
|
The preceding shortcode makes use of a Hugo-specific template function called `highlight`, which uses [Pygments](http://pygments.org) to add syntax highlighting to the example HTML code block. See the [developer tools page on syntax highlighting](/tools/syntax-highlighting/) for more information.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
## More Shortcode Examples
|
## More Shortcode Examples
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Hugo provides multiple ways to use taxonomies throughout your project:
|
|||||||
|
|
||||||
* Order the way the terms for a taxonomy are displayed in a [taxonomy terms template](#taxonomy-terms-template)
|
* Order the way the terms for a taxonomy are displayed in a [taxonomy terms template](#taxonomy-terms-template)
|
||||||
* Order the way content associated with a taxonomy term are display in a [taxonomy list template](#taxonomy-list-template)
|
* Order the way content associated with a taxonomy term are display in a [taxonomy list template](#taxonomy-list-template)
|
||||||
* List a single content's taxonomy terms within a [single page template]()
|
* List a single content's taxonomy terms within a [single page template][]
|
||||||
|
|
||||||
## Taxonomy List Templates
|
## Taxonomy List Templates
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ To list such taxonomies, use the following:
|
|||||||
|
|
||||||
Alternatively, you may use the [delimit template function][delimit] as a shortcut if the taxonomies should just be listed with a separator. See {{< gh 2143 >}} on GitHub for discussion.
|
Alternatively, you may use the [delimit template function][delimit] as a shortcut if the taxonomies should just be listed with a separator. See {{< gh 2143 >}} on GitHub for discussion.
|
||||||
|
|
||||||
## 2. Listing content with the Same Taxonomy Term
|
## Listing content with the Same Taxonomy Term
|
||||||
|
|
||||||
First, you may be asking why you would use this. If you are using a taxonomy for something like a series of posts, this is exactly how you would do it. It’s also a quick and dirty way to show some related content.
|
First, you may be asking why you would use this. If you are using a taxonomy for something like a series of posts, this is exactly how you would do it. It’s also a quick and dirty way to show some related content.
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ First, you may be asking why you would use this. If you are using a taxonomy for
|
|||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3. Listing all content in a given taxonomy
|
## Listing all content in a given taxonomy
|
||||||
|
|
||||||
This would be very useful in a sidebar as “featured content”. You could even have different sections of “featured content” by assigning different terms to the content.
|
This would be very useful in a sidebar as “featured content”. You could even have different sections of “featured content” by assigning different terms to the content.
|
||||||
|
|
||||||
@@ -258,7 +258,7 @@ This would be very useful in a sidebar as “featured content”. You could even
|
|||||||
</section>
|
</section>
|
||||||
```
|
```
|
||||||
|
|
||||||
## 4. Rendering a Site's Taxonomies
|
## Rendering a Site's Taxonomies
|
||||||
|
|
||||||
If you wish to display the list of all keys for your site's taxonomy, you can retrieve them from the [`.Site` variable][sitevars] available on every page.
|
If you wish to display the list of all keys for your site's taxonomy, you can retrieve them from the [`.Site` variable][sitevars] available on every page.
|
||||||
|
|
||||||
@@ -312,4 +312,5 @@ This example will list all taxonomies, each of their keys, and all the content a
|
|||||||
|
|
||||||
[delimit]: /functions/delimit/
|
[delimit]: /functions/delimit/
|
||||||
[renderlists]: /templates/lists/
|
[renderlists]: /templates/lists/
|
||||||
|
[single page template]: /templates/single-page-templates/
|
||||||
[sitevars]: /variables/site-variables/
|
[sitevars]: /variables/site-variables/
|
||||||
@@ -17,4 +17,4 @@ One of Hugo's greatest strengths is it's passionate---and always evolving---deve
|
|||||||
[See the popularity of Hugo compared with other static site generators.][staticgen]
|
[See the popularity of Hugo compared with other static site generators.][staticgen]
|
||||||
|
|
||||||
[staticgen]: https://staticgen.com
|
[staticgen]: https://staticgen.com
|
||||||
[syntax]: /developer-tools/syntax-highlighting/
|
[syntax]: /tools/syntax-highlighting/
|
||||||
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Migrate to Hugo
|
title: Migrate to Hugo
|
||||||
linktitle: Migrate to Hugo
|
linktitle: Migrations
|
||||||
description: A list of community-developed tools for migrating from your existing static site generator or content management system to Hugo.
|
description: A list of community-developed tools for migrating from your existing static site generator or content management system to Hugo.
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
File renamed without changes.
File renamed without changes.
@@ -22,7 +22,7 @@ The following starter kits are developed by active members of the Hugo community
|
|||||||
* [Blaupause][]. Blaupause is a developer-friendly Hugo starter kit based on Gulp tasks. It comes ES6-ready with several helpers for SVG and fonts and basic structure for HTML, SCSS, and JavaScript.
|
* [Blaupause][]. Blaupause is a developer-friendly Hugo starter kit based on Gulp tasks. It comes ES6-ready with several helpers for SVG and fonts and basic structure for HTML, SCSS, and JavaScript.
|
||||||
* [hugulp][]. hugulp is a tool to optimize the assets of a Hugo website. The main idea is to recreate the famous Ruby on Rails Asset Pipeline, which minifies, concatenates and fingerprints the assets used in your website.
|
* [hugulp][]. hugulp is a tool to optimize the assets of a Hugo website. The main idea is to recreate the famous Ruby on Rails Asset Pipeline, which minifies, concatenates and fingerprints the assets used in your website.
|
||||||
|
|
||||||
[addkit]: https://github.com/spf13/hugo/edit/master/docs/content/developer-tools/starter-kits.md
|
[addkit]: https://github.com/spf13/hugo/edit/master/docs/content/tools/starter-kits.md
|
||||||
[Blaupause]: https://github.com/fspoettel/blaupause
|
[Blaupause]: https://github.com/fspoettel/blaupause
|
||||||
[hugulp]: https://github.com/jbrodriguez/hugulp
|
[hugulp]: https://github.com/jbrodriguez/hugulp
|
||||||
[Victor Hugo]: https://github.com/netlify/victor-hugo
|
[Victor Hugo]: https://github.com/netlify/victor-hugo
|
||||||
File renamed without changes.
@@ -1,209 +0,0 @@
|
|||||||
[[quotes]]
|
|
||||||
name = "Execute"
|
|
||||||
twitter_handle = "@executerun"
|
|
||||||
quote = "Hah, #gohugo. I was working with #gohugo on #linux but now I realised how easy is to set-up it on #windows. Just need to add binary to #path!"
|
|
||||||
link = "https://twitter.com/executerun/status/809753145270272005"
|
|
||||||
date = 2016-12-16T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Janez Čadež"
|
|
||||||
twitter_handle = "@jamziSLO"
|
|
||||||
quote = "Building @garazaFRI website in #hugo. This static site generator is soooo damn fast!"
|
|
||||||
link = "https://twitter.com/jamziSLO/status/817720283977183234"
|
|
||||||
date = 2017-01-07T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Hans Beck"
|
|
||||||
twitter_handle = "@EnrichedGamesHB"
|
|
||||||
quote = "Diving deeper into @GoHugoIO . A lot of docs there, top work! But I've the impressed that #gohugo is far easier than its feels from the docs!"
|
|
||||||
link = "https://twitter.com/EnrichedGamesHB/status/836854762440130560"
|
|
||||||
date = 2017-03-01T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Alan Richardson"
|
|
||||||
twitter_handle = "@eviltester"
|
|
||||||
quote = "I migrated the <a href='https://twitter.com/BlackOpsTesting'> @BlackOpsTesting </a> .com website from docpad to Hugo last weekend. http://gohugo.io/ Super Fast HTML Generation <a href='https://twitter.com/spf13'> @spf13 </a>"
|
|
||||||
link = "https://twitter.com/eviltester/status/553520335115808768"
|
|
||||||
date = 2015-01-09T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Baron Schwartz"
|
|
||||||
twitter_handle = "@xaprb"
|
|
||||||
quote = "Hugo is impressively capable. It's a static site generator by <a href='https://twitter.com/spf13'> @spf13 </a> written in <a href='https://twitter.com/hashtag/golang?src=hash'> #golang </a> . Just upgraded to latest release; very powerful. "
|
|
||||||
link = "https://twitter.com/xaprb/status/556894866488455169"
|
|
||||||
date = 2015-01-18T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Dave Cottlehuber"
|
|
||||||
twitter_handle = "@dch__"
|
|
||||||
quote = "I just fell in love with #hugo, a static site/blog engine written by @spf13 in #golang + stellar docs"
|
|
||||||
link = "https://twitter.com/dch__/status/460158115498176512"
|
|
||||||
date = 2014-04-26T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "David Caunt"
|
|
||||||
twitter_handle = "@dcaunt"
|
|
||||||
quote = "I had a play with Hugo and it was good, uses Markdown files for content"
|
|
||||||
link = "https://twitter.com/dcaunt/statuses/406466996277374976"
|
|
||||||
date = 2013-11-29T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "David Gay"
|
|
||||||
twitter_handle = "@oddshocks"
|
|
||||||
quote = "Hugo is super-rad."
|
|
||||||
link = "https://twitter.com/oddshocks/statuses/405083217893421056"
|
|
||||||
date = 2013-11-25T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Diti"
|
|
||||||
twitter_handle = "@DitiPengi"
|
|
||||||
quote = "The dev version of Hugo is AWESOME! <3 I promise, I will try to learn go ASAP and help contribute to the project! Just too great!"
|
|
||||||
link = "https://twitter.com/DitiPengi/status/472470974051676160"
|
|
||||||
date = 2014-05-30T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Douglas Stephen "
|
|
||||||
twitter_handle = "@DougStephenJr"
|
|
||||||
quote = "Even as a long-time Octopress fan, I’ve gotta admit that this project Hugo looks very very cool"
|
|
||||||
link = "https://twitter.com/DougStephenJr/statuses/364512471660249088"
|
|
||||||
date = 2013-08-05T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Hugo Rodger-Brown"
|
|
||||||
twitter_handle = "@hugorodgerbrown"
|
|
||||||
quote = "Finally someone builds me my own static site generator"
|
|
||||||
link = "https://twitter.com/hugorodgerbrown/statuses/364417910153818112"
|
|
||||||
date = 2013-05-08T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Hugo Roy"
|
|
||||||
twitter_handle = "@hugoroyd"
|
|
||||||
quote = "Finally the answer to the question my parents have been asking: What does Hugo do?"
|
|
||||||
link = "https://twitter.com/hugoroyd/status/501704796727173120"
|
|
||||||
date = 2014-08-19T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Daniel Miessler"
|
|
||||||
twitter_handle = "@DanielMiessler"
|
|
||||||
quote = "Websites for named vulnerabilities should run on static site generator platforms like Hugo. Read-only + burst traffic = static."
|
|
||||||
link = "https://twitter.com/DanielMiessler/status/704703841673957376"
|
|
||||||
date = 2016-03-01T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Javier Segura"
|
|
||||||
twitter_handle = "@jsegura"
|
|
||||||
quote = "Another site generated with Hugo here! I'm getting in love with it."
|
|
||||||
link = "https://twitter.com/jsegura/status/465978434154659841"
|
|
||||||
date = 2014-05-12T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Jim Biancolo"
|
|
||||||
twitter_handle = "@jimbiancolo"
|
|
||||||
quote = "I’m loving the static site generator renaissance we are currently enjoying. Hugo is new, looks great, written in Go"
|
|
||||||
link = "https://twitter.com/jimbiancolo/statuses/408678420348813314"
|
|
||||||
date = 2013-05-12T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Jip J. Dekker"
|
|
||||||
twitter_handle = "@jipjdekker"
|
|
||||||
quote = "Building a personal website in Hugo. Works like a charm. And written in @golang!"
|
|
||||||
link = "https://twitter.com/jipjdekker/status/413783548735152131"
|
|
||||||
date = 2013-12-19T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Jose Gonzalvo"
|
|
||||||
twitter_handle = "@jgonzalvo"
|
|
||||||
quote = "Checking out Hugo; Loving it so far. Like Jekyll but not so blog-oriented and written in go"
|
|
||||||
link = "https://twitter.com/jgonzalvo/statuses/408177855819173888"
|
|
||||||
date = 2013-12-04T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Josh Matz"
|
|
||||||
twitter_handle = "@joshmatz"
|
|
||||||
quote = "A static site generator without the long build times? Yes, please!"
|
|
||||||
link = "https://twitter.com/joshmatz/statuses/364437436870696960"
|
|
||||||
date = 2013-08-05T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Kieran Healy"
|
|
||||||
twitter_handle = "@kjhealy"
|
|
||||||
quote = "OK, so in today's speed battle of static site generators, @spf13's hugo is kicking everyone's ass, by miles."
|
|
||||||
link = "https://twitter.com/kjhealy/status/437349384809115648"
|
|
||||||
date = 2014-02-22T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Ludovic Chabant"
|
|
||||||
twitter_handle = "@ludovicchabant"
|
|
||||||
quote = "Good work on Hugo, I’m impressed with the speed!"
|
|
||||||
link = "https://twitter.com/ludovicchabant/statuses/408806199602053120"
|
|
||||||
date = 2013-12-06T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Luke Holder"
|
|
||||||
twitter_handle = "@lukeholder"
|
|
||||||
quote = "this is AWESOME. a single little executable and so fast."
|
|
||||||
link = "https://twitter.com/lukeholder/status/430352287936946176"
|
|
||||||
date = 2014-02-03T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Markus Eliasson"
|
|
||||||
twitter_handle = "@markuseliasson"
|
|
||||||
quote = "Hugo is fast, dead simple to setup and well documented"
|
|
||||||
link = "https://twitter.com/markuseliasson/status/501594865877008384"
|
|
||||||
date = 2014-08-19T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "mercime"
|
|
||||||
twitter_handle = "@mercime_one"
|
|
||||||
quote = "Hugo: Makes the Web Fun Again"
|
|
||||||
link = "https://twitter.com/mercime_one/status/500547145087205377"
|
|
||||||
date = 2014-08-16T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Michael Whatcott"
|
|
||||||
twitter_handle = "@mdwhatcott"
|
|
||||||
quote = "One more satisfied #Hugo blogger. Thanks @spf13 and friends!"
|
|
||||||
link = "https://twitter.com/mdwhatcott/status/469980686531571712"
|
|
||||||
date = 2014-05-23T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Nathan Toups"
|
|
||||||
twitter_handle = "@rojoroboto"
|
|
||||||
quote = "I love Hugo! My site is generated with it now http://rjrbt.io"
|
|
||||||
link = "https://twitter.com/rojoroboto/status/423439915620106242"
|
|
||||||
date = 2014-01-15T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Ruben Solvang"
|
|
||||||
twitter_handle = "@messo85"
|
|
||||||
quote = "#Hugo is the new @jekyllrb / @middlemanapp! Faster, easier and runs everywhere."
|
|
||||||
link = "https://twitter.com/messo85/status/472825062027182081"
|
|
||||||
date = 2014-05-31T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "Ryan Martinsen"
|
|
||||||
twitter_handle = "@popthestack"
|
|
||||||
quote = "Also, I re-launched my blog (it looks the same as before) using Hugo, a *fast* static engine. Very happy with it. <a href='http://gohugo.io/'>gohugo.io</a>"
|
|
||||||
link = "https://twitter.com/popthestack/status/549972754125307904"
|
|
||||||
date = 2014-12-30T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "The Lone Cuber"
|
|
||||||
twitter_handle = "@TheLoneCuber"
|
|
||||||
quote = "Jekyll is dead to me these days though... long live Hugo! Hugo is *by far* the best in its field. Thanks for making it happen."
|
|
||||||
link = "https://twitter.com/TheLoneCuber/status/495716684456398848"
|
|
||||||
date = 2014-08-02T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "The Lone Cuber"
|
|
||||||
twitter_handle = "@TheLoneCuber"
|
|
||||||
quote = "Finally, a publishing platform that's a joy to use. #NoMoreBarriers"
|
|
||||||
link = "https://twitter.com/TheLoneCuber/status/495731334711488512"
|
|
||||||
date = 2014-08-02T00:00:00Z
|
|
||||||
|
|
||||||
[[quotes]]
|
|
||||||
name = "WorkHTML"
|
|
||||||
twitter_handle = "@workhtml"
|
|
||||||
quote = "<a href='https://twitter.com/hashtag/Hugo?src=hash'> #Hugo </a> A very good alternative for <a href='https://twitter.com/hashtag/wordpress?src=hash'> #wordpress </a> !!! A fast and modern static website engine <a href='http://gohugo.io/'> gohugo.io </a>"
|
|
||||||
link = "https://twitter.com/workhtml/status/563064361301053440"
|
|
||||||
date = 2015-02-04T00:00:00Z
|
|
||||||
@@ -33,7 +33,7 @@ functions:
|
|||||||
haschildren: false
|
haschildren: false
|
||||||
sortsubpagesby: "title"
|
sortsubpagesby: "title"
|
||||||
desc: "Comprehensive list of Hugo templating functions, including basic and advanced usage examples"
|
desc: "Comprehensive list of Hugo templating functions, including basic and advanced usage examples"
|
||||||
variablesandparams:
|
variables:
|
||||||
order: 6
|
order: 6
|
||||||
title: "Variables"
|
title: "Variables"
|
||||||
url: "variables"
|
url: "variables"
|
||||||
@@ -61,10 +61,10 @@ tutorials:
|
|||||||
haschildren: true
|
haschildren: true
|
||||||
sortsubpagesby: "title"
|
sortsubpagesby: "title"
|
||||||
desc: "Community-aggregated articles and code examples for approaching different projects with Hugo"
|
desc: "Community-aggregated articles and code examples for approaching different projects with Hugo"
|
||||||
developertools:
|
tools:
|
||||||
order: 10
|
order: 10
|
||||||
title: "Developer Tools"
|
title: "Developer Tools"
|
||||||
url: "developer-tools"
|
url: "tools"
|
||||||
haschildren: true
|
haschildren: true
|
||||||
sortsubpagesby: "weight"
|
sortsubpagesby: "weight"
|
||||||
desc: "Syntax highlighting, site search, text editor plug-ins, and migration tools"
|
desc: "Syntax highlighting, site search, text editor plug-ins, and migration tools"
|
||||||
|
|||||||
@@ -33,7 +33,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
|
||||||
{{ define "addscripts" }}
|
|
||||||
<script src="{{ "js/homepage.js" | relURL }}" async defer></script>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="half half-content">
|
<div class="half half-content">
|
||||||
<h2>Focus on your content and design.</h2>
|
<h2>Focus on your content and design.</h2>
|
||||||
<hr class="hr">
|
<hr class="hr">
|
||||||
<p>Forget databases, security updates, and cofee breaks spent waiting for your site to rebuild.</p>
|
<p>Forget databases, security updates, and cofee breaks spent starting at your command line while you wait for your static site to build.</p>
|
||||||
<p>Golang's speed combined with markdown's elegant simplicity mean Hugo is the first static site generator fast enough to keep up with your creativity.</p>
|
<p>Golang's speed combined with markdown's elegant simplicity mean Hugo is the first static site generator fast enough to keep up with your creativity.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="focus-svgs">
|
<div class="focus-svgs">
|
||||||
|
|||||||
@@ -0,0 +1,117 @@
|
|||||||
|
$(document).ready(function() {
|
||||||
|
let isHome = document.getElementById('homepage') ? true : false;
|
||||||
|
if (!isHome) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
$('#homepage-nav > ul.animated').addClass('fadeInDown');
|
||||||
|
$('.home-row.hero.animated').addClass('fadeIn');
|
||||||
|
var
|
||||||
|
scrolled = false,
|
||||||
|
atTop = true,
|
||||||
|
terminal = $('.homepage-terminal'),
|
||||||
|
gopher = $('#gopher'),
|
||||||
|
cape = $('.gopher-cape'),
|
||||||
|
badge = $('.gopher-badge'),
|
||||||
|
installrow = $('.home-row.install');
|
||||||
|
|
||||||
|
$(window).scroll(function() {
|
||||||
|
let scroll = $(this).scrollTop(),
|
||||||
|
offset = installrow.offset().top - 120;
|
||||||
|
console.log(scrolled, atTop);
|
||||||
|
if (scroll > 20 && atTop == true) {
|
||||||
|
$('#homepage-nav').addClass('shadow');
|
||||||
|
atTop = false;
|
||||||
|
} else
|
||||||
|
if (scroll < 20) {
|
||||||
|
$('#homepage-nav').removeClass('shadow');
|
||||||
|
atTop = true;
|
||||||
|
} else if (scroll > offset && scrolled == false) {
|
||||||
|
terminal.blast({ delimiter: "letter" }).velocity("transition.fadeIn", {
|
||||||
|
display: null,
|
||||||
|
customClass: "visible",
|
||||||
|
duration: 0,
|
||||||
|
stagger: 60,
|
||||||
|
delay: 0,
|
||||||
|
complete: function() {
|
||||||
|
gopher.velocity('callout.tada', {
|
||||||
|
duration: 800,
|
||||||
|
complete: function() {
|
||||||
|
badge.addClass('bounceIn');
|
||||||
|
cape.addClass('fadeIn');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
scrolled = true;
|
||||||
|
}
|
||||||
|
// else if (scroll > offset3)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// var mySequence = [
|
||||||
|
// { e: $element1, p: { translateX: 100 }, o: { duration: 1000 } },
|
||||||
|
// /* The call below will run at the same time as the first call. */
|
||||||
|
// { e: $element2, p: { translateX: 200 }, o: { duration: 1000, sequenceQueue: false },
|
||||||
|
// /* As normal, the call below will run once the second call is complete. */
|
||||||
|
// { e: $element3, p: { translateX: 300 }, o: { duration: 1000 }
|
||||||
|
// ];
|
||||||
|
// $.Velocity.RunSequence(mySequence);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// terminalElements = document.querySelectorAll('span.terminal-line');
|
||||||
|
|
||||||
|
// function terminals_init() {
|
||||||
|
// var elements = terminalElements;
|
||||||
|
// for (var i = 0; i < elements.length; i++) {
|
||||||
|
// var e = elements[i]
|
||||||
|
// e.completeHTML = e.innerHTML
|
||||||
|
// e.innerHTML = ""
|
||||||
|
// e.i = 0
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function terminals_start() {
|
||||||
|
// //terminalIntervalFunction = function(){ terminals_next() }
|
||||||
|
// // setInterval(terminalIntervalFunction, 1000/60);
|
||||||
|
// terminals_next()
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function terminals_next() {
|
||||||
|
// var done = true
|
||||||
|
// var elements = terminalElements;
|
||||||
|
|
||||||
|
// for (var i = 0; i < elements.length && done == true; i++) {
|
||||||
|
// var e = elements[i]
|
||||||
|
|
||||||
|
// e.i++
|
||||||
|
|
||||||
|
// if (e.innerHTML.length >= e.completeHTML.length) {
|
||||||
|
// e.innerHTML = e.completeHTML
|
||||||
|
// } else {
|
||||||
|
// var s = e.completeHTML.substring(0, e.i)
|
||||||
|
|
||||||
|
// if (s.slice(-1) == " ") {
|
||||||
|
// if (e.innerHTML.length % 6 == 0) { s = s + "" } else { s = s + "|" }
|
||||||
|
// } else {
|
||||||
|
// s = s + "|"
|
||||||
|
// }
|
||||||
|
|
||||||
|
// e.innerHTML = s
|
||||||
|
// e.parentNode.style.display = 'none'
|
||||||
|
// e.parentNode.style.display = 'block'
|
||||||
|
// done = false
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (!done) {
|
||||||
|
// //window.clearInterval(terminalIntervalFunction)
|
||||||
|
// setTimeout(terminals_next, 1600 / 15)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// terminals_init()
|
||||||
|
|
||||||
|
// window.onload = function() { terminals_start() };
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
// /* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+asciidoc+bash+git+go+http+json+markdown+powershell+rest+scss+yaml */
|
|
||||||
// var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,util:{encode:function(e){return e instanceof a?new a(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){var t=n.util.type(e);switch(t){case"Object":var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=n.util.clone(e[r]));return a;case"Array":return e.map&&e.map(function(e){return n.util.clone(e)})}return e}},languages:{extend:function(e,t){var a=n.util.clone(n.languages[e]);for(var r in t)a[r]=t[r];return a},insertBefore:function(e,t,a,r){r=r||n.languages;var l=r[e];if(2==arguments.length){a=arguments[1];for(var i in a)a.hasOwnProperty(i)&&(l[i]=a[i]);return l}var o={};for(var s in l)if(l.hasOwnProperty(s)){if(s==t)for(var i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);o[s]=l[s]}return n.languages.DFS(n.languages,function(t,n){n===r[e]&&t!=e&&(this[t]=o)}),r[e]=o},DFS:function(e,t,a,r){r=r||{};for(var l in e)e.hasOwnProperty(l)&&(t.call(e,l,e[l],a||l),"Object"!==n.util.type(e[l])||r[n.util.objId(e[l])]?"Array"!==n.util.type(e[l])||r[n.util.objId(e[l])]||(r[n.util.objId(e[l])]=!0,n.languages.DFS(e[l],t,l,r)):(r[n.util.objId(e[l])]=!0,n.languages.DFS(e[l],t,null,r)))}},plugins:{},highlightAll:function(e,t){var a={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",a);for(var r,l=a.elements||document.querySelectorAll(a.selector),i=0;r=l[i++];)n.highlightElement(r,e===!0,a.callback)},highlightElement:function(t,a,r){for(var l,i,o=t;o&&!e.test(o.className);)o=o.parentNode;o&&(l=(o.className.match(e)||[,""])[1].toLowerCase(),i=n.languages[l]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+l,o=t.parentNode,/pre/i.test(o.nodeName)&&(o.className=o.className.replace(e,"").replace(/\s+/g," ")+" language-"+l);var s=t.textContent,u={element:t,language:l,grammar:i,code:s};if(n.hooks.run("before-sanity-check",u),!u.code||!u.grammar)return u.code&&(u.element.textContent=u.code),n.hooks.run("complete",u),void 0;if(n.hooks.run("before-highlight",u),a&&_self.Worker){var g=new Worker(n.filename);g.onmessage=function(e){u.highlightedCode=e.data,n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,r&&r.call(u.element),n.hooks.run("after-highlight",u),n.hooks.run("complete",u)},g.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else u.highlightedCode=n.highlight(u.code,u.grammar,u.language),n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,r&&r.call(t),n.hooks.run("after-highlight",u),n.hooks.run("complete",u)},highlight:function(e,t,r){var l=n.tokenize(e,t);return a.stringify(n.util.encode(l),r)},tokenize:function(e,t){var a=n.Token,r=[e],l=t.rest;if(l){for(var i in l)t[i]=l[i];delete t.rest}e:for(var i in t)if(t.hasOwnProperty(i)&&t[i]){var o=t[i];o="Array"===n.util.type(o)?o:[o];for(var s=0;s<o.length;++s){var u=o[s],g=u.inside,c=!!u.lookbehind,h=!!u.greedy,f=0,d=u.alias;if(h&&!u.pattern.global){var p=u.pattern.toString().match(/[imuy]*$/)[0];u.pattern=RegExp(u.pattern.source,p+"g")}u=u.pattern||u;for(var m=0,y=0;m<r.length;y+=r[m].length,++m){var v=r[m];if(r.length>e.length)break e;if(!(v instanceof a)){u.lastIndex=0;var b=u.exec(v),k=1;if(!b&&h&&m!=r.length-1){if(u.lastIndex=y,b=u.exec(e),!b)break;for(var w=b.index+(c?b[1].length:0),_=b.index+b[0].length,P=m,A=y,j=r.length;j>P&&_>A;++P)A+=r[P].length,w>=A&&(++m,y=A);if(r[m]instanceof a||r[P-1].greedy)continue;k=P-m,v=e.slice(y,A),b.index-=y}if(b){c&&(f=b[1].length);var w=b.index+f,b=b[0].slice(f),_=w+b.length,x=v.slice(0,w),O=v.slice(_),S=[m,k];x&&S.push(x);var N=new a(i,g?n.tokenize(b,g):b,d,b,h);S.push(N),O&&S.push(O),Array.prototype.splice.apply(r,S)}}}}}return r},hooks:{all:{},add:function(e,t){var a=n.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=n.hooks.all[e];if(a&&a.length)for(var r,l=0;r=a[l++];)r(t)}}},a=n.Token=function(e,t,n,a,r){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length,this.greedy=!!r};if(a.stringify=function(e,t,r){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return a.stringify(n,t,e)}).join("");var l={type:e.type,content:a.stringify(e.content,t,r),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:r};if("comment"==l.type&&(l.attributes.spellcheck="true"),e.alias){var i="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(l.classes,i)}n.hooks.run("wrap",l);var o=Object.keys(l.attributes).map(function(e){return e+'="'+(l.attributes[e]||""
Line truncated
|
|
||||||
// Prism.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/i,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup;
|
|
||||||
// Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:{pattern:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag));
|
|
||||||
// Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};
|
|
||||||
// Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*\*?|\/|~|\^|%|\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\|\\?[^\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript;
|
|
||||||
// !function(a){var i={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\]\\]|\\.)*\]|[^\]\\]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}};a.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?!\|)(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*])?(?:[<^>](?:\.[<^>])?|\.[<^>])?[a-z]*)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} +.+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:i,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:TIP|NOTE|IMPORTANT|WARNING|CAUTION):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:(?:\S+)??\[(?:[^\]\\"]|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{"function":/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"]|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:i.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"]|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?: ['`]|.)+?(?:(?:\r?\n|\r)(?: ['`]|.)+?)*['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"]|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:i,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|TM|R)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}},i.inside.interpreted.inside.rest={macro:a.languages.asciidoc.macro,inline:a.languages.asciidoc.inline,replacement:a.languages.asciidoc.replacement,entity:a.languages.asciidoc.entity},a.languages.asciidoc["passthrough-block"].inside.rest={macro:a.languages.asciidoc.macro},a.languages.asciidoc["literal-block"].inside.rest={callout:a.languages.asciidoc.callout},a.languages.asciidoc.table.inside.rest={"comment-block":a.languages.asciidoc["comment-block"],"passthrough-block":a.languages.asciidoc["passthrough-block"],"literal-block":a.languages.asciidoc["literal-block"],"other-block":a.languages.asciidoc["other-block"],"list-punctuation":a.languages.asciidoc["list-punctuation"],"indented-block":a.languages.asciidoc["indented-block"],comment:a.languages.asciidoc.comment,title:a.languages.asciidoc.title,"attribute-entry":a.languages.asciidoc["attribute-entry"],attributes:a.languages.asciidoc.attributes,hr:a.languages.asciidoc.hr,"page-break":a.languages.asciidoc["page-break"],admonition:a.languages.asciidoc.admonition,"list-label":a.languages.asciidoc["list-label"],callout:a.languages.asciidoc.callout,macro:a.languages.asciidoc.macro,inline:a.languages.asciidoc.inline,replacement:a.languages.asciidoc.replacement,entity:a.languages.asciidoc.entity,"line-continuation":a.languages.asciidoc["line-continuation"]},a.languages.asciidoc["other-block"].inside.rest=
Line truncated
|
|
||||||
// !function(e){var t={variable:[{pattern:/\$?\(\([\w\W]+?\)\)/,inside:{variable:[{pattern:/(^\$\(\([\w\W]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\([^)]+\)|`[^`]+`/,inside:{variable:/^\$\(|^`|\)$|`$/}},/\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i]};e.languages.bash={shebang:{pattern:/^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,alias:"important"},comment:{pattern:/(^|[^"{\\])#.*/,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g,lookbehind:!0,greedy:!0,inside:t},{pattern:/(["'])(?:\\\\|\\?[^\\])*?\1/g,greedy:!0,inside:t}],variable:t.variable,"function":{pattern:/(^|\s|;|\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|npm|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\s|;|\||&)/,lookbehind:!0},keyword:{pattern:/(^|\s|;|\||&)(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\s|;|\||&)/,lookbehind:!0},"boolean":{pattern:/(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/,lookbehind:!0},operator:/&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];]/};var a=t.variable[1].inside;a["function"]=e.languages.bash["function"],a.keyword=e.languages.bash.keyword,a.boolean=e.languages.bash.boolean,a.operator=e.languages.bash.operator,a.punctuation=e.languages.bash.punctuation}(Prism);
|
|
||||||
// Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(\\?.)*?\1/m,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s(--|-)\w+/m}},coord:/^@@.*@@$/m,commit_sha1:/^commit \w{40}$/m};
|
|
||||||
// Prism.languages.go=Prism.languages.extend("clike",{keyword:/\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/,"boolean":/\b(_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i,string:/("|'|`)(\\?.|\r|\n)*?\1/}),delete Prism.languages.go["class-name"];
|
|
||||||
// Prism.languages.http={"request-line":{pattern:/^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b\shttps?:\/\/\S+\sHTTP\/[0-9.]+/m,inside:{property:/^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b/,"attr-name":/:\w+/}},"response-status":{pattern:/^HTTP\/1.[01] [0-9]+.*/m,inside:{property:{pattern:/(^HTTP\/1.[01] )[0-9]+.*/i,lookbehind:!0}}},"header-name":{pattern:/^[\w-]+:(?=.)/m,alias:"keyword"}};var httpLanguages={"application/json":Prism.languages.javascript,"application/xml":Prism.languages.markup,"text/xml":Prism.languages.markup,"text/html":Prism.languages.markup};for(var contentType in httpLanguages)if(httpLanguages[contentType]){var options={};options[contentType]={pattern:new RegExp("(content-type:\\s*"+contentType+"[\\w\\W]*?)(?:\\r?\\n|\\r){2}[\\w\\W]*","i"),lookbehind:!0,inside:{rest:httpLanguages[contentType]}},Prism.languages.insertBefore("http","header-name",options)};
|
|
||||||
// Prism.languages.json={property:/"(?:\\.|[^\\"])*"(?=\s*:)/gi,string:/"(?!:)(?:\\.|[^\\"])*"(?!:)/g,number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee][+-]?\d+)?)\b/g,punctuation:/[{}[\]);,]/g,operator:/:/g,"boolean":/\b(true|false)\b/gi,"null":/\bnull\b/gi},Prism.languages.jsonp=Prism.languages.json;
|
|
||||||
// Prism.languages.markdown=Prism.languages.extend("markup",{}),Prism.languages.insertBefore("markdown","prolog",{blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},code:[{pattern:/^(?: {4}|\t).+/m,alias:"keyword"},{pattern:/``.+?``|`[^`\n]+`/,alias:"keyword"}],title:[{pattern:/\w+.*(?:\r?\n|\r)(?:==+|--+)/,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#+.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])([\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:/(^|[^\\])(\*\*|__)(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/,lookbehind:!0,inside:{punctuation:/^\*\*|^__|\*\*$|__$/}},italic:{pattern:/(^|[^\\])([*_])(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/,lookbehind:!0,inside:{punctuation:/^[*_]|[*_]$/}},url:{pattern:/!?\[[^\]]+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)| ?\[[^\]\n]*\])/,inside:{variable:{pattern:/(!?\[)[^\]]+(?=\]$)/,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\])*"(?=\)$)/}}}}),Prism.languages.markdown.bold.inside.url=Prism.util.clone(Prism.languages.markdown.url),Prism.languages.markdown.italic.inside.url=Prism.util.clone(Prism.languages.markdown.url),Prism.languages.markdown.bold.inside.italic=Prism.util.clone(Prism.languages.markdown.italic),Prism.languages.markdown.italic.inside.bold=Prism.util.clone(Prism.languages.markdown.bold);
|
|
||||||
// Prism.languages.powershell={comment:[{pattern:/(^|[^`])<#[\w\W]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(`?[\w\W])*?"/,greedy:!0,inside:{"function":{pattern:/[^`]\$\(.*?\)/,inside:{}}}},{pattern:/'([^']|'')*'/,greedy:!0}],namespace:/\[[a-z][\w\W]*?\]/i,"boolean":/\$(true|false)\b/i,variable:/\$\w+\b/i,"function":[/\b(Add-(Computer|Content|History|Member|PSSnapin|Type)|Checkpoint-Computer|Clear-(Content|EventLog|History|Item|ItemProperty|Variable)|Compare-Object|Complete-Transaction|Connect-PSSession|ConvertFrom-(Csv|Json|StringData)|Convert-Path|ConvertTo-(Csv|Html|Json|Xml)|Copy-(Item|ItemProperty)|Debug-Process|Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Disconnect-PSSession|Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Enter-PSSession|Exit-PSSession|Export-(Alias|Clixml|Console|Csv|FormatData|ModuleMember|PSSession)|ForEach-Object|Format-(Custom|List|Table|Wide)|Get-(Alias|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Culture|Date|Event|EventLog|EventSubscriber|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|WmiObject)|Group-Object|Import-(Alias|Clixml|Csv|LocalizedData|Module|PSSession)|Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)|Join-Path|Limit-EventLog|Measure-(Command|Object)|Move-(Item|ItemProperty)|New-(Alias|Event|EventLog|Item|ItemProperty|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy)|Out-(Default|File|GridView|Host|Null|Printer|String)|Pop-Location|Push-Location|Read-Host|Receive-(Job|PSSession)|Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)|Remove-(Computer|Event|EventLog|Item|ItemProperty|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)|Rename-(Computer|Item|ItemProperty)|Reset-ComputerMachinePassword|Resolve-Path|Restart-(Computer|Service)|Restore-Computer|Resume-(Job|Service)|Save-Help|Select-(Object|String|Xml)|Send-MailMessage|Set-(Alias|Content|Date|Item|ItemProperty|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)|Show-(Command|ControlPanelItem|EventLog)|Sort-Object|Split-Path|Start-(Job|Process|Service|Sleep|Transaction)|Stop-(Computer|Job|Process|Service)|Suspend-(Job|Service)|Tee-Object|Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)|Trace-Command|Unblock-File|Undo-Transaction|Unregister-(Event|PSSessionConfiguration)|Update-(FormatData|Help|List|TypeData)|Use-Transaction|Wait-(Event|Job|Process)|Where-Object|Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning))\b/i,/\b(ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(\W?)(!|-(eq|ne|gt|ge|lt|le|sh[lr]|not|b?(and|x?or)|(Not)?(Like|Match|Contains|In)|Replace|Join|is(Not)?|as)\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/},Prism.languages.powershell.string[0].inside.boolean=Prism.languages.powershell.boolean,Prism.languages.powershell.string[0].inside.variable=Prism.languages.powershell.variable,Prism.languages.powershell.string[0].inside.function.inside=Prism.util.clone(Prism.languages.powershell);
|
|
||||||
// Prism.languages.rest={table:[{pattern:/(\s*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1(?:[+|].+)+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(\s*)(?:=+ +)+=+((?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1(?:=+ +)+=+(?=(?:\r?\n|\r){2}|\s*$)/,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^\s*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( +)[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^\s*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^\s*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^\s*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^\s*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^\s*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^\s*)(?:[+-][a-z\d]|(?:\-\-|\/)[a-z\d-]+)(?:[ =](?:[a-z][a-z\d_-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:\-\-|\/)[a-z\d-]+)(?:[ =](?:[a-z][a-z\d_-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^\s*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^\s*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s).*?[^\s]\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d](?:[_.:+]?[a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^\s*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}};
|
|
||||||
// Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-]+(?:\([^()]+\)|[^(])*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)*url(?=\()/i,selector:{pattern:/(?=\S)[^@;\{\}\(\)]?([^@;\{\}\(\)]|&|#\{\$[-_\w]+\})+(?=\s*\{(\}|\s|[^\}]+(:|\{)[^\}]+))/m,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-_\w]+/,variable:/\$[-_\w]+|#\{\$[-_\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:if|else(?: if)?|for|each|while|import|extend|debug|warn|mixin|include|function|return|content)/i,{pattern:/( +)(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.scss.property={pattern:/(?:[\w-]|\$[-_\w]+|#\{\$[-_\w]+\})+(?=\s*:)/i,inside:{variable:/\$[-_\w]+|#\{\$[-_\w]+\}/}},Prism.languages.insertBefore("scss","important",{variable:/\$[-_\w]+|#\{\$[-_\w]+\}/}),Prism.languages.insertBefore("scss","function",{placeholder:{pattern:/%[-_\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},"boolean":/\b(?:true|false)\b/,"null":/\bnull\b/,operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.util.clone(Prism.languages.scss);
|
|
||||||
// Prism.languages.yaml={scalar:{pattern:/([\-:]\s*(![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\3[^\r\n]+)*)/,lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:/(\s*(?:^|[:\-,[{\r\n?])[ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:/([:\-,[{]\s*(![^\s]+)?[ \t]*)(\d{4}-\d\d?-\d\d?([tT]|[ \t]+)\d\d?:\d{2}:\d{2}(\.\d*)?[ \t]*(Z|[-+]\d\d?(:\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(:\d{2}(\.\d*)?)?)(?=[ \t]*($|,|]|}))/m,lookbehind:!0,alias:"number"},"boolean":{pattern:/([:\-,[{]\s*(![^\s]+)?[ \t]*)(true|false)[ \t]*(?=$|,|]|})/im,lookbehind:!0,alias:"important"},"null":{pattern:/([:\-,[{]\s*(![^\s]+)?[ \t]*)(null|~)[ \t]*(?=$|,|]|})/im,lookbehind:!0,alias:"important"},string:{pattern:/([:\-,[{]\s*(![^\s]+)?[ \t]*)("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')(?=[ \t]*($|,|]|}))/m,lookbehind:!0,greedy:!0},number:{pattern:/([:\-,[{]\s*(![^\s]+)?[ \t]*)[+\-]?(0x[\da-f]+|0o[0-7]+|(\d+\.?\d*|\.?\d+)(e[\+\-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im,lookbehind:!0},tag:/![^\s]+/,important:/[&*][\w]+/,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};
|
|
||||||
@@ -222,7 +222,7 @@ ul.animated {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
margin-top: 40px;
|
// margin-top: 40px;
|
||||||
@include MQ(M) {
|
@include MQ(M) {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
.container-fluid,.container{margin-right:auto;margin-left:auto}.container-fluid{padding-right:2rem;padding-left:2rem}.row{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-0.5rem;margin-left:-0.5rem}.row.reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.col.reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.col-xs,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-offset-0,.col-xs-offset-1,.col-xs-offset-2,.col-xs-offset-3,.col-xs-offset-4,.col-xs-offset-5,.col-xs-offset-6,.col-xs-offset-7,.col-xs-offset-8,.col-xs-offset-9,.col-xs-offset-10,.col-xs-offset-11,.col-xs-offset-12{box-sizing:border-box;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:0.5rem;padding-left:0.5rem}.col-xs{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;max-width:100%}.col-xs-1{-ms-flex-preferred-size:8.33333333%;flex-basis:8.33333333%;max-width:8.33333333%}.col-xs-2{-ms-flex-preferred-size:16.66666667%;flex-basis:16.66666667%;max-width:16.66666667%}.col-xs-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col-xs-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}.col-xs-5{-ms-flex-preferred-size:41.66666667%;flex-basis:41.66666667%;max-width:41.66666667%}.col-xs-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col-xs-7{-ms-flex-preferred-size:58.33333333%;flex-basis:58.33333333%;max-width:58.33333333%}.col-xs-8{-ms-flex-preferred-size:66.66666667%;flex-basis:66.66666667%;max-width:66.66666667%}.col-xs-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col-xs-10{-ms-flex-preferred-size:83.33333333%;flex-basis:83.33333333%;max-width:83.33333333%}.col-xs-11{-ms-flex-preferred-size:91.66666667%;flex-basis:91.66666667%;max-width:91.66666667%}.col-xs-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.col-xs-offset-0{margin-left:0}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-11{margin-left:91.66666667%}.start-xs{-ms-flex-pack:start;justify-content:flex-start;text-align:start}.center-xs{-ms-flex-pack:center;justify-content:center;text-align:center}.end-xs{-ms-flex-pack:end;justify-content:flex-end;text-align:end}.top-xs{-ms-flex-align:start;align-items:flex-start}.middle-xs{-ms-flex-align:center;align-items:center}.bottom-xs{-ms-flex-align:end;align-items:flex-end}.around-xs{-ms-flex-pack:distribute;justify-content:space-around}.between-xs{-ms-flex-pack:justify;justify-content:space-between}.first-xs{-ms-flex-order:-1;order:-1}.last-xs{-ms-flex-order:1;order:1}@media only screen and (min-width: 48em){.container{width:49rem}.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-offset-0,.col-sm-offset-1,.col-sm-offset-2,.col-sm-offset-3,.col-sm-offset-4,.col-sm-offset-5,.col-sm-offset-6,.col-sm-offset-7,.col-sm-offset-8,.col-sm-offset-9,.col-sm-offset-10,.col-sm-offset-11,.col-sm-offset-12{box-sizing:border-box;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:0.5rem;padding-left:0.5rem}.col-sm{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;max-width:100%}.col-sm-1{-ms-flex-preferred-size:8.33333333%;flex-basis:8.33333333%;max-width:8.33333333%}.col-sm-2{-ms-flex-preferred-size:16.66666667%;flex-basis:16.66666667%;max-width:16.66666667%}.col-sm-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col-sm-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}.col-sm-5{-ms-flex-preferred-size:41.66666667%;flex-basis:41.66666667%;max-width:41.66666667%}.col-sm-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col-sm-7{-ms-flex-preferred-size:58.33333333%;flex-basis:58.33333333%;max-width:58.33333333%}.col-sm-8{-ms-flex-preferred-size:66.66666667%;flex-basis:66.66666667%;max-width:66.66666667%}.col-sm-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col-sm-10{-ms-flex-preferred-size:83.33333333%;flex-basis:83.33333333%;max-width:83.33333333%}.col-sm-11{-ms-flex-preferred-size:91.66666667%;flex-basis:91.66666667%;max-width:91.66666667%}.col-sm-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.col-sm-offset-0{margin-left:0}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-6{marLine truncated
|
.container-fluid,.container{margin-right:auto;margin-left:auto}.container-fluid{padding-right:2rem;padding-left:2rem}.row{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-0.5rem;margin-left:-0.5rem}.row.reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.col.reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.col-xs,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-offset-0,.col-xs-offset-1,.col-xs-offset-2,.col-xs-offset-3,.col-xs-offset-4,.col-xs-offset-5,.col-xs-offset-6,.col-xs-offset-7,.col-xs-offset-8,.col-xs-offset-9,.col-xs-offset-10,.col-xs-offset-11,.col-xs-offset-12{box-sizing:border-box;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:0.5rem;padding-left:0.5rem}.col-xs{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;max-width:100%}.col-xs-1{-ms-flex-preferred-size:8.33333333%;flex-basis:8.33333333%;max-width:8.33333333%}.col-xs-2{-ms-flex-preferred-size:16.66666667%;flex-basis:16.66666667%;max-width:16.66666667%}.col-xs-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col-xs-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}.col-xs-5{-ms-flex-preferred-size:41.66666667%;flex-basis:41.66666667%;max-width:41.66666667%}.col-xs-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col-xs-7{-ms-flex-preferred-size:58.33333333%;flex-basis:58.33333333%;max-width:58.33333333%}.col-xs-8{-ms-flex-preferred-size:66.66666667%;flex-basis:66.66666667%;max-width:66.66666667%}.col-xs-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col-xs-10{-ms-flex-preferred-size:83.33333333%;flex-basis:83.33333333%;max-width:83.33333333%}.col-xs-11{-ms-flex-preferred-size:91.66666667%;flex-basis:91.66666667%;max-width:91.66666667%}.col-xs-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.col-xs-offset-0{margin-left:0}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-11{margin-left:91.66666667%}.start-xs{-ms-flex-pack:start;justify-content:flex-start;text-align:start}.center-xs{-ms-flex-pack:center;justify-content:center;text-align:center}.end-xs{-ms-flex-pack:end;justify-content:flex-end;text-align:end}.top-xs{-ms-flex-align:start;align-items:flex-start}.middle-xs{-ms-flex-align:center;align-items:center}.bottom-xs{-ms-flex-align:end;align-items:flex-end}.around-xs{-ms-flex-pack:distribute;justify-content:space-around}.between-xs{-ms-flex-pack:justify;justify-content:space-between}.first-xs{-ms-flex-order:-1;order:-1}.last-xs{-ms-flex-order:1;order:1}@media only screen and (min-width: 48em){.container{width:49rem}.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-offset-0,.col-sm-offset-1,.col-sm-offset-2,.col-sm-offset-3,.col-sm-offset-4,.col-sm-offset-5,.col-sm-offset-6,.col-sm-offset-7,.col-sm-offset-8,.col-sm-offset-9,.col-sm-offset-10,.col-sm-offset-11,.col-sm-offset-12{box-sizing:border-box;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:0.5rem;padding-left:0.5rem}.col-sm{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;max-width:100%}.col-sm-1{-ms-flex-preferred-size:8.33333333%;flex-basis:8.33333333%;max-width:8.33333333%}.col-sm-2{-ms-flex-preferred-size:16.66666667%;flex-basis:16.66666667%;max-width:16.66666667%}.col-sm-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col-sm-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}.col-sm-5{-ms-flex-preferred-size:41.66666667%;flex-basis:41.66666667%;max-width:41.66666667%}.col-sm-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col-sm-7{-ms-flex-preferred-size:58.33333333%;flex-basis:58.33333333%;max-width:58.33333333%}.col-sm-8{-ms-flex-preferred-size:66.66666667%;flex-basis:66.66666667%;max-width:66.66666667%}.col-sm-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col-sm-10{-ms-flex-preferred-size:83.33333333%;flex-basis:83.33333333%;max-width:83.33333333%}.col-sm-11{-ms-flex-preferred-size:91.66666667%;flex-basis:91.66666667%;max-width:91.66666667%}.col-sm-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.col-sm-offset-0{margin-left:0}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-6{marLine truncated
|
||||||
Vendored
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
"use strict";function showTooltip(e,t){e.setAttribute("class","copy-button tooltipped tooltipped-s"),e.setAttribute("aria-label",t)}function fallbackMessage(e){var t="",r="cut"===e?"X":"C";return t=isMac?"Press ⌘-"+r:"Press Ctrl-"+r}function toggleToc(e){e.preventDefault(),e.stopPropagation(),console.log("hello"),document.getElementById("toc").classList.toggle("toc-open"),document.getElementById("toc-toggle").classList.toggle("toc-open")}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){if("object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){var e;return function t(e,r,n){function a(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return a(r?r:t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){var n=e("matches-selector");t.exports=function(e,t,r){for(var a=r?e:e.parentNode;a&&a!==document;){if(n(a,t))return a;a=a.parentNode}}},{"matches-selector":5}],2:[function(e,t,r){function n(e,t,r,n,i){var o=a.apply(this,arguments);return e.addEventListener(r,o,i),{destroy:function(){e.removeEventListener(r,o,i)}}}function a(e,t,r,n){return function(r){r.delegateTarget=i(r.target,t,!0),r.delegateTarget&&n.call(e,r)}}var i=e("closest");t.exports=n},{closest:1}],3:[function(e,t,r){r.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},r.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||r.node(e[0]))},r.string=function(e){return"string"==typeof e||e instanceof String},r.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,r){function n(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(r))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,r);if(s.nodeList(e))return i(e,t,r);if(s.string(e))return o(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}function i(e,t,r){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,r)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,r)})}}}function o(e,t,r){return l(document.body,e,t,r)}var s=e("./is"),l=e("delegate");t.exports=n},{"./is":3,delegate:2}],5:[function(e,t,r){function n(e,t){if(i)return i.call(e,t);for(var r=e.parentNode.querySelectorAll(t),n=0;n<r.length;++n)if(r[n]==e)return!0;return!1}var a=Element.prototype,i=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;t.exports=n},{}],6:[function(e,t,r){function n(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),n=document.createRange();n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n),t=r.toString()}return t}t.exports=n},{}],7:[function(e,t,r){function n(){}n.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){function n(){a.off(e,n),t.apply(r,arguments)}var a=this;return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=r.length;for(n;a>n;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],a=[];if(n&&t)for(var i=0,o=n.length;o>i;i++)n[i].fn!==t&&n[i].fn._!==t&&a.push(n[i]);return a.length?r[e]=a:delete r[e],this}},t.exports=n},{}],8:[function(t,r,n){!function(a,i){if("function"==typeof e&&e.amd)e(["module","select"],i);else if("undefined"!=typeof n)i(r,t("select"));else{var o={exports:{}};i(o,a.select),a.clipboardAction=o.exports}}(this,function(e,t){function r(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(t),i="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeofLine truncated
|
"use strict";function showTooltip(e,t){e.setAttribute("class","copy-button tooltipped tooltipped-s"),e.setAttribute("aria-label",t)}function fallbackMessage(e){var t="",r="cut"===e?"X":"C";return t=isMac?"Press ⌘-"+r:"Press Ctrl-"+r}function toggleToc(e){e.preventDefault(),e.stopPropagation(),console.log("hello"),document.getElementById("toc").classList.toggle("toc-open"),document.getElementById("toc-toggle").classList.toggle("toc-open")}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){if("object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){var e;return function t(e,r,n){function a(i,s){if(!r[i]){if(!e[i]){var l="function"==typeof require&&require;if(!s&&l)return l(i,!0);if(o)return o(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[i]={exports:{}};e[i][0].call(u.exports,function(t){var r=e[i][1][t];return a(r?r:t)},u,u.exports,t,e,r,n)}return r[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)a(n[i]);return a}({1:[function(e,t,r){var n=e("matches-selector");t.exports=function(e,t,r){for(var a=r?e:e.parentNode;a&&a!==document;){if(n(a,t))return a;a=a.parentNode}}},{"matches-selector":5}],2:[function(e,t,r){function n(e,t,r,n,o){var i=a.apply(this,arguments);return e.addEventListener(r,i,o),{destroy:function(){e.removeEventListener(r,i,o)}}}function a(e,t,r,n){return function(r){r.delegateTarget=o(r.target,t,!0),r.delegateTarget&&n.call(e,r)}}var o=e("closest");t.exports=n},{closest:1}],3:[function(e,t,r){r.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},r.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||r.node(e[0]))},r.string=function(e){return"string"==typeof e||e instanceof String},r.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,r){function n(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(r))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,r);if(s.nodeList(e))return o(e,t,r);if(s.string(e))return i(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}function o(e,t,r){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,r)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,r)})}}}function i(e,t,r){return l(document.body,e,t,r)}var s=e("./is"),l=e("delegate");t.exports=n},{"./is":3,delegate:2}],5:[function(e,t,r){function n(e,t){if(o)return o.call(e,t);for(var r=e.parentNode.querySelectorAll(t),n=0;n<r.length;++n)if(r[n]==e)return!0;return!1}var a=Element.prototype,o=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;t.exports=n},{}],6:[function(e,t,r){function n(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),n=document.createRange();n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n),t=r.toString()}return t}t.exports=n},{}],7:[function(e,t,r){function n(){}n.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){function n(){a.off(e,n),t.apply(r,arguments)}var a=this;return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=r.length;for(n;a>n;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],a=[];if(n&&t)for(var o=0,i=n.length;i>o;o++)n[o].fn!==t&&n[o].fn._!==t&&a.push(n[o]);return a.length?r[e]=a:delete r[e],this}},t.exports=n},{}],8:[function(t,r,n){!function(a,o){if("function"==typeof e&&e.amd)e(["module","select"],o);else if("undefined"!=typeof n)o(r,t("select"));else{var i={exports:{}};o(i,a.select),a.clipboardAction=i.exports}}(this,function(e,t){function r(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(t),o="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeofLine truncated
|
||||||
},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,r,a,i){function s(e,r){var a=0;if(p<=8)a=d.css(e,r);else{var l=!1;/^(width|height)$/.test(r)&&0===S.getPropertyValue(e,"display")&&(l=!0,S.setPropertyValue(e,"display",S.Values.getDisplayType(e)));var c=function(){l&&S.setPropertyValue(e,"display","none")};if(!i){if("height"===r&&"border-box"!==S.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var u=e.offsetHeight-(parseFloat(S.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(S.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(S.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(S.getPropertyValue(e,"paddingBottom"))||0);return c(),u}if("width"===r&&"border-box"!==S.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(S.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(S.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(S.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(S.getPropertyValue(e,"paddingRight"))||0);return c(),f}}var g;g=o(e)===n?t.getComputedStyle(e,null):o(e).computedStyle?o(e).computedStyle:o(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),a=9===p&&"filter"===r?g.getPropertyValue(r):g[r],""!==a&&null!==a||(a=e.style[r]),c()}if("auto"===a&&/^(top|right|bottom|left)$/i.test(r)){var m=s(e,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(r))&&(a=d(e).position()[r]+"px")}return a}var l;if(S.Hooks.registered[r]){var c=r,u=S.Hooks.getRoot(c);a===n&&(a=S.getPropertyValue(e,S.Names.prefixCheck(u)[0])),S.Normalizations.registered[u]&&(a=S.Normalizations.registered[u]("extract",e,a)),l=S.Hooks.extractValue(c,a)}else if(S.Normalizations.registered[r]){var f,g;f=S.Normalizations.registered[r]("name",e),"transform"!==f&&(g=s(e,S.Names.prefixCheck(f)[0]),S.Values.isCSSNullValue(g)&&S.Hooks.templates[r]&&(g=S.Hooks.templates[r][1])),l=S.Normalizations.registered[r]("extract",e,g)}if(!/^[\d-]/.test(l)){var m=o(e);if(m&&m.isSVG&&S.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(h){l=0}else l=e.getAttribute(r);else l=s(e,S.Names.prefixCheck(r)[0])}return S.Values.isCSSNullValue(l)&&(l=0),v.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,n,a,i){var s=r;if("scroll"===r)i.container?i.container["scroll"+i.direction]=n:"Left"===i.direction?t.scrollTo(n,i.alternateValue):t.scrollTo(i.alternateValue,n);else if(S.Normalizations.registered[r]&&"transform"===S.Normalizations.registered[r]("name",e))S.Normalizations.registered[r]("inject",e,n),s="transform",n=o(e).transformCache[r];else{if(S.Hooks.registered[r]){var l=r,c=S.Hooks.getRoot(r);a=a||S.getPropertyValue(e,c),n=S.Hooks.injectValue(l,n,a),r=c}if(S.Normalizations.registered[r]&&(n=S.Normalizations.registered[r]("inject",e,n),r=S.Normalizations.registered[r]("name",e)),s=S.Names.prefixCheck(r)[0],p<=8)try{e.style[s]=n}catch(u){v.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else{var f=o(e);f&&f.isSVG&&S.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[s]=n}v.debug>=2&&console.log("Set "+r+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){var t="",r=o(e);if((p||v.State.isAndroid&&!v.State.isChrome)&&r&&r.isSVG){var n=function(t){return parseFloat(S.getPropertyValue(e,t))},a={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};d.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(t+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var i,s;d.each(o(e).transformCache,function(r){return i=o(e).transformCache[r],"transformPerspective"===r?(s=i,!0):(9===p&&"rotateZ"===r&&(r="rotate"),void(t+=r+i+" "))}),s&&(t="perspective"+s+" "+t)}S.setPropertyValue(e,"transform",t)}};S.Hooks.register(),S.Normalizations.register(),v.hook=function(e,t,r){var a;return e=i(e),d.each(e,function(e,i){if(o(i)===n&&v.init(i),r===n)a===n&&(a=v.CSS.getPropertyValue(i,t));else{Line truncated
|
},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,r,a,o){function s(e,r){var a=0;if(p<=8)a=d.css(e,r);else{var l=!1;/^(width|height)$/.test(r)&&0===S.getPropertyValue(e,"display")&&(l=!0,S.setPropertyValue(e,"display",S.Values.getDisplayType(e)));var c=function(){l&&S.setPropertyValue(e,"display","none")};if(!o){if("height"===r&&"border-box"!==S.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var u=e.offsetHeight-(parseFloat(S.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(S.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(S.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(S.getPropertyValue(e,"paddingBottom"))||0);return c(),u}if("width"===r&&"border-box"!==S.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(S.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(S.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(S.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(S.getPropertyValue(e,"paddingRight"))||0);return c(),f}}var g;g=i(e)===n?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),a=9===p&&"filter"===r?g.getPropertyValue(r):g[r],""!==a&&null!==a||(a=e.style[r]),c()}if("auto"===a&&/^(top|right|bottom|left)$/i.test(r)){var m=s(e,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(r))&&(a=d(e).position()[r]+"px")}return a}var l;if(S.Hooks.registered[r]){var c=r,u=S.Hooks.getRoot(c);a===n&&(a=S.getPropertyValue(e,S.Names.prefixCheck(u)[0])),S.Normalizations.registered[u]&&(a=S.Normalizations.registered[u]("extract",e,a)),l=S.Hooks.extractValue(c,a)}else if(S.Normalizations.registered[r]){var f,g;f=S.Normalizations.registered[r]("name",e),"transform"!==f&&(g=s(e,S.Names.prefixCheck(f)[0]),S.Values.isCSSNullValue(g)&&S.Hooks.templates[r]&&(g=S.Hooks.templates[r][1])),l=S.Normalizations.registered[r]("extract",e,g)}if(!/^[\d-]/.test(l)){var m=i(e);if(m&&m.isSVG&&S.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(h){l=0}else l=e.getAttribute(r);else l=s(e,S.Names.prefixCheck(r)[0])}return S.Values.isCSSNullValue(l)&&(l=0),v.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,n,a,o){var s=r;if("scroll"===r)o.container?o.container["scroll"+o.direction]=n:"Left"===o.direction?t.scrollTo(n,o.alternateValue):t.scrollTo(o.alternateValue,n);else if(S.Normalizations.registered[r]&&"transform"===S.Normalizations.registered[r]("name",e))S.Normalizations.registered[r]("inject",e,n),s="transform",n=i(e).transformCache[r];else{if(S.Hooks.registered[r]){var l=r,c=S.Hooks.getRoot(r);a=a||S.getPropertyValue(e,c),n=S.Hooks.injectValue(l,n,a),r=c}if(S.Normalizations.registered[r]&&(n=S.Normalizations.registered[r]("inject",e,n),r=S.Normalizations.registered[r]("name",e)),s=S.Names.prefixCheck(r)[0],p<=8)try{e.style[s]=n}catch(u){v.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else{var f=i(e);f&&f.isSVG&&S.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[s]=n}v.debug>=2&&console.log("Set "+r+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){var t="",r=i(e);if((p||v.State.isAndroid&&!v.State.isChrome)&&r&&r.isSVG){var n=function(t){return parseFloat(S.getPropertyValue(e,t))},a={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};d.each(i(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(t+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var o,s;d.each(i(e).transformCache,function(r){return o=i(e).transformCache[r],"transformPerspective"===r?(s=o,!0):(9===p&&"rotateZ"===r&&(r="rotate"),void(t+=r+o+" "))}),s&&(t="perspective"+s+" "+t)}S.setPropertyValue(e,"transform",t)}};S.Hooks.register(),S.Normalizations.register(),v.hook=function(e,t,r){var a;return e=o(e),d.each(e,function(e,o){if(i(o)===n&&v.init(o),r===n)a===n&&(a=v.CSS.getPropertyValue(o,t));else{Line truncated
|
||||||
a=o+"-"+t.delimiter.toLowerCase()+"-"+i.toLowerCase(),n.className+=" "+a}return t.aria&&n.setAttribute("aria-hidden","true"),n.appendChild(e.cloneNode(!1)),n}function p(e,t){var r=-1,n=0;if(3===e.nodeType&&e.data.length){if(b.nodeBeginning&&(e.data=t.search||"sentence"!==t.delimiter?f(e.data):u(e.data),b.nodeBeginning=!1),r=e.data.search(m),r!==-1){var a=e.data.match(m),i=a[0],o=a[1]||!1;""===i?r++:o&&o!==i&&(r+=i.indexOf(o),i=o);var s=e.splitText(r);s.splitText(i.length),n=1,t.search||"sentence"!==t.delimiter||(s.data=f(s.data));var c=d(s,t,b.blastedIndex);s.parentNode.replaceChild(c,s),b.wrappers.push(c),b.blastedIndex++}}else if(1===e.nodeType&&e.hasChildNodes()&&!l.skippedElements.test(e.tagName)&&!l.hasPluginClass.test(e.className))for(var g=0;g<e.childNodes.length;g++)b.nodeBeginning=!0,g+=p(e.childNodes[g],t);return n}function g(r,s){s.debug&&i.time("blast reversal");var l=!1;r.removeClass(o+"-root").removeAttr("aria-label").find("."+o).each(function(){var t=e(this);if(t.closest("."+o+"-root").length)l=!0;else{var r=this.parentNode;a<=7&&r.firstChild.nodeName,r.replaceChild(this.firstChild,this),r.normalize()}}),t.Zepto?r.data(o,n):r.removeData(o),s.debug&&(i.log(o+": Reversed Blast"+(r.attr("id")?" on #"+r.attr("id")+".":".")+(l?" Skipped reversal on the children of one or more descendant root elements.":"")),i.timeEnd("blast reversal"))}var m,h=e.extend({},e.fn[o].defaults,c),b={};if(h.search.length&&("string"==typeof h.search||/^\d/.test(parseFloat(h.search))))h.delimiter=h.search.toString().replace(/[-[\]{,}(.)*+?|^$\\\/]/g,"\\$&"),m=new RegExp("(?:^|[^-"+s.latinLetters+"])("+h.delimiter+"('s)?)(?![-"+s.latinLetters+"])","i");else switch("string"==typeof h.delimiter&&(h.delimiter=h.delimiter.toLowerCase()),h.delimiter){case"all":m=/(.)/;break;case"letter":case"char":case"character":m=/(\S)/;break;case"word":m=/\s*(\S+)\s*/;break;case"sentence":m=/(?=\S)(([.]{2,})?[^!?]+?([.…!?]+|(?=\s+$)|$)(\s*[′’'”″“")»]+)*)/;break;case"element":m=/(?=\S)([\S\s]*\S)/;break;default:if(!(h.delimiter instanceof RegExp))return i.log(o+": Unrecognized delimiter, empty search string, or invalid custom Regex. Aborting."),!0;m=h.delimiter}if(this.each(function(){var t=e(this),a=t.text();if(c!==!1){b={blastedIndex:0,nodeBeginning:!1,wrappers:b.wrappers||[]},t.data(o)===n||"search"===t.data(o)&&h.search!==!1||(g(t,h),h.debug&&i.log(o+": Removed element's existing Blast call.")),t.data(o,h.search!==!1?"search":h.delimiter),h.aria&&t.attr("aria-label",a),h.stripHTMLTags&&t.html(a);try{r.createElement(h.tag)}catch(s){h.tag="span",h.debug&&i.log(o+": Invalid tag supplied. Defaulting to span.")}t.addClass(o+"-root"),h.debug&&i.time(o),p(this,h),h.debug&&i.timeEnd(o)}else c===!1&&t.data(o)!==n&&g(t,h);h.debug&&e.each(b.wrappers,function(e,t){i.log(o+" ["+h.delimiter+"] "+this.outerHTML),this.style.backgroundColor=e%2?"#f12185":"#075d9a"})}),c!==!1&&h.returnGenerated===!0){var y=e().add(b.wrappers);return y.prevObject=this,y.context=this.context,y}return this},e.fn.blast.defaults={returnGenerated:!0,delimiter:"word",tag:"span",search:!1,customClass:"",generateIndexID:!1,generateValueClass:!1,stripHTMLTags:!1,aria:!0,debug:!1}}(window.jQuery||window.Zepto,window,document),$("document").ready(function(){$('.body-copy a[href$=".pdf"]').append('<i class="icon-pdf"></i>'),$(".body-copy > h2:not(.section-heading),.body-copy > h3").each(function(){var e=$(this).attr("id");$(this).prepend('<a class="smooth-scroll heading-link" href="#'+e+'"><i class="icon-link"></i></a>')})}),function(){for(var e=document.querySelectorAll("blockquote > p"),t=new RegExp(/\s\-\s/),r=0;r<e.length;r++)if(t.test(e[r].textContent)){var n=e[r].innerHTML.split(" - ")[0],a=e[r].innerHTML.split(" - ")[1];e[r].innerHTML=n+'<cite class="blockquote-citation">― '+a+"</cite>"}}(),$(".download-button").on("click",function(){var e=$(this).siblings(".code-copy-content"),t=e.text(),r=e.attr("id"),n=new Blob([t],{type:"text/plain;charset=utf-8"});saveAs(n,r)});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){$(".body-copy img:not(.hugo-icon)").each(function(){$(this).wrap('<a class="image-link" data-featherlight="image" href="'+$(this).attr("src")+'"></a>')})}(),function(e){function t(e,r){if(!(this instanceof t)){var n=new t(e,r);return n.open(),n}this.id=t.id++,this.setup(e,r),this.chainCallbacks(t._callbackChain)}if("undefined"==typeof e)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var r=[],n=function(t){return r=e.grep(r,function(e){return e!==t&&e.$instance.closest("body").length>0})},a=function(e,t){var r={},n=new RegExp("^"+t+"([A-Z])(.*)");for(var a in e){var i=a.match(n);if(i){var o=(i[1]+i[2].replace(/([A-Z])/g,"-$1")).toLowerCase();r[o]=e[a]}}return r},i={keyup:"onKeyUp",resize:"onResize"},o=function(r){e.each(Line truncated
|
a=i+"-"+t.delimiter.toLowerCase()+"-"+o.toLowerCase(),n.className+=" "+a}return t.aria&&n.setAttribute("aria-hidden","true"),n.appendChild(e.cloneNode(!1)),n}function p(e,t){var r=-1,n=0;if(3===e.nodeType&&e.data.length){if(b.nodeBeginning&&(e.data=t.search||"sentence"!==t.delimiter?f(e.data):u(e.data),b.nodeBeginning=!1),r=e.data.search(m),r!==-1){var a=e.data.match(m),o=a[0],i=a[1]||!1;""===o?r++:i&&i!==o&&(r+=o.indexOf(i),o=i);var s=e.splitText(r);s.splitText(o.length),n=1,t.search||"sentence"!==t.delimiter||(s.data=f(s.data));var c=d(s,t,b.blastedIndex);s.parentNode.replaceChild(c,s),b.wrappers.push(c),b.blastedIndex++}}else if(1===e.nodeType&&e.hasChildNodes()&&!l.skippedElements.test(e.tagName)&&!l.hasPluginClass.test(e.className))for(var g=0;g<e.childNodes.length;g++)b.nodeBeginning=!0,g+=p(e.childNodes[g],t);return n}function g(r,s){s.debug&&o.time("blast reversal");var l=!1;r.removeClass(i+"-root").removeAttr("aria-label").find("."+i).each(function(){var t=e(this);if(t.closest("."+i+"-root").length)l=!0;else{var r=this.parentNode;a<=7&&r.firstChild.nodeName,r.replaceChild(this.firstChild,this),r.normalize()}}),t.Zepto?r.data(i,n):r.removeData(i),s.debug&&(o.log(i+": Reversed Blast"+(r.attr("id")?" on #"+r.attr("id")+".":".")+(l?" Skipped reversal on the children of one or more descendant root elements.":"")),o.timeEnd("blast reversal"))}var m,h=e.extend({},e.fn[i].defaults,c),b={};if(h.search.length&&("string"==typeof h.search||/^\d/.test(parseFloat(h.search))))h.delimiter=h.search.toString().replace(/[-[\]{,}(.)*+?|^$\\\/]/g,"\\$&"),m=new RegExp("(?:^|[^-"+s.latinLetters+"])("+h.delimiter+"('s)?)(?![-"+s.latinLetters+"])","i");else switch("string"==typeof h.delimiter&&(h.delimiter=h.delimiter.toLowerCase()),h.delimiter){case"all":m=/(.)/;break;case"letter":case"char":case"character":m=/(\S)/;break;case"word":m=/\s*(\S+)\s*/;break;case"sentence":m=/(?=\S)(([.]{2,})?[^!?]+?([.…!?]+|(?=\s+$)|$)(\s*[′’'”″“")»]+)*)/;break;case"element":m=/(?=\S)([\S\s]*\S)/;break;default:if(!(h.delimiter instanceof RegExp))return o.log(i+": Unrecognized delimiter, empty search string, or invalid custom Regex. Aborting."),!0;m=h.delimiter}if(this.each(function(){var t=e(this),a=t.text();if(c!==!1){b={blastedIndex:0,nodeBeginning:!1,wrappers:b.wrappers||[]},t.data(i)===n||"search"===t.data(i)&&h.search!==!1||(g(t,h),h.debug&&o.log(i+": Removed element's existing Blast call.")),t.data(i,h.search!==!1?"search":h.delimiter),h.aria&&t.attr("aria-label",a),h.stripHTMLTags&&t.html(a);try{r.createElement(h.tag)}catch(s){h.tag="span",h.debug&&o.log(i+": Invalid tag supplied. Defaulting to span.")}t.addClass(i+"-root"),h.debug&&o.time(i),p(this,h),h.debug&&o.timeEnd(i)}else c===!1&&t.data(i)!==n&&g(t,h);h.debug&&e.each(b.wrappers,function(e,t){o.log(i+" ["+h.delimiter+"] "+this.outerHTML),this.style.backgroundColor=e%2?"#f12185":"#075d9a"})}),c!==!1&&h.returnGenerated===!0){var y=e().add(b.wrappers);return y.prevObject=this,y.context=this.context,y}return this},e.fn.blast.defaults={returnGenerated:!0,delimiter:"word",tag:"span",search:!1,customClass:"",generateIndexID:!1,generateValueClass:!1,stripHTMLTags:!1,aria:!0,debug:!1}}(window.jQuery||window.Zepto,window,document),$("document").ready(function(){$('.body-copy a[href$=".pdf"]').append('<i class="icon-pdf"></i>'),$(".body-copy > h2:not(.section-heading),.body-copy > h3").each(function(){var e=$(this).attr("id");$(this).prepend('<a class="smooth-scroll heading-link" href="#'+e+'"><i class="icon-link"></i></a>')})}),function(){for(var e=document.querySelectorAll("blockquote > p"),t=new RegExp(/\s\-\s/),r=0;r<e.length;r++)if(t.test(e[r].textContent)){var n=e[r].innerHTML.split(" - ")[0],a=e[r].innerHTML.split(" - ")[1];e[r].innerHTML=n+'<cite class="blockquote-citation">― '+a+"</cite>"}}(),$(".download-button").on("click",function(){var e=$(this).siblings(".code-copy-content"),t=e.text(),r=e.attr("id"),n=new Blob([t],{type:"text/plain;charset=utf-8"});saveAs(n,r)});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){$(".body-copy img:not(.hugo-icon)").each(function(){$(this).wrap('<a class="image-link" data-featherlight="image" href="'+$(this).attr("src")+'"></a>')})}(),function(e){function t(e,r){if(!(this instanceof t)){var n=new t(e,r);return n.open(),n}this.id=t.id++,this.setup(e,r),this.chainCallbacks(t._callbackChain)}if("undefined"==typeof e)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var r=[],n=function(t){return r=e.grep(r,function(e){return e!==t&&e.$instance.closest("body").length>0})},a=function(e,t){var r={},n=new RegExp("^"+t+"([A-Z])(.*)");for(var a in e){var o=a.match(n);if(o){var i=(o[1]+o[2].replace(/([A-Z])/g,"-$1")).toLowerCase();r[i]=e[a]}}return r},o={keyup:"onKeyUp",resize:"onResize"},i=function(r){e.each(Line truncated
|
||||||
nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},c:[t,e.NM,a,i,n,r,s]}}),hljs.registerLanguage("scss",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",r={cN:"variable",b:"(\\$"+t+")\\b"},n={cN:"number",b:"#[0-9A-Fa-f]+"};return{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{eW:!0,eE:!0,c:[n,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"meta",b:"!important"}]}},{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},r,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middleLine truncated
|
nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},c:[t,e.NM,a,o,n,r,s]}}),hljs.registerLanguage("scss",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",r={cN:"variable",b:"(\\$"+t+")\\b"},n={cN:"number",b:"#[0-9A-Fa-f]+"};return{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{eW:!0,eE:!0,c:[n,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"meta",b:"!important"}]}},{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},r,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middleLine truncated
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
//IIFE to remove all third-level li's from TOC so as not to negatively affect scrollspy
|
//IIFE to remove all third-level li's from TOC so as not to negatively affect scrollspy (these are currently hidden anyway)
|
||||||
(function() {
|
(function() {
|
||||||
// let levelFours = document.querySelectorAll('#TableOfContents > ul > li > ul > li ul');
|
let toc = document.getElementById('toc') ? true : false;
|
||||||
let levelFours = document.querySelectorAll('#TableOfContents > ul > li > ul > li > ul > li > ul');
|
if (toc) {
|
||||||
if (levelFours) {
|
let levelFours = document.querySelectorAll('#TableOfContents > ul > li > ul > li > ul > li > ul');
|
||||||
for (var i = 0; i < levelFours.length; i++) {
|
if (levelFours) {
|
||||||
levelFours[i].remove();
|
for (var i = 0; i < levelFours.length; i++) {
|
||||||
|
levelFours[i].remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
@@ -24,13 +26,9 @@ $(document).ready(function() {
|
|||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bind to scroll
|
// Bind to scroll
|
||||||
$(window).scroll(function(evt) {
|
$(window).scroll(function(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
// checks for top of page
|
|
||||||
// var isTop = $(window).scrollTop() == 0;
|
|
||||||
// console.log("Top of page?: " + isTop);
|
|
||||||
var isBottom = $(window).scrollTop() + $(window).height() == $(document).height();
|
var isBottom = $(window).scrollTop() + $(window).height() == $(document).height();
|
||||||
// Get container scroll position
|
// Get container scroll position
|
||||||
var fromTop = $(this).scrollTop() + headerHeight + 100;
|
var fromTop = $(this).scrollTop() + headerHeight + 100;
|
||||||
@@ -42,9 +40,6 @@ $(document).ready(function() {
|
|||||||
// Get the id of the current element
|
// Get the id of the current element
|
||||||
cur = cur[cur.length - 1];
|
cur = cur[cur.length - 1];
|
||||||
var id = cur && cur.length ? cur[0].id : "";
|
var id = cur && cur.length ? cur[0].id : "";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (lastId !== id) {
|
if (lastId !== id) {
|
||||||
lastId = id;
|
lastId = id;
|
||||||
// Set/remove active class
|
// Set/remove active class
|
||||||
|
|||||||
Reference in new issue
Block a user