project-chip/connectedhomeip

[Doc] Path to the documentation file spec_clusters.md is wrong in the script

Opened this issue · 0 comments

lboue commented

Path to the documentation file spec_clusters.md is wrong in the script:

def get_spec_xml_output_path():
"""
Returns the path to the output directory for generated XML files.
"""
chip_root = get_chip_root()
output_dir = os.path.join(chip_root, 'out', 'spec_xml')
if not os.path.exists(output_dir):
os.makedirs(output_dir) # Automatically create the directory if it doesn't exist
return output_dir

./scripts/spec_xml/generate_spec_xml.py        --scraper ~/Downloads/scrape-adoc-linux     --spec-root ~/work/connectedhomeip-spec     --output-dir data_model
Traceback (most recent call last):
  File "/home/user/connectedhomeip/./scripts/spec_xml/generate_spec_xml.py", line 37, in <module>
    DEFAULT_DOCUMENTATION_FILE = get_documentation_file_path()
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/connectedhomeip/scripts/spec_xml/paths.py", line 76, in get_documentation_file_path
    raise FileNotFoundError(f"Documentation file does not exist: {documentation_file}")
FileNotFoundError: Documentation file does not exist: /home/user/connectedhomeip/docs/spec_clusters.md

*Error

It should be this: /docs/ids_and_codes/spec_clusters.md