mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-03-10 13:09:37 +01:00
Re-arrange changelog table
This commit is contained in:
parent
aa8e7c14df
commit
04e03cef58
@ -8,33 +8,32 @@ Changelog - Version 1.13.0
|
||||
:author_twitter: @OttoWinter_
|
||||
|
||||
.. imgtable::
|
||||
:columns: 4
|
||||
|
||||
Climate Devices, components/climate/index, folder-open.svg
|
||||
Endstop Cover, components/cover/endstop, electric-switch.svg
|
||||
Time-Based Cover, components/cover/time_based, timer.svg
|
||||
Bang Bang Controller, components/climate/bang_bang, air-conditioner.svg
|
||||
|
||||
AM2320, components/sensor/am2320, am2320.jpg
|
||||
CCS811, components/sensor/ccs811, ccs811.jpg
|
||||
Integration, components/sensor/integration, sigma.svg
|
||||
|
||||
Pulse Width, components/sensor/pulse_width, pulse.svg
|
||||
|
||||
Resistance Sensor, components/sensor/resistance, omega.svg
|
||||
NTC Thermistor, components/sensor/ntc, ntc.jpg
|
||||
CT Clamp, components/sensor/ct_clamp, ct_clamp.jpg
|
||||
Binary Sensor Map, components/sensor/binary_sensor_map, binary_sensor_map.jpg
|
||||
|
||||
TTP229, components/binary_sensor/ttp229, ttp229.jpg
|
||||
Custom Light, components/light/custom, language-cpp.svg
|
||||
|
||||
Endstop Cover, components/cover/endstop, electric-switch.svg
|
||||
Time-Based Cover, components/cover/time_based, timer.svg
|
||||
Custom Cover, components/cover/custom, language-cpp.svg
|
||||
|
||||
Climate Core, components/climate/index, folder-open.svg
|
||||
Bang Bang Controller, components/climate/bang_bang, air-conditioner.svg
|
||||
Custom Climate, components/climate/custom, language-cpp.svg
|
||||
|
||||
Coolix IR Remote, components/climate/coolix, air-conditioner.svg
|
||||
Tcl112 IR Remote, components/climate/tcl112, air-conditioner.svg
|
||||
Sun, components/sun, weather-sunny.svg
|
||||
|
||||
GPS Time Source, components/gps, crosshairs-gps.svg
|
||||
Resistance Sensor, components/sensor/resistance, omega.svg
|
||||
NTC Thermistor, components/sensor/ntc, ntc.jpg
|
||||
|
||||
CT Clamp, components/sensor/ct_clamp, ct_clamp.jpg
|
||||
Binary Sensor Map, components/sensor/binary_sensor_map, binary_sensor_map.jpg
|
||||
Custom Light, components/light/custom, language-cpp.svg
|
||||
Custom Cover, components/cover/custom, language-cpp.svg
|
||||
Custom Climate, components/climate/custom, language-cpp.svg
|
||||
|
||||
Oh hi there!
|
||||
|
||||
@ -107,6 +106,7 @@ Other notable changes:
|
||||
- Added :ref:`globals.set <globals-set_action>` action,
|
||||
:ref:`script.is_running <script-is_running_condition>` condition,
|
||||
:ref:`for <for_condition>` condition.
|
||||
- Custom components can now access ESPHome's global variables.
|
||||
|
||||
Breaking Changes
|
||||
----------------
|
||||
@ -118,6 +118,8 @@ you what has changed.
|
||||
- The remote transmitter switch has been removed and a template switch with the new actions should be used.
|
||||
See validation output.
|
||||
- ``esphome_core_version`` has been removed - ESPHome is no longer split up in the core and python repository.
|
||||
- Because of some internal changes, some ID names are used internally and can no longer be used.
|
||||
See validation errors.
|
||||
|
||||
All changes
|
||||
-----------
|
||||
|
11
github.py
11
github.py
@ -104,10 +104,13 @@ def grouper(n, iterable, fillvalue=None):
|
||||
# Based on https://www.slideshare.net/doughellmann/better-documentation-through-automation-creating-docutils-sphinx-extensions
|
||||
class ImageTableDirective(Table):
|
||||
|
||||
option_spec = {}
|
||||
option_spec = {
|
||||
'columns': directives.positive_int,
|
||||
}
|
||||
|
||||
def run(self):
|
||||
env = self.state.document.settings.env
|
||||
cols = self.options.get('columns', 3)
|
||||
|
||||
items = []
|
||||
|
||||
@ -127,13 +130,13 @@ class ImageTableDirective(Table):
|
||||
'image': '/images/{}'.format(image.strip()),
|
||||
})
|
||||
|
||||
col_widths = self.get_column_widths(3)
|
||||
col_widths = self.get_column_widths(cols)
|
||||
title, messages = self.make_title()
|
||||
table = nodes.table()
|
||||
table['classes'].append('table-center')
|
||||
|
||||
# Set up column specifications based on widths
|
||||
tgroup = nodes.tgroup(cols=3)
|
||||
tgroup = nodes.tgroup(cols=cols)
|
||||
table += tgroup
|
||||
tgroup.extend(
|
||||
nodes.colspec(colwidth=col_width)
|
||||
@ -143,7 +146,7 @@ class ImageTableDirective(Table):
|
||||
tbody = nodes.tbody()
|
||||
tgroup += tbody
|
||||
rows = []
|
||||
for value in grouper(3, items):
|
||||
for value in grouper(cols, items):
|
||||
trow = nodes.row()
|
||||
for cell in value:
|
||||
entry = nodes.entry()
|
||||
|
Loading…
Reference in New Issue
Block a user