Skip to content

Commit ca954b2

Browse files
author
Javier Gil Aviles
committed
Refs #22788: Minor fixes 2
Signed-off-by: Javier Gil Aviles <javiergil@eprosima.com>
1 parent 0f54858 commit ca954b2

1 file changed

Lines changed: 0 additions & 45 deletions

File tree

ddsenabler_docs/docs/conf.py

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -349,51 +349,6 @@ def configure_doxyfile(
349349
if read_the_docs_build:
350350
print("Read the Docs environment detected!")
351351

352-
ddsenabler_repo_name = os.path.abspath("{}/ddsenabler".format(project_binary_dir))
353-
354-
# Remove repository if exists
355-
if os.path.isdir(ddsenabler_repo_name):
356-
print("Removing existing repository in {}".format(ddsenabler_repo_name))
357-
shutil.rmtree(ddsenabler_repo_name)
358-
359-
# Create necessary directory path
360-
os.makedirs(os.path.dirname(ddsenabler_repo_name), exist_ok=True)
361-
362-
# Clone repositories
363-
364-
# - DDS Enabler
365-
print("Cloning DDS Enabler")
366-
ddsenabler = git.Repo.clone_from(
367-
"https://github.com/eProsima/FIWARE-DDS-Enabler.git",
368-
ddsenabler_repo_name,
369-
)
370-
371-
# Documentation repository branch
372-
docs_branch = get_git_branch()
373-
print('Current documentation branch is "{}"'.format(docs_branch))
374-
375-
# User specified DDS Enabler branch
376-
ddsenabler_branch = os.environ.get("DDSENABLER_BRANCH", None)
377-
378-
# First try to checkout to ${DDSENABLER_BRANCH}
379-
# Else try with current documentation branch
380-
# Else checkout to master
381-
if ddsenabler_branch and ddsenabler.refs.__contains__("origin/{}".format(ddsenabler_branch)):
382-
ddsenabler_branch = "origin/{}".format(ddsenabler_branch)
383-
elif docs_branch and ddsenabler.refs.__contains__("origin/{}".format(docs_branch)):
384-
ddsenabler_branch = "origin/{}".format(docs_branch)
385-
else:
386-
print(
387-
'DDS Enabler does not have either "{}" or "{}" branches'.format(
388-
ddsenabler_branch, docs_branch
389-
)
390-
)
391-
ddsenabler_branch = "origin/main"
392-
393-
# Actual checkout
394-
print('Checking out DDS Enabler branch "{}"'.format(ddsenabler_branch))
395-
ddsenabler.refs[ddsenabler_branch].checkout()
396-
397352
os.makedirs(os.path.dirname(output_dir), exist_ok=True)
398353
os.makedirs(os.path.dirname(doxygen_html), exist_ok=True)
399354

0 commit comments

Comments
 (0)