Page 1 of 1
Make serpent, log, other library functions searchable in api docs
Posted: Tue Oct 22, 2024 2:17 pm
by sparr
The functions on
https://lua-api.factorio.com/latest/aux ... aries.html should be searchable keywords in the left sidebar on that page and the rest of the auxiliary pages like
https://lua-api.factorio.com/latest/ind ... liary.html
Re: Make serpent, log, other library functions searchable in api docs
Posted: Tue Oct 22, 2024 4:26 pm
by curiosity
It won't hurt if type/concept fields were searchable too.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Thu Oct 24, 2024 12:47 pm
by Therenas
Appreciate the suggestion. I'll put it on the list.
Type fields are already searchable if they are properties, but not if they are unions/tables. We'll discuss whether adding this is worth it.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Fri Oct 25, 2024 7:14 am
by curiosity
Turns out there are
inline types. They, too, are unsearchable.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Fri Oct 25, 2024 7:17 am
by Bilka
That's intended because the inline types are not proper types and do not have proper names.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Fri Oct 25, 2024 7:26 am
by curiosity
Bilka wrote: Fri Oct 25, 2024 7:17 am
That's intended because the inline types are not proper types and do not have proper names.
They sure appear to have them.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Mon Nov 04, 2024 2:05 pm
by Therenas
They have them, but they are never relevant except when using the property that inlines them. So you wouldn't need to search for them separately.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Mon Nov 04, 2024 10:51 pm
by sparr
You might need to search for them because the FMTK gives you a warning or error that mentions them, or because you see some code that uses them.
Re: Make serpent, log, other library functions searchable in api docs
Posted: Tue Nov 05, 2024 10:47 pm
by curiosity
Therenas wrote: Mon Nov 04, 2024 2:05 pm
They have them, but they are never relevant except when using the property that inlines them. So you wouldn't need to search for them separately.
Except it also stops you from finding the fields of those types.