From a25c1155c2537be0ea6cc3959ce45d4ac2a2c6d2 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 19 Aug 2019 18:16:53 +0300 Subject: [PATCH] Docs: Add support for Teensy 4.0 --- docs | 2 +- scripts/docspregen.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs b/docs index 30ffe43023..29f80d45f2 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 30ffe43023176a3df789a4692c4de3038ebed03f +Subproject commit 29f80d45f2d7fe14918b507d84ec8badc54fe087 diff --git a/scripts/docspregen.py b/scripts/docspregen.py index 3ddeb80a27..0a3cf437ca 100644 --- a/scripts/docspregen.py +++ b/scripts/docspregen.py @@ -20,7 +20,7 @@ path.append("..") -from platformio import util +from platformio import fs, util from platformio.managers.platform import PlatformFactory, PlatformManager RST_COPYRIGHT = """.. Copyright (c) 2014-present PlatformIO @@ -97,8 +97,8 @@ def generate_boards_table(boards, skip_columns=None): debug=debug, mcu=data['mcu'].upper(), f_cpu=int(data['fcpu']) / 1000000, - ram=util.format_filesize(data['ram']), - rom=util.format_filesize(data['rom'])) + ram=fs.format_filesize(data['ram']), + rom=fs.format_filesize(data['rom'])) for (name, template) in columns: if skip_columns and name in skip_columns: @@ -614,8 +614,8 @@ def update_embedded_board(rst_path, board): mcu_upper=board['mcu'].upper(), f_cpu=board['fcpu'], f_cpu_mhz=int(board['fcpu']) / 1000000, - ram=util.format_filesize(board['ram']), - rom=util.format_filesize(board['rom']), + ram=fs.format_filesize(board['ram']), + rom=fs.format_filesize(board['rom']), vendor=board['vendor'], board_manifest_url=board_manifest_url, upload_protocol=board_config.get("upload.protocol", "")) @@ -811,7 +811,7 @@ def update_debugging(): # save with open( - join(util.get_source_dir(), "..", "docs", "plus", "debugging.rst"), + join(fs.get_source_dir(), "..", "docs", "plus", "debugging.rst"), "r+") as fp: content = fp.read() fp.seek(0) @@ -880,7 +880,7 @@ def update_project_examples(): {examples} """ - project_examples_dir = join(util.get_source_dir(), "..", "examples") + project_examples_dir = join(fs.get_source_dir(), "..", "examples") framework_examples_md_lines = {} embedded = [] desktop = []