diff --git a/.github/workflows/generate-template-json.py b/.github/workflows/generate-template-json.py index 5529df9..aafffdf 100755 --- a/.github/workflows/generate-template-json.py +++ b/.github/workflows/generate-template-json.py @@ -54,12 +54,20 @@ for filename in sorted(glob.glob("composes-files/*.y*ml")): dataenv=line[3:-1].split(': ', 1) envtemp["name"] = dataenv[0] try: - envdesctotal = dataenv[1].split(' (') + envdesctotal = re.split('( [', dataenv[1]) envdesc = envdesctotal[1] + envhold = envdesctotal[2] envtemp["label"] = envdesctotal[0] envtemp["description"] = envdesc[:-1] + envtemp["default"] = envhold[:-1] except: - envtemp["label"] = dataenv[1] + try: + envdesctotal = dataenv[1].split(' (') + envdesc = envdesctotal[1] + envtemp["label"] = envdesctotal[0] + envtemp["description"] = envdesc[:-1] + except: + envtemp["label"] = dataenv[1] env.append(envtemp) if data: repository = { diff --git a/composes-files/dillinger.yml b/composes-files/dillinger.yml index 3bf2e70..71e6620 100644 --- a/composes-files/dillinger.yml +++ b/composes-files/dillinger.yml @@ -9,10 +9,10 @@ #& platform: linux #& logo: https://d33wubrfki0l68.cloudfront.net/62334572e03c001939ed509a2a1f1009dd9bdde3/a7ee8/assets/images/tool-icons/dillinger.png -#% SERVICE: Name of the service (No spaces or points) -#% DATA_LOCATION: Data localization (Example: /apps/service) +#% SERVICE: Name of the service (No spaces or points) [dillinger] +#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps] #% URL: Service URL (Example: service.papamica.fr or service.com) -#% NETWORK: Your Traefik network (Example: proxy) +#% NETWORK: Your Traefik network (Example: proxy) [proxy] # Work with Portainer version: "2"