Skip to content

More work with broken links - #1285

Merged
itsneufox merged 1 commit into
openmultiplayer:masterfrom
NexiusTailer:master
Sep 26, 2026
Merged

itsneufox merged 1 commit into
openmultiplayer:masterfrom
NexiusTailer:master

Conversation

@NexiusTailer

@NexiusTailer NexiusTailer commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

The previous PR which was full about link fixes was probably the hugest one from me here, so I was sure that most of the issues with both internal and external broken links are solved today, but then I scanned it again with some automated tools and found something again:

  1. Fixed remaining incorrect paths in links to other docs sections. For example, there were still some cases when linking a callback in native function article was made without ../callbacks/ part, etc

  2. Fixed remaining absolute links and made them relative, so users won't be accidentally kicked to English pages (or even to 404 if the path were from previous pre-docusaurus era) when they read translations and jump between articles

  3. Images which link to external resources were checked and corrected where it was necessary

  4. Corrected many invalid links to #anchors. Also, sa-mp.cfg links now point to the dedicated sa-mp.cfg page, as most translations of ClientCommands page lack the "File sa-mp.cfg" section

  5. Point deprecated functions (mentioned on changelog page) without their own article to the existing one:
    GetObjectTarget -> GetObjectMovingTargetPos
    GetPlayerObjectTarget -> GetPlayerObjectMovingTargetPos
    SendRconCommandf -> SendRconCommand (and other similar functions of this kind)
    GetPlayerCameraTargetPlayerObj -> GetPlayerCameraTargetPlayerObject
    GetPlayer3DTextLabelVirtualW -> GetPlayer3DTextLabelVirtualWorld
    SetPlayer3DTextLabelDrawDist -> SetPlayer3DTextLabelDrawDistance

  6. Corrected newly found mistakes and typos in links like:
    OnFilterSciptExit -> OnFilterScriptExit
    OnPlayerGiveDamags -> OnPlayerGiveDamage
    OnPlayerDisonnect -> OnPlayerDisconnect
    PlayerTextDrawCreate -> CreatePlayerTextDraw
    GetPlayerVerion -> GetPlayerVersion
    ResetPlayerWeapon -> ResetPlayerWeapons
    GetPlayerCaemraFrontVector -> GetPlayerCameraFrontVector
    GetPlayerCameraAspectRation -> GetPlayerCameraAspectRation
    NPC_(Get/Set)SurfingOffset -> NPC_(Get/Set)SurfingOffsets
    CommonIssues -> CommonClientIssues
    b_close -> db_close

  7. Fixed newly found markdown link patterns with typos: [text] (url) with a stray space, [text]url) missing paren, etc

  8. Removed some (much probably) poor AI generated links to non-existent natives in zh-CN:
    IsPlayerEditingAttachedObject, RemoveBuildingForPlayerEx, SetVehicleTrainSpeed, ResetVehicleOccupiedStatus, GetGameModeText, floatfloor and floatceil

and the same kind of slop in NPC docs including in all translations:
NPC_SetPosition, NPC_GiveWeapon, NPC_RemoveWeapon, NPC_Reload and NPC_StopShoot

@itsneufox
itsneufox merged commit 2f4b703 into openmultiplayer:master Sep 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants