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): def doc_constant_index(processed_files):
s = '# Supported Constants\n' s = '# Supported Constants\n'
for processed_file in processed_files: 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 = [x for x in processed_file['constants'] if 'identifier' in x]
constants = sorted(constants, key=lambda d: d['identifier']) constants = sorted(constants, key=lambda d: d['identifier'])
for c in constants: for c in constants:

View file

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