https://github.com/kaushalmodi/hugo-onyx-thememaster
parent
7d7d5643bc
commit
5e0b086894
29 changed files with 23 additions and 1820 deletions
@ -1,3 +1,6 @@ |
||||
[submodule "doc/themes/hugo-onyx-theme"] |
||||
path = doc/themes/hugo-onyx-theme |
||||
url = https://github.com/kaushalmodi/hugo-onyx-theme |
||||
[submodule "test/site/themes/bare_min"] |
||||
path = test/site/themes/bare_min |
||||
url = https://github.com/kaushalmodi/hugo-bare-min-theme |
||||
|
||||
@ -1,34 +0,0 @@ |
||||
Copyright (c) 2016 Digitalcraftsman |
||||
|
||||
Based on original work copyright (c) Jeff Forcier, copyright (c) 2011 Kenneth Reitz |
||||
and copyright (c) 2010 Armin Ronacher. |
||||
|
||||
Some rights reserved. |
||||
|
||||
Redistribution and use in source and binary forms of the theme, with or |
||||
without modification, are permitted provided that the following conditions |
||||
are met: |
||||
|
||||
* Redistributions of source code must retain the above copyright |
||||
notice, this list of conditions and the following disclaimer. |
||||
|
||||
* Redistributions in binary form must reproduce the above |
||||
copyright notice, this list of conditions and the following |
||||
disclaimer in the documentation and/or other materials provided |
||||
with the distribution. |
||||
|
||||
* The names of the contributors may not be used to endorse or |
||||
promote products derived from this software without specific |
||||
prior written permission. |
||||
|
||||
THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE |
||||
POSSIBILITY OF SUCH DAMAGE. |
||||
@ -1,42 +0,0 @@ |
||||
# Alabaster |
||||
|
||||
A documentation theme ported from [Sphinx](http://www.sphinx-doc.org/en/stable/) to [Hugo](https://gohugo.io). |
||||
|
||||
[](https://digitalcraftsman.github.io/hugo-alabaster-theme/) |
||||
|
||||
## Quick start |
||||
|
||||
Install with `git`: |
||||
|
||||
```sh |
||||
git clone git@github.com:digitalcraftsman/hugo-alabaster-theme.git themes/hugo-alabaster-theme |
||||
``` |
||||
|
||||
> This theme uses the latest developement version of Hugo. Therefore, it doesn't work with the official releases. Look [here](https://github.com/spf13/hugo#build-and-install-the-binaries-from-source-advanced-install) if you want to know how to build Hugo from source. |
||||
|
||||
Next, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation. |
||||
|
||||
Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary. |
||||
|
||||
Hugo includes a development server, so you can view your changes as you go - |
||||
very handy. Spin it up with the following command: |
||||
|
||||
``` sh |
||||
hugo server |
||||
``` |
||||
|
||||
Now you can go to [localhost:1313](http://localhost:1313) and the Alabaster |
||||
theme should be visible. |
||||
|
||||
For detailed installation instructions visit the [demo](https://digitalcraftsman.github.io/hugo-alabaster-theme/). |
||||
|
||||
## Acknowledgements |
||||
|
||||
Last but not I want to give a big shout-out to [Jeff Forcier](https://github.com/bitprophet), [Kenneth Reitz](https://github.com/kennethreitz) and [Armin Ronacher](https://github.com/mitsuhiko). Their work and modifications on the original codebase made this port possible. |
||||
|
||||
Furthermore, thanks to [Steve Francia](https://gihub.com/spf13) for creating Hugo and the [awesome community](https://github.com/spf13/hugo/graphs/contributors) around the project. |
||||
|
||||
|
||||
## License |
||||
|
||||
The theme is released under the BSD license. Read the [license](https://github.com/digitalcraftsman/hugo-alabaster-theme/blob/master/LICENSE.md) for more information. |
||||
@ -1,5 +0,0 @@ |
||||
{{ define "main" }} |
||||
<h1>Page not found</h1> |
||||
|
||||
I'm sorry, but the requested page wasn’t found on the server. |
||||
{{ end }} |
||||
@ -1,33 +0,0 @@ |
||||
<!DOCTYPE html> |
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us"> |
||||
{{ partial "head" . }} |
||||
<body> |
||||
<div class="document"> |
||||
<div class="documentwrapper"> |
||||
<div class="bodywrapper"> |
||||
<div class="body"> |
||||
{{ block "main" . }}{{ end }} |
||||
|
||||
{{ if not .IsHome -}} |
||||
{{ template "_internal/disqus.html" . }} |
||||
{{ end }} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
{{ partial "sidebar/sidebar" . }} |
||||
{{ partial "footer" . }} |
||||
|
||||
{{ range .Site.Params.custom_js -}} |
||||
<script src="{{ . | relURL }}"></script> |
||||
{{ end }} |
||||
|
||||
{{ with .Site.Params.highlightjs -}} |
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/highlight.min.js"></script> |
||||
<script>hljs.initHighlightingOnLoad();</script> |
||||
{{ end }} |
||||
|
||||
{{ template "_internal/google_analytics.html" . }} |
||||
</div> |
||||
</body> |
||||
</html> |
||||
@ -1,4 +0,0 @@ |
||||
{{ define "main" }} |
||||
<h1>{{ .Title }}</h1> |
||||
{{ partial "headline-hash.html" .Content }} |
||||
{{ end }} |
||||
@ -1,11 +0,0 @@ |
||||
{{ define "main" }} |
||||
{{ range where .Site.Pages "Type" "homepage" }} |
||||
<h1>{{ .Title }}</h1> |
||||
{{ partial "headline-hash.html" .Content }} |
||||
{{ end }} |
||||
|
||||
<!-- <hr> --> |
||||
<!-- <h3 id="debug-menu">Menu (Debug)</h3> --> |
||||
{{/* partial "debugprint.html" $.Site.Menus */}} |
||||
|
||||
{{ end }} |
||||
@ -1,19 +0,0 @@ |
||||
<div class="footer"> |
||||
{{ if .Site.Params.footer.show_powered_by }} |
||||
Exported from <a href="https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/doc/ox-hugo-manual.org"><code>ox-hugo-manual.org</code></a> |
||||
using |
||||
{{ with .Params.creator }} |
||||
<a href="https://www.gnu.org/software/emacs/">{{ . | replaceRE "\\(Org.*" "" }}</a> + |
||||
<a href="https://orgmode.org/">{{ . | replaceRE "Emacs.*\\(" "" | replaceRE "\\+ ox-.*" "" }}</a> + |
||||
{{ end }} |
||||
<a href="https://github.com/kaushalmodi/ox-hugo"><code>ox-hugo</code></a> |
||||
and published using <a href="http://gohugo.io/">Hugo {{ .Hugo.Version }}</a> |
||||
+ <a href="https://github.com/digitalcraftsman/hugo-alabaster-theme">Alabaster</a> |
||||
{{ end }} |
||||
</div> |
||||
|
||||
{{ if .Site.Params.github_banner }} |
||||
<a href="https://github.com/{{ .Site.Params.github_user }}/{{ .Site.Params.github_repo }}" class="github"> |
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" class="github"/> |
||||
</a> |
||||
{{ end }} |
||||
@ -1,45 +0,0 @@ |
||||
<head> |
||||
<link href="http://gmpg.org/xfn/11" rel="profile"> |
||||
<meta charset="utf-8"> |
||||
<!-- Above is a short hand for the below line. --> |
||||
<!-- http://htmldog.com/guides/html/intermediate/metatags/ --> |
||||
<!-- <meta http-equiv="content-type" content="text/html; charset=utf-8"> --> |
||||
|
||||
<!-- Enable responsiveness on mobile devices--> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5"> |
||||
{{ with .Site.Params.description }} |
||||
<meta name="description" content="{{ . }}"> |
||||
{{ end }} |
||||
|
||||
{{ .Hugo.Generator }} |
||||
|
||||
<title>{{ if not .IsHome }}{{ .Title }} —{{ end }} {{ .Site.Title }}</title> |
||||
|
||||
<link rel="stylesheet" href="{{ "css/basic.css" | relURL }}" type="text/css" /> |
||||
<link rel="stylesheet" href="{{ "css/alabaster.css" | relURL }}" type="text/css" /> |
||||
{{ with .Site.Params.highlightjs }} |
||||
<link rel="stylesheet" href="{{ . | relURL }}" type="text/css" /> |
||||
{{ end }} |
||||
|
||||
{{ range .Site.Params.custom_css }} |
||||
<link rel="stylesheet" href="{{ . | relURL }}"> |
||||
{{ end }} |
||||
|
||||
{{ range .Site.Params.custom_css_absolute }} |
||||
<link rel="stylesheet" href="{{ . }}"> |
||||
{{ end }} |
||||
|
||||
{{ with .Site.Params.favicon }} |
||||
<link rel="shortcut icon" href="{{ . | relURL }}" type="image/x-icon"/> |
||||
{{ else }} |
||||
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}" type="image/x-icon"/> |
||||
{{ end }} |
||||
|
||||
{{ with .Params.mathjax }} |
||||
{{ partial "mathjax.html" }} |
||||
{{ end }} |
||||
|
||||
<!-- Opengraph and Twitter --> |
||||
{{ partial "opengraph.html" . }} |
||||
{{ partial "twitter_cards.html" . }} |
||||
</head> |
||||
@ -1 +0,0 @@ |
||||
{{ . | replaceRE "(<h[2-9] id=\"([^\"]+)\".+)(</h[2-9]+>)" "${1} <a class=\"headline-hash\" href=\"#${2}\">#</a> ${3}" | safeHTML }} |
||||
@ -1,23 +0,0 @@ |
||||
<script type="text/x-mathjax-config"> |
||||
MathJax.Hub.Config({ |
||||
displayAlign: "center", |
||||
displayIndent: "0em", |
||||
|
||||
"HTML-CSS": { scale: 100, |
||||
linebreaks: { automatic: "false" }, |
||||
webFont: "TeX" |
||||
}, |
||||
SVG: {scale: 100, |
||||
linebreaks: { automatic: "false" }, |
||||
font: "TeX"}, |
||||
NativeMML: {scale: 100}, |
||||
TeX: { equationNumbers: {autoNumber: "AMS"}, |
||||
MultLineWidth: "85%", |
||||
TagSide: "right", |
||||
TagIndent: ".8em" |
||||
} |
||||
}); |
||||
</script> |
||||
<!-- https://gohugo.io/content-management/formats/#mathjax-with-hugo --> |
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML"></script> |
||||
<!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script> --> |
||||
@ -1,92 +0,0 @@ |
||||
{{ $permalink := .Permalink }} |
||||
<meta property="og:title" content="{{ .Title }}" /> |
||||
<meta property="og:description" |
||||
content="{{ with .Description }}{{ . | plainify }}{{ else }}{{ if .IsPage }}{{ partial "summary_minus_toc.html" . | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . | plainify }}{{ end }}{{ end }}{{ end }}" /> |
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" /> |
||||
<meta property="og:url" content="{{ .Permalink }}" /> |
||||
{{ with .Params.images }} |
||||
{{ range first 6 . }} |
||||
{{ $image := . }} |
||||
{{ $image_link_absolute := (findRE "^/" $image) }} |
||||
{{ if $image_link_absolute }} |
||||
<meta name="og:image" content="{{ $image | absURL }}"/> |
||||
{{ else }} |
||||
<meta name="og:image" content="{{ (printf "%s%s" $permalink $image) }}"/> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ if .IsPage }} |
||||
{{ if not .PublishDate.IsZero }} |
||||
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/> |
||||
{{ else if not .Date.IsZero }} |
||||
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/> |
||||
{{ end }} |
||||
{{ if not .Lastmod.IsZero }} |
||||
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/> |
||||
{{ end }} |
||||
{{ else }} |
||||
{{ if not .Date.IsZero }} |
||||
<meta property="og:updated_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ with .Params.audio }} |
||||
{{ $audio := . }} |
||||
{{ $audio_link_absolute := (findRE "^/" $audio) }} |
||||
{{ if $audio_link_absolute }} |
||||
<meta name="og:audio" content="{{ $audio | absURL }}"/> |
||||
{{ else }} |
||||
<meta name="og:audio" content="{{ (printf "%s%s" $permalink $audio) }}"/> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ with .Params.locale }} |
||||
<meta property="og:locale" content="{{ . }}" /> |
||||
{{ end }} |
||||
{{ with .Site.Params.title }} |
||||
<meta property="og:site_name" content="{{ . }}" /> |
||||
{{ end }} |
||||
{{ with .Params.videos }} |
||||
{{ range . }} |
||||
{{ $video := . }} |
||||
{{ $video_link_absolute := (findRE "^/" $video) }} |
||||
{{ if $video_link_absolute }} |
||||
<meta name="og:video" content="{{ $video | absURL }}"/> |
||||
{{ else }} |
||||
<meta name="og:video" content="{{ (printf "%s%s" $permalink $video) }}"/> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
<!-- If it is part of a series, link to related articles --> |
||||
{{ $siteSeries := .Site.Taxonomies.series }} |
||||
{{ if $siteSeries }} |
||||
{{ with .Params.series }} |
||||
{{ range $name := . }} |
||||
{{ $series := index $siteSeries $name }} |
||||
{{ range $page := first 6 $series.Pages }} |
||||
{{ if ne $page.Permalink $permalink }} |
||||
<meta property="og:see_also" content="{{ $page.Permalink }}" /> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
|
||||
{{ if .IsPage }} |
||||
{{ range .Site.Authors }} |
||||
{{ with .Social.facebook }} |
||||
<meta property="article:author" content="https://www.facebook.com/{{ . }}" /> |
||||
{{ end }} |
||||
{{ with .Site.Social.facebook }} |
||||
<meta property="article:publisher" content="https://www.facebook.com/{{ . }}" /> |
||||
{{ end }} |
||||
<meta property="article:section" content="{{ .Section }}" /> |
||||
{{ with .Params.tags }} |
||||
{{ range first 6 . }} |
||||
<meta property="article:tag" content="{{ . }}" /> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
<!-- Facebook Page Admin ID for Domain Insights --> |
||||
{{ with .Site.Social.facebook_admin }} |
||||
<meta property="fb:admins" content="{{ . }}" /> |
||||
{{ end }} |
||||
@ -1,26 +0,0 @@ |
||||
{{ if .Site.Params.github_user | and .Site.Params.github_repo }} |
||||
{{ $path := printf "%s/%s" .Site.Params.github_user .Site.Params.github_repo }} |
||||
|
||||
{{ if .Site.Params.sidebar.github_button }} |
||||
<iframe src="https://ghbtns.com/github-btn.html?user={{ .Site.Params.github_user }}&repo={{ .Site.Params.github_repo }}&type=watch&count=true&size=large" |
||||
style="border: 0; overflow: hidden;" width="200" height="35"></iframe> |
||||
{{ end }} |
||||
|
||||
{{ if .Site.Params.sidebar.travis_button }} |
||||
<p> |
||||
<a href="https://travis-ci.org/{{ $path }}"> |
||||
<img alt="https://secure.travis-ci.org/{{ $path }}.svg?branch=master" |
||||
src="https://secure.travis-ci.org/{{ $path }}.svg?branch=master" /> |
||||
</a> |
||||
</p> |
||||
{{ end }} |
||||
|
||||
{{ if .Site.Params.sidebar.codecov_button }} |
||||
<p> |
||||
<a href="https://codecov.io/github/{{ $path }}"> |
||||
<img alt="https://codecov.io/github/{{ $path }}/coverage.svg?branch=master" |
||||
src="https://codecov.io/github/{{ $path }}/coverage.svg?branch=master" /> |
||||
</a> |
||||
</p> |
||||
{{ end }} |
||||
{{ end }} |
||||
@ -1,7 +0,0 @@ |
||||
{{ with .Site.Params.sidebar.gratipay -}} |
||||
<h3>Donate</h3> |
||||
<p> |
||||
Consider supporting the authors on <a href="https://www.gratipay.com/">Gratipay</a>: |
||||
<script src="//grtp.co/v1.js" data-gratipay-username="{{ . }}" data-gratipay-widget="button" async></script> |
||||
</p> |
||||
{{- end }} |
||||
@ -1,11 +0,0 @@ |
||||
{{ range $menu_name, $menu := .Site.Menus }} |
||||
<h3>{{ $menu_name | replaceRE "^[0-9]+\\." "" | humanize | title }}</h3> |
||||
<ul> |
||||
{{ range $menu }} |
||||
{{ $title := (.Title | replaceRE "Test Site" "<b>${0}</b>" | safeHTML) }} |
||||
<li class="toctree-l1"> |
||||
<a class="reference internal" href="{{ .URL }}">{{ $title }}</a> |
||||
</li> |
||||
{{ end }} |
||||
</ul> |
||||
{{ end }} |
||||
@ -1,12 +0,0 @@ |
||||
{{ if .Site.Params.sidebar.show_relations | and .IsPage -}} |
||||
<h3>Related Topics</h3> |
||||
<ul> |
||||
<li><a href="/">Documentation overview</a><ul> |
||||
{{ with .PrevInSection -}} |
||||
<li>Previous: <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></li> |
||||
{{- end }} |
||||
{{ with .NextInSection -}} |
||||
<li>Next: <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></li> |
||||
{{- end }} |
||||
</ul> |
||||
{{- end }} |
||||
@ -1,23 +0,0 @@ |
||||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation"> |
||||
<div class="sphinxsidebarwrapper"> |
||||
<p class="logo"> |
||||
<a href="{{ .Site.BaseURL }}"> |
||||
{{ with .Site.Params.sidebar.logo -}} |
||||
<img class="logo" src="{{ . | relURL }}" alt="Logo"/> |
||||
{{ end }} |
||||
<br /> |
||||
<span class="logo logo-name">{{ .Site.Params.name }}</span> |
||||
</a> |
||||
</p> |
||||
|
||||
{{ with .Site.Params.description -}} |
||||
<p class="blurb">{{ . | markdownify }}</p> |
||||
{{ end }} |
||||
|
||||
{{ partial "sidebar/buttons" . }} |
||||
{{ partial "sidebar/donate" . }} |
||||
{{ partial "sidebar/menu" . }} |
||||
{{ partial "sidebar/relations" . }} |
||||
</div> |
||||
</div> |
||||
<div class="clearer"></div> |
||||
@ -1,20 +0,0 @@ |
||||
{{- $summary_has_org_toc := substr .Content 0 30 | findRE "[\".]ox-hugo-toc" -}} |
||||
{{- if $summary_has_org_toc -}} |
||||
{{- $content_splits := split .RawContent "<!--endtoc-->" -}} <!-- Need to use .RawContent as we will be parsing for 'more' comment later. --> |
||||
<!-- If Org TOC is present, the special comment endtoc would also be present. |
||||
In that case, output only the part *after* that comment as Summary. --> |
||||
{{- $summary_raw := index $content_splits 1 -}} |
||||
{{- $summary_splits := split $summary_raw "<!--more-->" -}} |
||||
{{- if eq (len $summary_splits) 2 -}} |
||||
{{- index $summary_splits 0 | markdownify -}} |
||||
{{- else -}} |
||||
{{- $summary_raw | markdownify | truncate 300 -}} |
||||
{{- end -}} |
||||
<!-- Print the whole Description/Summary if endtoc special comment is not found. --> |
||||
{{- else -}} |
||||
{{- with .Description -}} |
||||
{{- . | markdownify | printf "<p>%s</p>" | safeHTML -}} |
||||
{{- else -}} |
||||
{{- .Summary | printf "<p>%s</p>" | safeHTML -}} |
||||
{{- end -}} |
||||
{{- end -}} |
||||
@ -1,38 +0,0 @@ |
||||
{{ $permalink := .Permalink }} |
||||
{{- with $.Params.images -}} |
||||
<meta name="twitter:card" content="summary_large_image"/> |
||||
<!-- As per https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary-card-with-large-image, |
||||
the required card property is "twitter:image", not "twitter:image:src". --> |
||||
{{- $image := (index . 0) -}} |
||||
{{- $image_link_absolute := (findRE "^/" $image) -}} |
||||
{{- if $image_link_absolute -}} |
||||
<meta name="twitter:image" content="{{- $image | absURL -}}"/> |
||||
{{- else -}} |
||||
<meta name="twitter:image" content="{{- (printf "%s%s" $permalink $image) -}}"/> |
||||
{{- end -}} |
||||
{{ else -}} |
||||
{{- $images := $.Resources.ByType "image" -}} |
||||
{{- $featured := $images.GetMatch "*feature*" -}} |
||||
{{- $featured := cond (ne $featured nil) $featured ($images.GetMatch "{*cover*,*thumbnail*}") -}} |
||||
{{- with $featured -}} |
||||
<meta name="twitter:card" content="summary_large_image"/> |
||||
<meta name="twitter:image" content="{{ $featured.Permalink }}"/> |
||||
{{- else -}} |
||||
<meta name="twitter:card" content="summary"/> |
||||
{{- with $.Site.Params.images -}} |
||||
{{- $image := (index . 0) -}} |
||||
{{- $image_link_absolute := (findRE "^/" $image) -}} |
||||
{{- if $image_link_absolute -}} |
||||
<meta name="twitter:image" content="{{- $image | absURL -}}"/> |
||||
{{- else -}} |
||||
<meta name="twitter:image" content="{{- (printf "%s%s" $permalink $image) -}}"/> |
||||
{{- end -}} |
||||
{{- end -}} |
||||
{{- end -}} |
||||
{{- end }} |
||||
<meta name="twitter:title" content="{{ .Title }}"/> |
||||
<meta name="twitter:description" content="{{ with .Description }}{{ . | plainify }}{{ else }}{{ if .IsPage }}{{ partial "summary_minus_toc.html" . | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . | plainify }}{{ end }}{{ end }}{{ end -}}"/> |
||||
{{ with .Site.Social.twitter -}} |
||||
<meta name="twitter:site" content="@{{ . }}"/> |
||||
<meta name="twitter:creator" content="@{{ . }}"/> |
||||
{{ end -}} |
||||
@ -1,4 +0,0 @@ |
||||
<div class="admonition {{ .Get "type" | lower }}"> |
||||
<p class="first admonition-title">{{ .Get "title" }}</p> |
||||
<p>{{ string .Inner | markdownify }}</p> |
||||
</div> |
||||
@ -1,33 +0,0 @@ |
||||
<!-- image --> |
||||
<!-- https://github.com/gohugoio/hugo/issues/4406 --> |
||||
<!-- https://github.com/gohugoio/hugo/issues/4441 --> |
||||
<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}> |
||||
{{ if .Get "link"}}<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>{{ end }} |
||||
<img src="{{ .Get "src" }}" |
||||
alt="{{ if (or (.Get "alt") (.Get "caption")) }} |
||||
{{ with .Get "alt"}} |
||||
{{- . -}} |
||||
{{else}} |
||||
{{- .Get "caption" | markdownify | plainify -}} |
||||
{{ end }} |
||||
{{ else }} |
||||
{{- .Get "src" -}} |
||||
{{ end }}" |
||||
{{- with .Get "width" }}width="{{ . }}" {{ end -}} |
||||
{{- with .Get "height" }}height="{{ . }}" {{ end -}}/> |
||||
{{ if .Get "link"}}</a>{{ end }} |
||||
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} |
||||
<figcaption> |
||||
{{ if isset .Params "title" }} |
||||
<h4>{{ .Get "title" }}</h4> |
||||
{{ end }} |
||||
{{ if (or (.Get "caption") (.Get "attr")) }}<p> |
||||
{{ .Get "caption" | markdownify }} |
||||
{{ with .Get "attrlink"}}<a href="{{ . }}"> {{ end }} |
||||
{{ .Get "attr" | markdownify }} |
||||
{{ if .Get "attrlink"}}</a> {{ end }}</p> |
||||
{{ end }} |
||||
</figcaption> |
||||
{{ end }} |
||||
</figure> |
||||
<!-- image --> |
||||
@ -1,614 +0,0 @@ |
||||
/* -- page layout ----------------------------------------------------------- */ |
||||
|
||||
body { |
||||
font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro', serif; |
||||
font-size: 17px; |
||||
background-color: white; |
||||
color: #000; |
||||
margin: 0; |
||||
padding: 0; |
||||
} |
||||
|
||||
div.document { |
||||
width: 940px; |
||||
margin: 30px auto 0 auto; |
||||
} |
||||
|
||||
div.documentwrapper { |
||||
float: left; |
||||
width: 100%; |
||||
} |
||||
|
||||
div.bodywrapper { |
||||
margin: 0 0 0 220px; |
||||
} |
||||
|
||||
div.sphinxsidebar { |
||||
width: 220px; |
||||
} |
||||
|
||||
hr { |
||||
border: 1px solid #B1B4B6; |
||||
} |
||||
|
||||
div.body { |
||||
background-color: #ffffff; |
||||
color: #3E4349; |
||||
padding: 0 30px 0 30px; |
||||
} |
||||
|
||||
div.body > .section { |
||||
text-align: left; |
||||
} |
||||
|
||||
div.footer { |
||||
width: 940px; |
||||
margin: 20px auto 30px auto; |
||||
font-size: 14px; |
||||
color: #888; |
||||
text-align: right; |
||||
} |
||||
|
||||
div.footer a { |
||||
color: #888; |
||||
} |
||||
|
||||
|
||||
div.relations { |
||||
display: none; |
||||
} |
||||
|
||||
|
||||
div.sphinxsidebar a { |
||||
color: #444; |
||||
text-decoration: none; |
||||
border-bottom: 1px dotted #999; |
||||
} |
||||
|
||||
div.sphinxsidebar a:hover { |
||||
border-bottom: 1px solid #999; |
||||
} |
||||
|
||||
div.sphinxsidebar { |
||||
font-size: 14px; |
||||
line-height: 1.5; |
||||
} |
||||
|
||||
div.sphinxsidebarwrapper { |
||||
padding: 18px 10px; |
||||
} |
||||
|
||||
div.sphinxsidebarwrapper p.logo { |
||||
padding: 0; |
||||
margin: -10px 0 0 0px; |
||||
text-align: center; |
||||
} |
||||
|
||||
div.sphinxsidebarwrapper span.logo { |
||||
margin-top: -10px; |
||||
text-align: center; |
||||
margin-bottom: 5px; |
||||
text-align: center; |
||||
} |
||||
|
||||
div.sphinxsidebarwrapper span.logo-name { |
||||
margin-top: 0px; |
||||
font-size: 2em; |
||||
font-weight: bold; |
||||
} |
||||
|
||||
div.sphinxsidebarwrapper p.blurb { |
||||
margin-top: 0; |
||||
font-style: normal; |
||||
} |
||||
|
||||
div.sphinxsidebar h3, |
||||
div.sphinxsidebar h4 { |
||||
font-family: 'Garamond', 'Georgia', serif; |
||||
color: #444; |
||||
font-size: 24px; |
||||
font-weight: normal; |
||||
margin: 0 0 5px 0; |
||||
padding: 0; |
||||
} |
||||
|
||||
div.sphinxsidebar h4 { |
||||
font-size: 20px; |
||||
} |
||||
|
||||
div.sphinxsidebar h3 a { |
||||
color: #444; |
||||
} |
||||
|
||||
div.sphinxsidebar p.logo a, |
||||
div.sphinxsidebar h3 a, |
||||
div.sphinxsidebar p.logo a:hover, |
||||
div.sphinxsidebar h3 a:hover { |
||||
border: none; |
||||
} |
||||
|
||||
div.sphinxsidebar p { |
||||
color: #555; |
||||
margin: 10px 0; |
||||
} |
||||
|
||||
div.sphinxsidebar ul { |
||||
margin: 10px 0; |
||||
padding: 0; |
||||
color: #000; |
||||
} |
||||
|
||||
div.sphinxsidebar ul li.toctree-l1 > a { |
||||
font-size: 120%; |
||||
} |
||||
|
||||
div.sphinxsidebar ul li.toctree-l2 > a { |
||||
font-size: 110%; |
||||
} |
||||
|
||||
div.sphinxsidebar input { |
||||
border: 1px solid #CCC; |
||||
font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro', serif; |
||||
font-size: 1em; |
||||
} |
||||
|
||||
div.sphinxsidebar hr { |
||||
border: none; |
||||
height: 1px; |
||||
color: #AAA; |
||||
background: #AAA; |
||||
|
||||
text-align: left; |
||||
margin-left: 0; |
||||
width: 50%; |
||||
} |
||||
|
||||
/* -- body styles ----------------------------------------------------------- */ |
||||
|
||||
a { |
||||
color: #3782BE; |
||||
text-decoration: underline; |
||||
-webkit-text-decoration-color: #3782BE; |
||||
text-decoration-color: #3782BE; |
||||
-webkit-text-decoration-skip: ink; |
||||
text-decoration-skip: ink; |
||||
} |
||||
|
||||
a:hover { |
||||
-webkit-text-decoration-color: inherit; |
||||
text-decoration-color: inherit; |
||||
} |
||||
|
||||
div.body h1, |
||||
div.body h2, |
||||
div.body h3, |
||||
div.body h4, |
||||
div.body h5, |
||||
div.body h6 { |
||||
font-family: 'Garamond', 'Georgia', serif; |
||||
font-weight: normal; |
||||
margin: 30px 0px 10px 0px; |
||||
padding: 0; |
||||
} |
||||
|
||||
div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } |
||||
div.body h2 { font-size: 180%; } |
||||
div.body h3 { font-size: 150%; } |
||||
div.body h4 { font-size: 130%; } |
||||
div.body h5 { font-size: 100%; } |
||||
div.body h6 { font-size: 100%; } |
||||
|
||||
a.headerlink { |
||||
color: #DDD; |
||||
padding: 0 4px; |
||||
text-decoration: none; |
||||
} |
||||
|
||||
a.headerlink:hover { |
||||
color: #444; |
||||
background: #EAEAEA; |
||||
} |
||||
|
||||
div.body p, div.body dd, div.body li { |
||||
line-height: 1.4em; |
||||
} |
||||
|
||||
div.admonition { |
||||
margin: 20px 0px; |
||||
padding: 10px 30px; |
||||
background-color: #FCC; |
||||
border: 1px solid #FAA; |
||||
} |
||||
|
||||
div.admonition tt.xref, div.admonition a tt { |
||||
border-bottom: 1px solid #fafafa; |
||||
} |
||||
|
||||
dd div.admonition { |
||||
margin-left: -60px; |
||||
padding-left: 60px; |
||||
} |
||||
|
||||
div.admonition p.admonition-title { |
||||
font-family: 'Garamond', 'Georgia', serif; |
||||
font-weight: normal; |
||||
font-size: 24px; |
||||
margin: 0 0 10px 0; |
||||
padding: 0; |
||||
line-height: 1; |
||||
} |
||||
|
||||
div.admonition p.last { |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
div.highlight { |
||||
background-color: white; |
||||
} |
||||
|
||||
dt:target, .highlight { |
||||
background: #FAF3E8; |
||||
} |
||||
|
||||
div.note { |
||||
background-color: #EEE; |
||||
border: 1px solid #CCC; |
||||
} |
||||
|
||||
div.seealso { |
||||
background-color: #EEE; |
||||
border: 1px solid #CCC; |
||||
} |
||||
|
||||
div.topic { |
||||
background-color: #eee; |
||||
} |
||||
|
||||
p.admonition-title { |
||||
display: inline; |
||||
} |
||||
|
||||
p.admonition-title:after { |
||||
content: ":"; |
||||
} |
||||
|
||||
pre, tt, code { |
||||
font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; |
||||
font-size: 0.9em; |
||||
} |
||||
|
||||
.hll { |
||||
background-color: #FFC; |
||||
margin: 0 -12px; |
||||
padding: 0 12px; |
||||
display: block; |
||||
} |
||||
|
||||
img.screenshot { |
||||
} |
||||
|
||||
tt.descname, tt.descclassname, code.descname, code.descclassname { |
||||
font-size: 0.95em; |
||||
} |
||||
|
||||
tt.descname, code.descname { |
||||
padding-right: 0.08em; |
||||
} |
||||
|
||||
img.screenshot { |
||||
-moz-box-shadow: 2px 2px 4px #eee; |
||||
-webkit-box-shadow: 2px 2px 4px #eee; |
||||
box-shadow: 2px 2px 4px #eee; |
||||
} |
||||
|
||||
table.docutils { |
||||
border: 1px solid #888; |
||||
-moz-box-shadow: 2px 2px 4px #eee; |
||||
-webkit-box-shadow: 2px 2px 4px #eee; |
||||
box-shadow: 2px 2px 4px #eee; |
||||
} |
||||
|
||||
table.docutils td, table.docutils th { |
||||
border: 1px solid #888; |
||||
padding: 0.25em 0.7em; |
||||
} |
||||
|
||||
table.field-list, table.footnote { |
||||
border: none; |
||||
-moz-box-shadow: none; |
||||
-webkit-box-shadow: none; |
||||
box-shadow: none; |
||||
} |
||||
|
||||
table.footnote { |
||||
margin: 15px 0; |
||||
width: 100%; |
||||
border: 1px solid #EEE; |
||||
background: #FDFDFD; |
||||
font-size: 0.9em; |
||||
} |
||||
|
||||
table.footnote + table.footnote { |
||||
margin-top: -15px; |
||||
border-top: none; |
||||
} |
||||
|
||||
table.field-list th { |
||||
padding: 0 0.8em 0 0; |
||||
} |
||||
|
||||
table.field-list td { |
||||
padding: 0; |
||||
} |
||||
|
||||
table.field-list p { |
||||
margin-bottom: 0.8em; |
||||
} |
||||
|
||||
table.footnote td.label { |
||||
width: 0px; |
||||
padding: 0.3em 0 0.3em 0.5em; |
||||
} |
||||
|
||||
table.footnote td { |
||||
padding: 0.3em 0.5em; |
||||
} |
||||
|
||||
dl { |
||||
margin: 0; |
||||
padding: 0; |
||||
} |
||||
|
||||
dl dd { |
||||
margin-left: 30px; |
||||
} |
||||
|
||||
blockquote { |
||||
margin: 0 0 0 30px; |
||||
padding: 0; |
||||
} |
||||
|
||||
ul, ol { |
||||
margin: 10px 0 10px 30px; |
||||
padding: 0; |
||||
} |
||||
|
||||
pre { |
||||
background: #EEE; |
||||
padding: 7px 30px; |
||||
margin: 15px 0px; |
||||
line-height: 1.3em; |
||||
} |
||||
|
||||
dl pre, blockquote pre, li pre { |
||||
margin-left: 0; |
||||
padding-left: 30px; |
||||
} |
||||
|
||||
dl dl pre { |
||||
margin-left: -90px; |
||||
padding-left: 90px; |
||||
} |
||||
|
||||
tt, code { |
||||
background-color: #ecf0f3; |
||||
color: #222; |
||||
/* padding: 1px 2px; */ |
||||
} |
||||
|
||||
tt.xref, code.xref, a tt { |
||||
background-color: #FBFBFB; |
||||
border-bottom: 1px solid white; |
||||
} |
||||
|
||||
a.reference { |
||||
text-decoration: none; |
||||
border-bottom: 1px dotted #3782BE; |
||||
} |
||||
|
||||
a.reference:hover { |
||||
border-bottom: 1px solid #3782BE; |
||||
} |
||||
|
||||
a.footnote-reference { |
||||
text-decoration: none; |
||||
font-size: 0.7em; |
||||
vertical-align: top; |
||||
border-bottom: 1px dotted #3782BE; |
||||
} |
||||
|
||||
a.footnote-reference:hover { |
||||
border-bottom: 1px solid #3782BE; |
||||
} |
||||
|
||||
a:hover tt, a:hover code { |
||||
background: #EEE; |
||||
} |
||||
|
||||
|
||||
@media screen and (max-width: 870px) { |
||||
|
||||
div.sphinxsidebar { |
||||
display: none; |
||||
} |
||||
|
||||
div.document { |
||||
width: 100%; |
||||
|
||||
} |
||||
|
||||
div.documentwrapper { |
||||
margin-left: 0; |
||||
margin-top: 0; |
||||
margin-right: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
div.bodywrapper { |
||||
margin-top: 0; |
||||
margin-right: 0; |
||||
margin-bottom: 0; |
||||
margin-left: 0; |
||||
} |
||||
|
||||
ul { |
||||
margin-left: 0; |
||||
} |
||||
|
||||
.document { |
||||
width: auto; |
||||
} |
||||
|
||||
.bodywrapper { |
||||
margin: 0; |
||||
} |
||||
|
||||
.footer { |
||||
width: auto; |
||||
} |
||||
|
||||
.github { |
||||
display: none; |
||||
} |
||||
|
||||
|
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
@media screen and (max-width: 875px) { |
||||
|
||||
body { |
||||
margin: 0; |
||||
padding: 20px 30px; |
||||
} |
||||
|
||||
div.documentwrapper { |
||||
float: none; |
||||
background: white; |
||||
} |
||||
|
||||
div.sphinxsidebar { |
||||
display: block; |
||||
float: none; |
||||
width: 102.5%; |
||||
margin: 50px -30px -20px -30px; |
||||
padding: 10px 20px; |
||||
background: #333; |
||||
color: #FFF; |
||||
} |
||||
|
||||
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, |
||||
div.sphinxsidebar h3 a { |
||||
color: white; |
||||
} |
||||
|
||||
div.sphinxsidebar a { |
||||
color: #AAA; |
||||
} |
||||
|
||||
div.sphinxsidebar p.logo { |
||||
display: none; |
||||
} |
||||
|
||||
div.document { |
||||
width: 100%; |
||||
margin: 0; |
||||
} |
||||
|
||||
div.footer { |
||||
width: auto; |
||||
margin-top: 30px; |
||||
margin-bottom: 0; |
||||
text-align: center; |
||||
} |
||||
|
||||
div.bodywrapper { |
||||
margin: 0; |
||||
} |
||||
|
||||
div.body { |
||||
min-height: 0; |
||||
padding: 0; |
||||
} |
||||
|
||||
.rtd_doc_footer { |
||||
display: none; |
||||
} |
||||
|
||||
.document { |
||||
width: auto; |
||||
} |
||||
|
||||
.footer { |
||||
width: auto; |
||||
} |
||||
|
||||
.github { |
||||
display: none; |
||||
} |
||||
} |
||||
|
||||
|
||||
/* misc. */ |
||||
|
||||
.revsys-inline { |
||||
display: none!important; |
||||
} |
||||
|
||||
/* Make nested-list/multi-paragraph items look better in Releases changelog |
||||
* pages. Without this, docutils' magical list fuckery causes inconsistent |
||||
* formatting between different release sub-lists. |
||||
*/ |
||||
div#changelog > div.section > ul > li > p:only-child { |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
/* Hide fugly table cell borders in ..bibliography:: directive output */ |
||||
table.docutils.citation, table.docutils.citation td, table.docutils.citation th { |
||||
border: none; |
||||
/* Below needed in some edge cases; if not applied, bottom shadows appear */ |
||||
-moz-box-shadow: none; |
||||
-webkit-box-shadow: none; |
||||
box-shadow: none; |
||||
} |
||||
|
||||
/* Headline Hashes */ |
||||
.headline-hash, |
||||
.headline-hash:hover { |
||||
text-decoration: none; |
||||
font-size: 0.8em; |
||||
vertical-align: top; |
||||
} |
||||
.headline-hash:hover { |
||||
opacity: 0.75; |
||||
} |
||||
|
||||
/* Org-style Headline Level Prefix */ |
||||
.body h2::before, |
||||
.body h3::before, |
||||
.body h4::before, |
||||
.body h5::before, |
||||
.body h6::before { |
||||
color: #515151; |
||||
opacity: 0.6; |
||||
font-size: 1.3em; |
||||
font-weight: bold; |
||||
vertical-align: -25%; |
||||
} |
||||
.body h2::before { |
||||
content: "* "; |
||||
} |
||||
.body h3::before { |
||||
content: "** "; |
||||
} |
||||
.body h4::before { |
||||
content: "*** "; |
||||
} |
||||
.body h5::before { |
||||
content: "**** "; |
||||
} |
||||
.body h6::before { |
||||
content: "***** "; |
||||
} |
||||
@ -1,599 +0,0 @@ |
||||
/* |
||||
* basic.css |
||||
* ~~~~~~~~~ |
||||
* |
||||
* Sphinx stylesheet -- basic theme. |
||||
* |
||||
* :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. |
||||
* :license: BSD, see LICENSE for details. |
||||
* |
||||
*/ |
||||
|
||||
/* -- main layout ----------------------------------------------------------- */ |
||||
|
||||
div.clearer { |
||||
clear: both; |
||||
} |
||||
|
||||
/* -- relbar ---------------------------------------------------------------- */ |
||||
|
||||
div.related { |
||||
width: 100%; |
||||
font-size: 90%; |
||||
} |
||||
|
||||
div.related h3 { |
||||
display: none; |
||||
} |
||||
|
||||
div.related ul { |
||||
margin: 0; |
||||
padding: 0 0 0 10px; |
||||
list-style: none; |
||||
} |
||||
|
||||
div.related li { |
||||
display: inline; |
||||
} |
||||
|
||||
div.related li.right { |
||||
float: right; |
||||
margin-right: 5px; |
||||
} |
||||
|
||||
/* -- sidebar --------------------------------------------------------------- */ |
||||
|
||||
div.sphinxsidebarwrapper { |
||||
padding: 10px 5px 0 10px; |
||||
} |
||||
|
||||
div.sphinxsidebar { |
||||
float: left; |
||||
width: 230px; |
||||
margin-left: -100%; |
||||
font-size: 90%; |
||||
} |
||||
|
||||
div.sphinxsidebar ul { |
||||
list-style: none; |
||||
} |
||||
|
||||
div.sphinxsidebar ul ul, |
||||
div.sphinxsidebar ul.want-points { |
||||
margin-left: 20px; |
||||
list-style: square; |
||||
} |
||||
|
||||
div.sphinxsidebar ul ul { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
div.sphinxsidebar form { |
||||
margin-top: 10px; |
||||
} |
||||
|
||||
div.sphinxsidebar input { |
||||
border: 1px solid #98dbcc; |
||||
font-family: sans-serif; |
||||
font-size: 1em; |
||||
} |
||||
|
||||
div.sphinxsidebar #searchbox input[type="text"] { |
||||
width: 170px; |
||||
} |
||||
|
||||
div.sphinxsidebar #searchbox input[type="submit"] { |
||||
width: 30px; |
||||
} |
||||
|
||||
img { |
||||
border: 0; |
||||
max-width: 100%; |
||||
} |
||||
|
||||
/* -- search page ----------------------------------------------------------- */ |
||||
|
||||
ul.search { |
||||
margin: 10px 0 0 20px; |
||||
padding: 0; |
||||
} |
||||
|
||||
ul.search li { |
||||
padding: 5px 0 5px 20px; |
||||
background-image: url(file.png); |
||||
background-repeat: no-repeat; |
||||
background-position: 0 7px; |
||||
} |
||||
|
||||
ul.search li a { |
||||
font-weight: bold; |
||||
} |
||||
|
||||
ul.search li div.context { |
||||
color: #888; |
||||
margin: 2px 0 0 30px; |
||||
text-align: left; |
||||
} |
||||
|
||||
ul.keywordmatches li.goodmatch a { |
||||
font-weight: bold; |
||||
} |
||||
|
||||
/* -- index page ------------------------------------------------------------ */ |
||||
|
||||
table.contentstable { |
||||
width: 90%; |
||||
} |
||||
|
||||
table.contentstable p.biglink { |
||||
line-height: 150%; |
||||
} |
||||
|
||||
a.biglink { |
||||
font-size: 1.3em; |
||||
} |
||||
|
||||
span.linkdescr { |
||||
font-style: italic; |
||||
padding-top: 5px; |
||||
font-size: 90%; |
||||
} |
||||
|
||||
/* -- general index --------------------------------------------------------- */ |
||||
|
||||
table.indextable { |
||||
width: 100%; |
||||
} |
||||
|
||||
table.indextable td { |
||||
text-align: left; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
table.indextable dl, table.indextable dd { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
table.indextable tr.pcap { |
||||
height: 10px; |
||||
} |
||||
|
||||
table.indextable tr.cap { |
||||
margin-top: 10px; |
||||
background-color: #f2f2f2; |
||||
} |
||||
|
||||
img.toggler { |
||||
margin-right: 3px; |
||||
margin-top: 3px; |
||||
cursor: pointer; |
||||
} |
||||
|
||||
div.modindex-jumpbox { |
||||
border-top: 1px solid #ddd; |
||||
border-bottom: 1px solid #ddd; |
||||
margin: 1em 0 1em 0; |
||||
padding: 0.4em; |
||||
} |
||||
|
||||
div.genindex-jumpbox { |
||||
border-top: 1px solid #ddd; |
||||
border-bottom: 1px solid #ddd; |
||||
margin: 1em 0 1em 0; |
||||
padding: 0.4em; |
||||
} |
||||
|
||||
/* -- general body styles --------------------------------------------------- */ |
||||
|
||||
a.headerlink { |
||||
visibility: hidden; |
||||
} |
||||
|
||||
h1:hover > a.headerlink, |
||||
h2:hover > a.headerlink, |
||||
h3:hover > a.headerlink, |
||||
h4:hover > a.headerlink, |
||||
h5:hover > a.headerlink, |
||||
h6:hover > a.headerlink, |
||||
dt:hover > a.headerlink, |
||||
caption:hover > a.headerlink, |
||||
p.caption:hover > a.headerlink, |
||||
div.code-block-caption:hover > a.headerlink { |
||||
visibility: visible; |
||||
} |
||||
|
||||
div.body p.caption { |
||||
text-align: inherit; |
||||
} |
||||
|
||||
div.body td { |
||||
text-align: left; |
||||
} |
||||
|
||||
.field-list ul { |
||||
padding-left: 1em; |
||||
} |
||||
|
||||
.first { |
||||
margin-top: 0 !important; |
||||
} |
||||
|
||||
p.rubric { |
||||
margin-top: 30px; |
||||
font-weight: bold; |
||||
} |
||||
|
||||
img.align-left, .figure.align-left, object.align-left { |
||||
clear: left; |
||||
float: left; |
||||
margin-right: 1em; |
||||
} |
||||
|
||||
img.align-right, .figure.align-right, object.align-right { |
||||
clear: right; |
||||
float: right; |
||||
margin-left: 1em; |
||||
} |
||||
|
||||
img.align-center, .figure.align-center, object.align-center { |
||||
display: block; |
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
} |
||||
|
||||
.align-left { |
||||
text-align: left; |
||||
} |
||||
|
||||
.align-center { |
||||
text-align: center; |
||||
} |
||||
|
||||
.align-right { |
||||
text-align: right; |
||||
} |
||||
|
||||
/* -- sidebars -------------------------------------------------------------- */ |
||||
|
||||
div.sidebar { |
||||
margin: 0 0 0.5em 1em; |
||||
border: 1px solid #ddb; |
||||
padding: 7px 7px 0 7px; |
||||
background-color: #ffe; |
||||
width: 40%; |
||||
float: right; |
||||
} |
||||
|
||||
p.sidebar-title { |
||||
font-weight: bold; |
||||
} |
||||
|
||||
/* -- topics ---------------------------------------------------------------- */ |
||||
|
||||
div.topic { |
||||
border: 1px solid #ccc; |
||||
padding: 7px 7px 0 7px; |
||||
margin: 10px 0 10px 0; |
||||
} |
||||
|
||||
p.topic-title { |
||||
font-size: 1.1em; |
||||
font-weight: bold; |
||||
margin-top: 10px; |
||||
} |
||||
|
||||
/* -- admonitions ----------------------------------------------------------- */ |
||||
|
||||
div.admonition { |
||||
margin-top: 10px; |
||||
margin-bottom: 10px; |
||||
padding: 7px; |
||||
} |
||||
|
||||
div.admonition dt { |
||||
font-weight: bold; |
||||
} |
||||
|
||||
div.admonition dl { |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
p.admonition-title { |
||||
margin: 0px 10px 5px 0px; |
||||
font-weight: bold; |
||||
} |
||||
|
||||
div.body p.centered { |
||||
text-align: center; |
||||
margin-top: 25px; |
||||
} |
||||
|
||||
/* -- tables ---------------------------------------------------------------- */ |
||||
|
||||
table.docutils { |
||||
border: 0; |
||||
border-collapse: collapse; |
||||
} |
||||
|
||||
table caption span.caption-number { |
||||
font-style: italic; |
||||
} |
||||
|
||||
table caption span.caption-text { |
||||
} |
||||
|
||||
table.docutils td, table.docutils th { |
||||
padding: 1px 8px 1px 5px; |
||||
border-top: 0; |
||||
border-left: 0; |
||||
border-right: 0; |
||||
border-bottom: 1px solid #aaa; |
||||
} |
||||
|
||||
table.field-list td, table.field-list th { |
||||
border: 0 !important; |
||||
} |
||||
|
||||
table.footnote td, table.footnote th { |
||||
border: 0 !important; |
||||
} |
||||
|
||||
th { |
||||
text-align: left; |
||||
padding-right: 5px; |
||||
} |
||||
|
||||
table.citation { |
||||
border-left: solid 1px gray; |
||||
margin-left: 1px; |
||||
} |
||||
|
||||
table.citation td { |
||||
border-bottom: none; |
||||
} |
||||
|
||||
/* -- figures --------------------------------------------------------------- */ |
||||
|
||||
div.figure { |
||||
margin: 0.5em; |
||||
padding: 0.5em; |
||||
} |
||||
|
||||
div.figure p.caption { |
||||
padding: 0.3em; |
||||
} |
||||
|
||||
div.figure p.caption span.caption-number { |
||||
font-style: italic; |
||||
} |
||||
|
||||
div.figure p.caption span.caption-text { |
||||
} |
||||
|
||||
|
||||
/* -- other body styles ----------------------------------------------------- */ |
||||
|
||||
ol.arabic { |
||||
list-style: decimal; |
||||
} |
||||
|
||||
ol.loweralpha { |
||||
list-style: lower-alpha; |
||||
} |
||||
|
||||
ol.upperalpha { |
||||
list-style: upper-alpha; |
||||
} |
||||
|
||||
ol.lowerroman { |
||||
list-style: lower-roman; |
||||
} |
||||
|
||||
ol.upperroman { |
||||
list-style: upper-roman; |
||||
} |
||||
|
||||
dl { |
||||
margin-bottom: 15px; |
||||
} |
||||
|
||||
dd p { |
||||
margin-top: 0px; |
||||
} |
||||
|
||||
dd ul, dd table { |
||||
margin-bottom: 10px; |
||||
} |
||||
|
||||
dd { |
||||
margin-top: 3px; |
||||
margin-bottom: 10px; |
||||
margin-left: 30px; |
||||
} |
||||
|
||||
dt:target, .highlighted { |
||||
background-color: #fbe54e; |
||||
} |
||||
|
||||
dl.glossary dt { |
||||
font-weight: bold; |
||||
font-size: 1.1em; |
||||
} |
||||
|
||||
.field-list ul { |
||||
margin: 0; |
||||
padding-left: 1em; |
||||
} |
||||
|
||||
.field-list p { |
||||
margin: 0; |
||||
} |
||||
|
||||
.optional { |
||||
font-size: 1.3em; |
||||
} |
||||
|
||||
.sig-paren { |
||||
font-size: larger; |
||||
} |
||||
|
||||
.versionmodified { |
||||
font-style: italic; |
||||
} |
||||
|
||||
.system-message { |
||||
background-color: #fda; |
||||
padding: 5px; |
||||
border: 3px solid red; |
||||
} |
||||
|
||||
.footnote:target { |
||||
background-color: #ffa; |
||||
} |
||||
|
||||
.line-block { |
||||
display: block; |
||||
margin-top: 1em; |
||||
margin-bottom: 1em; |
||||
} |
||||
|
||||
.line-block .line-block { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
margin-left: 1.5em; |
||||
} |
||||
|
||||
.guilabel, .menuselection { |
||||
font-family: sans-serif; |
||||
} |
||||
|
||||
.accelerator { |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
.classifier { |
||||
font-style: oblique; |
||||
} |
||||
|
||||
abbr, acronym { |
||||
border-bottom: dotted 1px; |
||||
cursor: help; |
||||
} |
||||
|
||||
/* -- code displays --------------------------------------------------------- */ |
||||
|
||||
pre { |
||||
overflow: auto; |
||||
overflow-y: hidden; /* fixes display issues on Chrome browsers */ |
||||
} |
||||
|
||||
td.linenos pre { |
||||
padding: 5px 0px; |
||||
border: 0; |
||||
background-color: transparent; |
||||
color: #aaa; |
||||
} |
||||
|
||||
table.highlighttable { |
||||
margin-left: 0.5em; |
||||
} |
||||
|
||||
table.highlighttable td { |
||||
padding: 0 0.5em 0 0.5em; |
||||
} |
||||
|
||||
div.code-block-caption { |
||||
padding: 2px 5px; |
||||
font-size: small; |
||||
} |
||||
|
||||
div.code-block-caption code { |
||||
background-color: transparent; |
||||
} |
||||
|
||||
div.code-block-caption + div > div.highlight > pre { |
||||
margin-top: 0; |
||||
} |
||||
|
||||
div.code-block-caption span.caption-number { |
||||
padding: 0.1em 0.3em; |
||||
font-style: italic; |
||||
} |
||||
|
||||
div.code-block-caption span.caption-text { |
||||
} |
||||
|
||||
div.literal-block-wrapper { |
||||
padding: 1em 1em 0; |
||||
} |
||||
|
||||
div.literal-block-wrapper div.highlight { |
||||
margin: 0; |
||||
} |
||||
|
||||
code.descname { |
||||
background-color: transparent; |
||||
font-weight: bold; |
||||
font-size: 1.2em; |
||||
} |
||||
|
||||
code.descclassname { |
||||
background-color: transparent; |
||||
} |
||||
|
||||
code.xref, a code { |
||||
background-color: transparent; |
||||
font-weight: bold; |
||||
} |
||||
|
||||
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { |
||||
background-color: transparent; |
||||
} |
||||
|
||||
.viewcode-link { |
||||
float: right; |
||||
} |
||||
|
||||
.viewcode-back { |
||||
float: right; |
||||
font-family: sans-serif; |
||||
} |
||||
|
||||
div.viewcode-block:target { |
||||
margin: -1px -10px; |
||||
padding: 0 10px; |
||||
} |
||||
|
||||
/* -- math display ---------------------------------------------------------- */ |
||||
|
||||
img.math { |
||||
vertical-align: middle; |
||||
} |
||||
|
||||
div.body div.math p { |
||||
text-align: center; |
||||
} |
||||
|
||||
span.eqno { |
||||
float: right; |
||||
} |
||||
|
||||
/* -- printout stylesheet --------------------------------------------------- */ |
||||
|
||||
@media print { |
||||
div.document, |
||||
div.documentwrapper, |
||||
div.bodywrapper { |
||||
margin: 0 !important; |
||||
width: 100%; |
||||
} |
||||
|
||||
div.sphinxsidebar, |
||||
div.related, |
||||
div.footer, |
||||
#top-link { |
||||
display: none; |
||||
} |
||||
} |
||||
@ -1,86 +0,0 @@ |
||||
/* |
||||
Description: Foundation 4 docs style for highlight.js |
||||
Author: Dan Allen <dan.j.allen@gmail.com> |
||||
Website: http://foundation.zurb.com/docs/ |
||||
Version: 1.0 |
||||
Date: 2013-04-02 |
||||
*/ |
||||
|
||||
.hljs { |
||||
display: block; |
||||
overflow-x: auto; |
||||
} |
||||
|
||||
.hljs-link, |
||||
.hljs-emphasis, |
||||
.hljs-attribute, |
||||
.hljs-addition { |
||||
color: #070; |
||||
} |
||||
|
||||
.hljs-emphasis { |
||||
font-style: italic; |
||||
} |
||||
|
||||
.hljs-strong, |
||||
.hljs-string, |
||||
.hljs-deletion { |
||||
color: #d14; |
||||
} |
||||
|
||||
.hljs-strong { |
||||
font-weight: bold; |
||||
} |
||||
|
||||
.hljs-quote, |
||||
.hljs-comment { |
||||
color: #998; |
||||
font-style: italic; |
||||
} |
||||
|
||||
.hljs-section, |
||||
.hljs-title { |
||||
color: #900; |
||||
} |
||||
|
||||
.hljs-class .hljs-title, |
||||
.hljs-type { |
||||
color: #458; |
||||
} |
||||
|
||||
.hljs-variable, |
||||
.hljs-template-variable { |
||||
color: #336699; |
||||
} |
||||
|
||||
.hljs-bullet { |
||||
color: #997700; |
||||
} |
||||
|
||||
.hljs-meta { |
||||
color: #3344bb; |
||||
} |
||||
|
||||
.hljs-code, |
||||
.hljs-number, |
||||
.hljs-literal, |
||||
.hljs-keyword, |
||||
.hljs-selector-tag { |
||||
color: #099; |
||||
} |
||||
|
||||
.hljs-regexp { |
||||
background-color: #fff0ff; |
||||
color: #880088; |
||||
} |
||||
|
||||
.hljs-symbol { |
||||
color: #990073; |
||||
} |
||||
|
||||
.hljs-tag, |
||||
.hljs-name, |
||||
.hljs-selector-id, |
||||
.hljs-selector-class { |
||||
color: #007700; |
||||
} |
||||
|
Before Width: | Height: | Size: 169 B |
@ -1,18 +0,0 @@ |
||||
name = "Alabaster" |
||||
license = "BSD" |
||||
licenselink = "https://github.com/digitalcraftsman/hugo-alabaster-theme/blob/master/LICENSE.md" |
||||
description = "A documentation theme ported from Sphinx to Hugo" |
||||
homepage = "https://github.com/digitalcraftsman/hugo-alabaster-theme" |
||||
tags = ["documentation", "sphinx"] |
||||
features = [] |
||||
min_version = 0.20 |
||||
|
||||
[author] |
||||
name = "Digitalcraftsman" |
||||
homepage = "https://github.com/digitalcraftsman" |
||||
|
||||
# If porting an existing theme |
||||
[original] |
||||
name = "Jeff Forcier" |
||||
homepage = "http://bitprophet.org/" |
||||
repo = "https://github.com/bitprophet/alabaster" |
||||
@ -0,0 +1 @@ |
||||
Subproject commit 4c62ea699711b20bee7b5c8e67eb141a2f8d6aed |
||||
@ -1 +1 @@ |
||||
Subproject commit f53889a6a1401b83e2de00bb6f5822f33cbbb222 |
||||
Subproject commit 3b1cc0b192091cdadb2d0ef61cdaf8120c30e162 |
||||
Loading…
Reference in new issue