recopy from pydocs review input

This commit is contained in:
Emmanuel Florent
2019-06-28 11:21:02 +02:00
parent 25b2c660b0
commit b86f87e629
9 changed files with 76 additions and 106 deletions

View File

@@ -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

View File

@@ -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>&nbsp;</p>
{{ partial "prev_next.html" (dict "menu" .Site.Menus.main "page" . ) }}
<v-spacer/>
{{ end }}

View File

@@ -1,4 +1,4 @@
{{ $p := .Get 0 }}
{{ with .Page.GetPage $p }}
<a href="{{ $p }}">{{ .Title }}</a>
<a href="{{ .URL }}">{{ .Title }}</a>
{{ end }}