Skip to content

Config strings are messy AF #715

Open
@SallyMcGrath

Description

@SallyMcGrath

Describe the bug

In hugo.toml there's a load of random strings, like root, api, org, main_org_name because they've just grown up over time as we have discovered more and more string manipulation requirements

What is wrong with this content?

This is unfriendly lore for new users.

How could this be fixed?

Instead let's have a clearer taxonomy, something like

gitHubPrefix = 'https://github.com/"
gitHubAPI = "https://api.github.com/repos/"
gitHubOrg = "CodeYourFuture"
gitHubRootRepo = "curriculum"
gitHubPD = "CYF-PD" ??

And then go round and update all the calls in the regexes

Link to content

hugo.toml

Additional context

Who else might need to know about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions