tools: Add docs subcommand docs which opens browser with documentation for current version of idf and model of your target

Add docs subcommand with options:
--no-browser - Prints url for current documentation instead of opens browser with documentation
--language - Select documentation language
--starting-page - Choice section of documentation to open
--version - Choice version of esp-idf
--target - Choice model of your target
This commit is contained in:
Simon
2021-06-03 17:14:38 +02:00
committed by simon.chupin
parent 8887897f54
commit 0b9afa509f
5 changed files with 98 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ GENERATORS = collections.OrderedDict([
})
])
SUPPORTED_TARGETS = ['esp32', 'esp32s2', 'esp32c3', 'esp32s3']
URL_TO_DOC = 'https://docs.espressif.com/projects/esp-idf'
SUPPORTED_TARGETS = ['esp32', 'esp32s2', 'esp32c3', 'esp32s3']
PREVIEW_TARGETS = ['linux', 'esp32h2']