Skip to content

Commit

Permalink
Added argument 'meta-description'
Browse files Browse the repository at this point in the history
  • Loading branch information
mprinkezs committed Jul 11, 2024
1 parent 01d84d8 commit b34c559
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/scripts/gen_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def gen_boilerplate(category):
parser.add_argument('--sphinx-doc', action='store_true', help='Select sphinx_doc layout')
parser.add_argument('--title', type=str,
default='ZEISS INSPECT App Examples Overview',
help='Python wheelhouse directory')
help='Page title')
parser.add_argument('--meta-description', type=str,
default='Examples for using the ZEISS INSPECT 2025 App Python API',
help='Description in HTML metadata')
# autopep8: on

args = parser.parse_args()
Expand All @@ -188,13 +191,13 @@ def gen_boilerplate(category):

if sphinx_doc:
APP_OVERVIEW += \
"""---
myst:
f"""---
myst:
html_meta:
"description": "Examples for using the ZEISS INSPECT 2025 App Python API"
"description": "{args.meta_description}"
"keywords": "Metrology, ZEISS INSPECT, Python API, GOM API, Scripting, Add-ons, Apps, Examples"
---
"""
---
"""

APP_OVERVIEW += f"# {args.title}\n"

Expand Down

0 comments on commit b34c559

Please sign in to comment.