improved working of development

Combined the development pages into the stable docs with additional blocks
This commit is contained in:
gijsio
2020-08-24 15:48:53 +02:00
parent 2fc3b371e1
commit e92a07b740
5 changed files with 54 additions and 12 deletions

View File

@@ -48,8 +48,12 @@
drawer2: true,
toc: 0,
branches: [
{ value: 'https://docs.pycom.io', text: 'version stable', },
{ value: 'https://development.pycom.io', text: 'version development'},
{ value: '1', text: 'version stable'},
{ value: '2', text: 'version development'},
/*{ value: '1', text: 'version 1.20.2.r0'},
{ value: '2', text: 'version 1.20.3.b0'},
{ value: '3', text: 'version 1.20.2.rc10'},
{ value: '4', text: 'version 1.20.2.rc9'},*/
],
branch: ""
},
@@ -81,9 +85,17 @@
development = !development;
console.log("switch")
if (!development){
document.getElementById('development').style='display:none';
var x = document.getElementsByClassName('development')
var i;
for (i = 0; i < x.length; i++) {
x[i].style.display = 'none';
}
}else{
document.getElementById('development').style='display:block';
var x = document.getElementsByClassName('development')
var i;
for (i = 0; i < x.length; i++) {
x[i].style.display = 'block';
}
}
//window.location = newb + window.location.pathname
}

View File

@@ -1,8 +1,13 @@
<div id='development'>
{{ $_hugo_config := `{ "version": 1 }` }}
<div class='development'>
<v-card class='{{ .Get "style" }}'>
<v-card-text>
Development version {{.Get "version" }}
{{ .Inner }}
</v-card-text>
</v-card>
</div>
</div>

View File

@@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<v-card class='{{ .Get "style" }}-alert'>
<v-card-text>
{{ .Inner }}