diff options
author | garret <garret@airmail.cc> | 2022-11-30 01:58:39 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2022-11-30 02:20:00 +0000 |
commit | f2ddf18ee05ebae3d19f9090afd5fcda5d0d7481 (patch) | |
tree | 1efc6ea5405bf24a64914a7978632de610c0661e /conf.lua | |
parent | 077489bbbfd757a309cebe9c8e160bcdc92f0fa4 (diff) | |
download | depctrl-feedmaker-f2ddf18ee05ebae3d19f9090afd5fcda5d0d7481.tar.gz depctrl-feedmaker-f2ddf18ee05ebae3d19f9090afd5fcda5d0d7481.tar.bz2 depctrl-feedmaker-f2ddf18ee05ebae3d19f9090afd5fcda5d0d7481.zip |
update and document sample config
Diffstat (limited to 'conf.lua')
-rwxr-xr-x | conf.lua | 36 |
1 files changed, 25 insertions, 11 deletions
@@ -1,28 +1,42 @@ local function macro_ignore() - return script_namespace == "garret.restyler" + return script_namespace == "garret.restyler" -- exclude a specific script end local function module_ignore() end +-- most values mean the same thing as they would be in a DependencyControl feed, so will not be explained. +-- DepCtrl docs (an oxymoron if i've ever heard one): https://github.com/TypesettingTools/DependencyControl/blob/master/README.md + local conf = { name = "garret's aegisub scripts", - description = "Little utilities for aegisub that make my life easier", + description = "Little utilities for aegisub that make my life easier", maintainer = "garret", - knownFeeds = {}, - url = "https://github.com/garret1317/aegisub-scripts/", - baseUrl = "https://raw.githubusercontent.com/garret1317/aegisub-scripts/master", - scriptUrl = "@{baseUrl}#@{namespace}", + knownFeeds = {arch1 = "https://raw.githubusercontent.com/arch1t3cht/Aegisub-Scripts/main/DependencyControl.json"}, + -- hash table of feeds you want to reference, but are not necessarily required by one of your scripts. + baseUrl = "https://github.com/garret1317/aegisub-scripts/", + url = "@{baseUrl}", + scriptUrl = "@{baseUrl}#@{namespace}", -- the url for details about a script + fileBaseUrl = "https://raw.githubusercontent.com/garret1317/aegisub-scripts/master", + macros = { - fileBaseUrl = "@{baseUrl}/macros/@{namespace}", + -- contains values referenced by feedmaker when processing macros. + fileBaseUrl = "@{fileBaseUrl}/macros/@{namespace}", + -- macro-specific fileBaseUrl, so you can store macros and modules differently ignoreCondition = macro_ignore, + -- feedmaker ignores a macro if it matches the specified condition - that is, if the supplied function returns true. + -- ignoreConditions are given access to feedmaker's global scope, which in turn also contains the global scope + -- of the macro it's processing, so checks with stuff like script_namespace just work⢠}, modules = { - fileBaseUrl = "@{baseUrl}/modules/@{namespacePath}", + -- the same as the macros table, but for modules. + fileBaseUrl = "@{fileBaseUrl}/modules/@{namespacePath}", ignoreCondition = module_ignore, + -- module details can be accessed from the `depctrl` table, + -- which contains the DependencyControl version record the module defines }, - fileUrl = "@{fileBaseUrl}@{fileName}", - channel = "master" + fileUrl = "@{fileBaseUrl}@{fileName}", -- used as the `url` value in the files section of a macro/module. Where the actual file is. + channel = "master" -- the default (and only) channel defined in the files section. It doesn't really matter what you put here. } -return conf +return conf -- actually provide the config table to feedmaker |