Docs: Sync dev-platforms

This commit is contained in:
Ivan Kravets
2020-06-25 18:04:04 +03:00
parent efc2242046
commit 7bc22353cc
4 changed files with 9 additions and 9 deletions

2
docs

Submodule docs updated: 2c2dce47ab...438d910cc4

View File

@ -609,7 +609,7 @@ class PlatformBase(PlatformPackagesMixin, PlatformRunMixin):
@property @property
def vendor_url(self): def vendor_url(self):
return self._manifest.get("url") return self._manifest.get("homepage")
@property @property
def docs_url(self): def docs_url(self):

View File

@ -88,12 +88,12 @@ def generate_boards_table(boards, skip_columns=None):
lines.append(prefix + name) lines.append(prefix + name)
for data in sorted(boards, key=lambda item: item['name']): for data in sorted(boards, key=lambda item: item['name']):
has_onboard_debug = (data['debug'] and any( has_onboard_debug = (data.get('debug') and any(
t.get("onboard") for (_, t) in data['debug']['tools'].items())) t.get("onboard") for (_, t) in data['debug']['tools'].items()))
debug = "No" debug = "No"
if has_onboard_debug: if has_onboard_debug:
debug = "On-board" debug = "On-board"
elif data['debug']: elif data.get('debug'):
debug = "External" debug = "External"
variables = dict(id=data['id'], variables = dict(id=data['id'],
@ -170,11 +170,11 @@ def generate_debug_contents(boards, skip_board_columns=None, extra_rst=None):
skip_board_columns.append("Debug") skip_board_columns.append("Debug")
lines = [] lines = []
onboard_debug = [ onboard_debug = [
b for b in boards if b['debug'] and any( b for b in boards if b.get('debug') and any(
t.get("onboard") for (_, t) in b['debug']['tools'].items()) t.get("onboard") for (_, t) in b['debug']['tools'].items())
] ]
external_debug = [ external_debug = [
b for b in boards if b['debug'] and b not in onboard_debug b for b in boards if b.get('debug') and b not in onboard_debug
] ]
if not onboard_debug and not external_debug: if not onboard_debug and not external_debug:
return lines return lines
@ -723,7 +723,7 @@ You can change upload protocol using :ref:`projectconf_upload_protocol` option:
# #
lines.append("Debugging") lines.append("Debugging")
lines.append("---------") lines.append("---------")
if not board['debug']: if not board.get('debug'):
lines.append( lines.append(
":ref:`piodebug` currently does not support {name} board.".format( ":ref:`piodebug` currently does not support {name} board.".format(
**variables)) **variables))
@ -781,7 +781,7 @@ def update_debugging():
platforms = [] platforms = []
frameworks = [] frameworks = []
for data in BOARDS: for data in BOARDS:
if not data['debug']: if not data.get('debug'):
continue continue
for tool in data['debug']['tools']: for tool in data['debug']['tools']: