espressif / esp-docs

Python based wrapper for Sphinx, intended to simplify and extend Sphinx's functionality to better suit the documentation needs for Espressif's development frameworks
22 stars 14 forks source link

fix: required --target option #8

Closed hfudev closed 1 year ago

hfudev commented 1 year ago

Otherwise will encounter to this error later: https://github.com/espressif/esp-docs/blob/master/src/esp_docs/idf_extensions/build_system/__init__.py#L60

Also modify the parser to avoid the issue when running build-docs -t esp32 build

The error message would be build_docs.py: error: argument --target/-t: invalid choice: 'build' (choose from 'esp8266', 'esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32h2', 'esp32c2', 'esp32c6')

The failure reason is that we're using nargs='+' with --target.

hfudev commented 1 year ago

move to internal gitlab process