mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 03:04:13 +01:00
improved working of development
Combined the development pages into the stable docs with additional blocks
This commit is contained in:
@@ -9,11 +9,35 @@ aliases:
|
|||||||
## class ADC – Analog to Digital Conversion
|
## class ADC – Analog to Digital Conversion
|
||||||
|
|
||||||
|
|
||||||
{{< development style="dev" >}}
|
{{% development version="1.20.2.rc10" style="dev" %}}
|
||||||
hi
|
|
||||||
|
## header
|
||||||
|
```python
|
||||||
|
print('hello world')
|
||||||
|
```
|
||||||
|
|
||||||
|
> hi
|
||||||
|
|
||||||
|
* one
|
||||||
|
* two
|
||||||
|
* tab
|
||||||
|
3. three
|
||||||
|
|
||||||
|
{{% /development %}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{< /development >}}
|
|
||||||
### Quick Usage Example
|
### Quick Usage Example
|
||||||
|
{{% development version="1.20.3.b0" style="dev" %}}
|
||||||
|
|
||||||
|
## Function(var)
|
||||||
|
|
||||||
|
Takes var as an input. Output can be:
|
||||||
|
* `One`: One thing
|
||||||
|
* `Two`: Second thing
|
||||||
|
|
||||||
|
{{% /development %}}
|
||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import machine
|
import machine
|
||||||
@@ -35,7 +59,7 @@ Create an ADC object; associate a channel with a pin. For more info check the ha
|
|||||||
|
|
||||||
Enable the ADC block. This method is automatically called on object creation.
|
Enable the ADC block. This method is automatically called on object creation.
|
||||||
|
|
||||||
* `Bits` can take values between 9 and 12 and selects the number of bits of resolution of the ADC block.
|
* `bits` can take values between 9 and 12 and selects the number of bits of resolution of the ADC block.
|
||||||
|
|
||||||
### adc.deinit()
|
### adc.deinit()
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,12 @@
|
|||||||
drawer2: true,
|
drawer2: true,
|
||||||
toc: 0,
|
toc: 0,
|
||||||
branches: [
|
branches: [
|
||||||
{ value: 'https://docs.pycom.io', text: 'version stable', },
|
{ value: '1', text: 'version stable'},
|
||||||
{ value: 'https://development.pycom.io', text: 'version development'},
|
{ 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: ""
|
branch: ""
|
||||||
},
|
},
|
||||||
@@ -81,9 +85,17 @@
|
|||||||
development = !development;
|
development = !development;
|
||||||
console.log("switch")
|
console.log("switch")
|
||||||
if (!development){
|
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{
|
}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
|
//window.location = newb + window.location.pathname
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
<div id='development'>
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
|
<div class='development'>
|
||||||
<v-card class='{{ .Get "style" }}'>
|
<v-card class='{{ .Get "style" }}'>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
|
Development version {{.Get "version" }}
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<v-card class='{{ .Get "style" }}-alert'>
|
<v-card class='{{ .Get "style" }}-alert'>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
|
|||||||
@@ -224,12 +224,12 @@ li.hot {
|
|||||||
Added shortcode for development markings
|
Added shortcode for development markings
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#development {
|
.development {
|
||||||
display:none;
|
display:none;
|
||||||
|
|
||||||
}
|
}
|
||||||
.dev {
|
.dev {
|
||||||
background-color: #EF9A9A !important;
|
background-color: #F6E6D6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.v-card__text > h3, h4{
|
.v-card__text > h3, h4{
|
||||||
|
|||||||
Reference in New Issue
Block a user