mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Docs: Sync dev-platforms
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 2c2dce47ab...438d910cc4
2
examples
2
examples
Submodule examples updated: bcdcf46691...2fdead5df5
@ -609,7 +609,7 @@ class PlatformBase(PlatformPackagesMixin, PlatformRunMixin):
|
||||
|
||||
@property
|
||||
def vendor_url(self):
|
||||
return self._manifest.get("url")
|
||||
return self._manifest.get("homepage")
|
||||
|
||||
@property
|
||||
def docs_url(self):
|
||||
|
@ -88,12 +88,12 @@ def generate_boards_table(boards, skip_columns=None):
|
||||
lines.append(prefix + 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()))
|
||||
debug = "No"
|
||||
if has_onboard_debug:
|
||||
debug = "On-board"
|
||||
elif data['debug']:
|
||||
elif data.get('debug'):
|
||||
debug = "External"
|
||||
|
||||
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")
|
||||
lines = []
|
||||
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())
|
||||
]
|
||||
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:
|
||||
return lines
|
||||
@ -723,7 +723,7 @@ You can change upload protocol using :ref:`projectconf_upload_protocol` option:
|
||||
#
|
||||
lines.append("Debugging")
|
||||
lines.append("---------")
|
||||
if not board['debug']:
|
||||
if not board.get('debug'):
|
||||
lines.append(
|
||||
":ref:`piodebug` currently does not support {name} board.".format(
|
||||
**variables))
|
||||
@ -781,7 +781,7 @@ def update_debugging():
|
||||
platforms = []
|
||||
frameworks = []
|
||||
for data in BOARDS:
|
||||
if not data['debug']:
|
||||
if not data.get('debug'):
|
||||
continue
|
||||
|
||||
for tool in data['debug']['tools']:
|
||||
|
Reference in New Issue
Block a user