Skip to content

Commit

Permalink
{CI} Modify the structure and put azure-cli-extensions and azure-docs…
Browse files Browse the repository at this point in the history
…-cli at the same level (#7448)

* Update update_extension_list.py

* Update update_extension_list.py
  • Loading branch information
wangzelin007 committed Apr 2, 2024
1 parent d7315dc commit f7b2014
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/ci/avail-ext-doc/update_extension_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
from jinja2 import Template # pylint: disable=import-error
import requests

SCRIPTS_LOCATION = os.path.abspath(os.path.join('.', 'scripts'))

AZURE_DOCS_CLI_REPO_PATH = os.path.join('.', 'azure-docs-cli')
# After migration to OneBranch, clone azure-cli-extensions repo and azure-docs-cli repo are required.
# Also standardizes the directory structure:
# - $(System.DefaultWorkingDirectory)
# - azure-cli-extensions
# - azure-docs-cli
AZURE_CLI_EXTENSIONS_REPO_PATH = os.path.abspath(os.path.join('.', 'azure-cli-extensions'))
AZURE_DOCS_CLI_REPO_PATH = os.path.abspath(os.path.join('.', 'azure-docs-cli'))
AVAILABLE_EXTENSIONS_DOC = os.path.join(AZURE_DOCS_CLI_REPO_PATH, 'docs-ref-conceptual', 'azure-cli-extensions-list.md')
TEMPLATE_FILE = os.path.join(SCRIPTS_LOCATION, "ci", "avail-ext-doc", "list-template.md")
TEMPLATE_FILE = os.path.join(AZURE_CLI_EXTENSIONS_REPO_PATH, "scripts", "ci", "avail-ext-doc", "list-template.md")

sys.path.insert(0, SCRIPTS_LOCATION)
sys.path.insert(0, AZURE_CLI_EXTENSIONS_REPO_PATH)
from ci.util import get_index_data, INDEX_PATH


Expand Down

0 comments on commit f7b2014

Please sign in to comment.