Skip to content

Commit

Permalink
chore(docs): fix packagename ref in openapi doc generation
Browse files Browse the repository at this point in the history
Primary Change: The openapi doc generation script had a
reference to the @hyperledger package prefix hardcoded.

This meant that packages that were updated to
@hyperledger-cacti still had an ampersand in their path,
resulting in them not being included in the generated
documentation.

Signed-off-by: Jennifer Bell <jenniferlianne@gmail.com>
  • Loading branch information
Jennifer Bell authored and petermetz committed Nov 12, 2024
1 parent 7af9983 commit 5e3d9d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/scripts/publish_openapi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import os.path
import re
import subprocess
import json
import shutil
Expand Down Expand Up @@ -65,7 +66,7 @@ def get_openapi_files(root_dir):
for openapi_file in get_openapi_files(package['location']):
if not package_group in apis_by_group:
apis_by_group[package_group] = []
package_basename = package['name'].replace('@hyperledger/','')
package_basename = re.sub(r'@.*\/', '', package['name'])
publish_openapi(package_basename, openapi_file)
print(f"{package_group} : {package_basename}")
apis_by_group[package_group].append(package_basename)
Expand Down

0 comments on commit 5e3d9d7

Please sign in to comment.