Skip to content

Commit

Permalink
Docs: Add support for Teensy 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Aug 19, 2019
1 parent 42ee6fe commit a25c115
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs
14 changes: 7 additions & 7 deletions scripts/docspregen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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", ""))
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit a25c115

Please sign in to comment.