mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix(commands/doc): properly block out index doc
This commit is contained in:
		
							parent
							
								
									c87fbe2b99
								
							
						
					
					
						commit
						088e326bd1
					
				| @ -53,11 +53,11 @@ Available sections: ]] .. table.concat(modules, ', ') | ||||
| 			end | ||||
| 		end | ||||
| 		funcdocs = f:read '*a':gsub('-([%d]+)', '%1') | ||||
| 		local moddocs = table.filter(fs.readdir(moddocPath), function(f) return f ~= '_index.md' or f ~= 'index.md' end) | ||||
| 		local moddocs = table.filter(fs.readdir(moddocPath), function(f) return f ~= '_index.md' and f ~= 'index.md' end) | ||||
| 		local subdocs = table.map(moddocs, function(fname) | ||||
| 			return lunacolors.underline(lunacolors.blue(string.gsub(fname, '.md', ''))) | ||||
| 		end) | ||||
| 		if subdocName == '_index' then | ||||
| 		if #moddocs ~= 0 then | ||||
| 			funcdocs = funcdocs .. '\nSubdocs: ' .. table.concat(subdocs, ', ') | ||||
| 		end | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user