mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 04:06:11 +01:00
recopy from pydocs review input
This commit is contained in:
@@ -14,27 +14,20 @@
|
||||
</head>
|
||||
<body>
|
||||
<v-app id="app" class="grey lighten-5" v-cloak stylse="display: none;">
|
||||
{{ partial "menu.html" . }}
|
||||
{{- partial "toolbar.html" . -}}
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
{{- partial "toolbar.html" . -}}
|
||||
<v-content >
|
||||
<v-container class="fluid pa-4">
|
||||
<v-container class="ma-1 pa-1">
|
||||
<v-container class="ma-1 pa-1">
|
||||
{{- partial "menu-contextual.html" . -}}
|
||||
{{- block "main" . }}{{- end }}
|
||||
</v-container>
|
||||
</v-container>
|
||||
</v-content>
|
||||
|
||||
|
||||
|
||||
|
||||
{{- partial "menu-contextual.html" . -}}
|
||||
{{- block "main" . }}{{- end }}
|
||||
|
||||
</v-container>
|
||||
</v-container>
|
||||
</v-content>
|
||||
|
||||
|
||||
|
||||
|
||||
{{- partial "footer.html" . -}}
|
||||
<!--
|
||||
{{- partial "footer.html" . -}}
|
||||
-->
|
||||
</v-app>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||||
@@ -63,8 +56,8 @@
|
||||
drawer2: true,
|
||||
toc: 0,
|
||||
branches: [
|
||||
{ value: 'https://development.pycom.io', text: 'development version'},
|
||||
{ value: 'https://docs.pycom.io', text: 'version stable', }
|
||||
{ value: 'https://docs.pycom.io', text: 'version stable', },
|
||||
{ value: 'https://development.pycom.io', text: 'version development'},
|
||||
],
|
||||
branch: ""
|
||||
},
|
||||
@@ -102,7 +95,7 @@
|
||||
fetchResults (kw, start) {
|
||||
if (!start) { start = 1 }
|
||||
let key = "AIzaSyD4-MGytNzTCZpTH6UYk1mfOxZkt74T5MI";
|
||||
let cx = "004592132197158309932:jleutbge8gs";
|
||||
let cx = "004592132197158309932:anluf60c9w8";
|
||||
let url = "https://www.googleapis.com/customsearch/v1";
|
||||
url = url + "?cx=" + cx + "&key=" + key + "&q=" + encodeURI(kw) + "&start=" + start
|
||||
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
<v-card>
|
||||
<v-card-text>
|
||||
{{ partial "breadcrumb_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }}
|
||||
{{ if .Title }}<h1>{{- .Title -}}</h1>{{ end }}
|
||||
<h1>{{- .Title -}}</h1>
|
||||
{{- .Content -}}
|
||||
<ul>
|
||||
{{ if lt .WordCount 10 }}
|
||||
{{ range .Paginator.Pages }}
|
||||
<li><a href="{{ .URL }}">
|
||||
{{ if .Title }}{{ .Title }}{{ else }}{{ .URL }}{{ end }}
|
||||
<a/></li>
|
||||
{{ if .Title }}{{ .Title }}{{ else }}{{ .URL }}{{ end }}<a/></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
<p> </p>
|
||||
{{ partial "prev_next.html" (dict "menu" .Site.Menus.main "page" . ) }}
|
||||
|
||||
<v-spacer/>
|
||||
|
||||
{{ end }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{ $p := .Get 0 }}
|
||||
{{ with .Page.GetPage $p }}
|
||||
<a href="{{ $p }}">{{ .Title }}</a>
|
||||
<a href="{{ .URL }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<p>
|
||||
{{ partial "breadcrumb_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }}
|
||||
{{ partial "breadcrumb_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }}
|
||||
</p>
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{{ $page := .page }}
|
||||
{{ $prev := . }}
|
||||
{{ $level := 1 }}
|
||||
{{ $prev := . }}
|
||||
|
||||
{{ range .menu }}
|
||||
|
||||
|
||||
|
||||
|
||||
{{ $iz := eq $page.URL .URL}}
|
||||
{{ $haz := in $page.URL .URL}}
|
||||
|
||||
@@ -14,7 +18,7 @@
|
||||
<a href="{{ .URL | relURL }}" class="bread {{ if or $iz $haz }}hot{{end}}"> {{ .Pre }} {{ .Name }}</a>
|
||||
{{ if not $iz }}>{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "breadcrumb_recursive.html" (dict "menu" .Children "page" $page) }}
|
||||
{{ partial "breadcrumb_recursive.html" (dict "menu" .Children "page" $page "level" $level) }}
|
||||
{{ if or $iz $haz }}
|
||||
|
||||
|
||||
@@ -36,3 +40,4 @@
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
@@ -5,14 +5,12 @@
|
||||
class="lighten-4 pt-0"
|
||||
style="overflow-y: hidden; overflow-x: hidden;"
|
||||
>
|
||||
<v-container style="height: 68px; background-color: rgb(23, 23, 48);" class="dark mb-0 pb-1 pt-3 elevation-5">
|
||||
<v-img height=48 width=190 src="/logo.svg">
|
||||
<v-container style="height: 68px; background-color: rgb(23, 23, 48);" class="dark mb-0 pb-1 pt-3 elevation-5 " >
|
||||
<v-img class="ml-4" height=48 width=190 src="/logo.svg">
|
||||
</v-container>
|
||||
|
||||
<v-container class="ma-0 pa-0 elevation-1">
|
||||
|
||||
|
||||
|
||||
<v-text-field
|
||||
v-model="q"
|
||||
style="width: 100%;"
|
||||
@@ -25,25 +23,25 @@
|
||||
label="Search"
|
||||
></v-text-field>
|
||||
|
||||
|
||||
</v-container>
|
||||
|
||||
<div class="fancyScroll" style="overflow-y: scroll; overflow-x: hidden;
|
||||
max-height: 100%;">
|
||||
<div class="fancyScroll pa-0 ma-0" style="overflow-y: scroll; overflow-x: hidden;
|
||||
max-height: 100%;" >
|
||||
|
||||
<v-divider class="grey lighten-1 mr-2 ml-2 mb-4"></v-divider>
|
||||
<v-divider class="grey lighten-1 mr-2 ml-1 mb-4"></v-divider>
|
||||
|
||||
|
||||
<p class="ml-3">
|
||||
<a href="/" class="beba" style="color: #1E1E3C; text-decoration: none!important;" >
|
||||
<v-icon style="color: #1E1E3C;" >home</v-icon> Table of content</a>
|
||||
<p>
|
||||
|
||||
{{ partial "menu_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }}
|
||||
<ul class="lefttree">
|
||||
<li class="lefttree">
|
||||
<a href="/" class="beba" style="color: #1E1E3C; text-decoration: none;" >
|
||||
<v-icon style="color: #1E1E3C;" class="mr-1" >home</v-icon> Table of content</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{{ partial "menu_recursive.html" (dict "menu" .Site.Menus.main "page" . "level" 0) }}
|
||||
|
||||
<v-divider class="grey lighten-1 ma-2 mt-4 mb-4"></v-divider>
|
||||
|
||||
<ul>Have a question ?
|
||||
<ul class="lefttree" >Have a question ?
|
||||
<li class="lefttree"> <a href="https://forum.pycom.io">Ask on the forum</a>
|
||||
</ul>
|
||||
<p> </p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{{ $page := .page }}
|
||||
{{ $level := add .level 1 }}
|
||||
{{ $pURL := .page.URL }}
|
||||
<ul class="lefttree ">
|
||||
{{ range .menu }}
|
||||
@@ -10,10 +11,11 @@
|
||||
|
||||
{{ if true }}
|
||||
<li class="lefttree {{ if or $iz $haz }}padleft hot{{ end }}" >
|
||||
<a href="{{ .URL | relURL }}" class="{{ if or $iz $haz }}hot{{end}} {{ if $subheading }}mono{{ end }}"> {{ .Pre }} {{ .Name }}</a>
|
||||
<v-icon style="color: transparent; display: hidden;" >done</v-icon>
|
||||
<a href="{{ .URL | relURL }}" class="{{ if or $iz $haz }}hot{{end}}"> {{ .Pre }} {{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ if or $iz $haz $phaz }}
|
||||
{{ partial "menu_recursive.html" (dict "menu" .Children "page" $page) }}
|
||||
{{ partial "menu_recursive.html" (dict "menu" .Children "page" $page "level" $level ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if or $iz $haz $phaz}}
|
||||
@@ -24,7 +26,8 @@
|
||||
|
||||
|
||||
<li class="lefttree {{ if $haz }}hot{{end}}">
|
||||
<a href="{{ .URL | relURL }}" class="{{ if $iz }}hot{{end}} {{ if $subheading }}mono{{ end }}">{{ .Name }}</a>
|
||||
<v-icon style="color: transparent; display: hidden;" >done</v-icon>
|
||||
<a href="{{ .URL | relURL }}" class="{{ if $iz }}hot{{end}}">{{ .Name }}</a>
|
||||
</li>
|
||||
|
||||
{{ end }}
|
||||
|
||||
@@ -7,9 +7,8 @@
|
||||
dark
|
||||
style="background-color: #171730"
|
||||
>
|
||||
<!-- style="background-color: #171730" -->
|
||||
<v-toolbar-title style="width: 260px; " class="ml-4 pl-0 pt-2 text-xs-center hidden-sm-and-down">
|
||||
<v-img height=48 width=190 src="/logo.svg" class="">
|
||||
<v-img class="ml-4" height=48 width=190 src="/logo.svg" class="">
|
||||
</v-toolbar-title>
|
||||
|
||||
<v-btn icon @click.stop="drawer = !drawer" style="z-index: 1200;">
|
||||
@@ -21,8 +20,8 @@
|
||||
|
||||
|
||||
<v-spacer></v-spacer>
|
||||
<div style="width: 235px; background-color: ">
|
||||
<v-select :items="branches" v-model="branch" class="mono">
|
||||
<div style="width: 240px; ">
|
||||
<v-select :items="branches" v-model="branch" width=120 class="mono">
|
||||
</div>
|
||||
</v-select>
|
||||
{{- if gt .WordCount 400 -}}
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
|
||||
html {
|
||||
font-size: 105%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.menu-contextual {
|
||||
width: 320px;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
z-index: 3;
|
||||
z-index: 4;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@@ -72,30 +69,27 @@ url("/fonts/BebasNeue-Regular.otf") format("opentype");
|
||||
|
||||
.application {
|
||||
/* font-family: 'Beba',Helvetica,Arial,Lucida,sans-serif; */
|
||||
font-family:'Space Mono',monospace;
|
||||
font-family: Helvetica;
|
||||
}
|
||||
|
||||
/*
|
||||
p {
|
||||
text-align: justify;
|
||||
}
|
||||
*/
|
||||
|
||||
.bread {
|
||||
font-family: 'Beba',Helvetica,Arial,Lucida,sans-serif;
|
||||
letter-spacing: 0.1em;
|
||||
color: #7800FF;
|
||||
/* color: #7800FF; */
|
||||
}
|
||||
|
||||
.theme--dark.v-navigation-drawer:not(.v-navigation-drawer--floating) .v-navigation-drawer__border {
|
||||
background-color: transparent;
|
||||
}
|
||||
/** this gives correct offset when link to anchors
|
||||
*[id]:before {
|
||||
display: block;
|
||||
content: " ";
|
||||
visibility: hidden;
|
||||
z-index: 0;
|
||||
|
||||
ul.lefttree {
|
||||
margin-left: -8px;
|
||||
}
|
||||
*/
|
||||
|
||||
a, li.lefttree > a {
|
||||
text-decoration: none;
|
||||
@@ -114,8 +108,12 @@ a:hover {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
a.v-tabs__item:hover {
|
||||
background-color: red!important;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #1E1E3C!important;
|
||||
color: #1E1E3C;
|
||||
}
|
||||
|
||||
li > a {
|
||||
@@ -125,18 +123,13 @@ li > a {
|
||||
}
|
||||
|
||||
li > a.hot {
|
||||
color: #7800FF;
|
||||
text-decoration: underline;
|
||||
background-color: yellow;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
li.lefttree {
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
|
||||
li.lefttree > i {
|
||||
display: hidden;
|
||||
}
|
||||
|
||||
li.lefttree > a {
|
||||
@@ -153,31 +146,25 @@ li.hot {
|
||||
}
|
||||
|
||||
|
||||
|
||||
ul.lefttree {
|
||||
padding-right: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.v-toolbar__content, .v-toolbar__extension {
|
||||
padding:0!important;
|
||||
}
|
||||
|
||||
.danger-alert {
|
||||
background-color: #FF450A !important;
|
||||
background-color: #EF9A9A !important;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.warning-alert {
|
||||
background-color: #FF450A !important;
|
||||
background-color: #EF9A9A !important;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
|
||||
.info-alert {
|
||||
background-color: #00FFFF !important;
|
||||
background-color: #90CAF9 !important;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
@@ -197,26 +184,6 @@ img {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
/*
|
||||
nav#TableOfContents::-webkit-scrollbar, .fancyScroll::-webkit-scrollbar
|
||||
{
|
||||
width: 10px!important;
|
||||
}
|
||||
|
||||
nav#TableOfContents::-webkit-scrollbar-thumb, .fancyScroll::-webkit-scrollbar-thumb
|
||||
{
|
||||
border-radius: 10px!important;
|
||||
background-image: -webkit-gradient(linear,
|
||||
left bottom,
|
||||
left top,
|
||||
color-stop(0.86, rgb(255,255,255)),
|
||||
color-stop(0.72, rgb(120,0,255)));
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
[v-cloak] > * { display:none }
|
||||
[v-cloak]::before {
|
||||
content: " ";
|
||||
@@ -230,8 +197,6 @@ nav#TableOfContents::-webkit-scrollbar-thumb, .fancyScroll::-webkit-scrollbar-th
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
table {
|
||||
display: table;
|
||||
width: 100%;
|
||||
@@ -289,7 +254,6 @@ pre > code {
|
||||
}
|
||||
|
||||
code {
|
||||
|
||||
padding: 1px;
|
||||
background-color: #EEEEEE;
|
||||
}
|
||||
@@ -297,3 +261,11 @@ code {
|
||||
.primary--text {
|
||||
color: #7800FF;
|
||||
}
|
||||
|
||||
.v-window {
|
||||
padding-top: 24px;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
}
|
||||
Reference in New Issue
Block a user