From 4e023703b6bc6955c4de4805f673482bb85166d0 Mon Sep 17 00:00:00 2001 From: sammyette Date: Sat, 7 Jan 2023 14:01:57 -0400 Subject: [PATCH] feat(commands/doc): use local docs directory if hilbish branch is found --- nature/commands/doc.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nature/commands/doc.lua b/nature/commands/doc.lua index f8eec18..295e042 100644 --- a/nature/commands/doc.lua +++ b/nature/commands/doc.lua @@ -4,6 +4,11 @@ local lunacolors = require 'lunacolors' commander.register('doc', function(args) local moddocPath = hilbish.dataDir .. '/docs/' + local stat = fs.stat '.git/refs/heads/extended-job-api' + if stat then + -- hilbish git + moddocPath = './docs/' + end local apidocHeader = [[ # %s {grayBg} {white}{italic}%s {reset}