hamoid/long-hugo-doc

update script

Closed this issue · 2 comments

folders = ["about",
           "getting-started",
           "themes",
           "content-management",
           "templates",
           "functions",
           "variables",
           "commands",
           "troubleshooting",
           "tools",
           "hosting-and-deployment",
           "contribute"]

titleRe = re.compile(r'^title: (.*)')
linktitleRe = re.compile(r'^linktitle: (.*)')
weightRe = re.compile(r'^weight: ([0-9]+)')

Hi, thanks for this update. You added some folders and changed weightRE to only scan numbers? With these changes, does it work well for you?

Yes, they changed to https://github.com/gohugoio/hugoDocs, they added more sections and in some fields weigh also added letters at the end