Fix Lua documentation autogen links

This commit is contained in:
MysterD 2022-03-04 22:24:21 -08:00
parent e4f72105a3
commit 4d4edf152a
2 changed files with 19 additions and 19 deletions

View file

@ -239,7 +239,7 @@ def build_to_c(built_files):
def doc_constant_index(processed_files):
s = '# Supported Constants\n'
for processed_file in processed_files:
s += '- [%s](#%s)\n' % (processed_file['filename'], processed_file['filename'])
s += '- [%s](#%s)\n' % (processed_file['filename'], processed_file['filename'].replace('.', ''))
constants = [x for x in processed_file['constants'] if 'identifier' in x]
constants = sorted(constants, key=lambda d: d['identifier'])
for c in constants:

View file

@ -1,40 +1,40 @@
## [:rewind: Lua Reference](lua.md)
# Supported Constants
- [audio_defines.h](#audio_defines.h)
- [behavior_table.h](#behavior_table.h)
- [audio_defines.h](#audio_definesh)
- [behavior_table.h](#behavior_tableh)
- [enum BehaviorId](#enum-BehaviorId)
- [camera.h](#camera.h)
- [characters.h](#characters.h)
- [camera.h](#camerah)
- [characters.h](#charactersh)
- [enum CharacterSound](#enum-CharacterSound)
- [enum CharacterType](#enum-CharacterType)
- [djui_hud_utils.h](#djui_hud_utils.h)
- [djui_hud_utils.h](#djui_hud_utilsh)
- [enum DjuiFontType](#enum-DjuiFontType)
- [enum HudUtilsResolution](#enum-HudUtilsResolution)
- [graph_node.h](#graph_node.h)
- [interaction.c](#interaction.c)
- [graph_node.h](#graph_nodeh)
- [interaction.c](#interactionc)
- [enum InteractionFlag](#enum-InteractionFlag)
- [interaction.h](#interaction.h)
- [interaction.h](#interactionh)
- [enum InteractionType](#enum-InteractionType)
- [mario_animation_ids.h](#mario_animation_ids.h)
- [mario_animation_ids.h](#mario_animation_idsh)
- [enum MarioAnimID](#enum-MarioAnimID)
- [mario_geo_switch_case_ids.h](#mario_geo_switch_case_ids.h)
- [mario_geo_switch_case_ids.h](#mario_geo_switch_case_idsh)
- [enum MarioCapGSCId](#enum-MarioCapGSCId)
- [enum MarioEyesGSCId](#enum-MarioEyesGSCId)
- [enum MarioGrabPosGSCId](#enum-MarioGrabPosGSCId)
- [enum MarioHandGSCId](#enum-MarioHandGSCId)
- [network_player.h](#network_player.h)
- [network_player.h](#network_playerh)
- [enum NetworkPlayerType](#enum-NetworkPlayerType)
- [object_constants.h](#object_constants.h)
- [object_list_processor.h](#object_list_processor.h)
- [object_constants.h](#object_constantsh)
- [object_list_processor.h](#object_list_processorh)
- [enum ObjectList](#enum-ObjectList)
- [os_cont.h](#os_cont.h)
- [sm64.h](#sm64.h)
- [smlua_hooks.h](#smlua_hooks.h)
- [os_cont.h](#os_conth)
- [sm64.h](#sm64h)
- [smlua_hooks.h](#smlua_hooksh)
- [enum LuaHookedEventType](#enum-LuaHookedEventType)
- [smlua_model_utils.h](#smlua_model_utils.h)
- [smlua_model_utils.h](#smlua_model_utilsh)
- [enum ModelExtendedId](#enum-ModelExtendedId)
- [types.h](#types.h)
- [types.h](#typesh)
- [enum AreaTimerType](#enum-AreaTimerType)
- [enum SpTaskState](#enum-SpTaskState)