For reference, current API docs: http://lua-api.factorio.com/latest/index.html
As a newbie modder, I'm constantly struggling to try and wrap my head around where things are in the docs...
1. Provide list of globals which the game adds (game, script, defines, global, etc) linked to relevant docs. This will make it much easier to see at-a-glance what _G globals the game adds, what they do (briefly) and linked to full docs.
2. For each of the docs pages associated with the globals mentioned in (1) above, there should be dedicated docs page to describe that global and what it provides, which context it can be used in (eg. can it be used in control.lua, etc).
3. Ideally add a sidebar nav that makes discovery of documentation easier. Some examples:
* http://sailsjs.org/documentation/concepts/assets
* https://markdown-it.github.io/markdown-it/
* https://github.com/lord/slate
4. Search box with auto-suggest/complete
API docs improvements
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
API docs improvements
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Re: API docs improvements
The docs have recently had a bit of an overhaul which addresses 1 and 2. For 3 and 4 I recommend ctrl F in the Classes page, which will search every function available, as well as the short descriptions.