Add https security to cloud-functions-v1 module (#2118)

* Add https security level to cf v1 module
* Update tfdoc.py raw strings for slug var to avoid [SyntaxWarning: invalid escape sequence]
This commit is contained in:
Mohamed Ikbal Belbahri
2024-02-28 21:20:56 +01:00
committed by GitHub
parent dbabfb9ae0
commit ae6ee03de2
4 changed files with 38 additions and 30 deletions

View File

@@ -366,8 +366,8 @@ def create_toc(readme):
for h in headings[1:]:
title = h.children[0].children
slug = title.lower().strip()
slug = re.sub('[^\w\s-]', '', slug)
slug = re.sub('[-\s]+', '-', slug)
slug = re.sub(r'[^\w\s-]', '', slug)
slug = re.sub(r'[-\s]+', '-', slug)
link = f'- [{title}](#{slug})'
indent = ' ' * (h.level - 2)
lines.append(f'{indent}{link}')