Commit Graph

47 Commits (master)

Author SHA1 Message Date
Benoit Pierre 12552f1c71
doc: remove ragel from the build requirements (#11661)
Not necessary anymore.
2 weeks ago
Frans de Jonge 6e57ccaf4f
[doc] Building targets: remove mentions of Ubuntu Touch (#10974)
Deprecated or at least untested for years. Noticed due to <https://github.com/koreader/koreader/discussions/10972#discussion-5701647>
7 months ago
Frans de Jonge 1f03e76aea
[doc] Building: add libtool-bin to Debian/Ubuntu prerequisites as a workaround for ancient libzmq (#10897)
Fixes #10896.

It's because of an extremely old version of libzmq, fixed since <https://github.com/zeromq/libzmq/pull/1497>.
8 months ago
NiLuJe 53e6cf563a
Deal with table.pack corner-cases properly (#10350)
c.f., https://github.com/koreader/koreader-base/pull/1603 for more
details.

Re: #9624
1 year ago
NiLuJe da65ac8b02
Cleanup various varargs shenanigans (#9624)
* Iterate over varargs directly via select if possible
* Use table.pack otherwise (https://github.com/koreader/koreader-base/pull/1535).
* This allows us to simplify a few Logger calls, as logger now handles nil values.
2 years ago
Frans de Jonge 57b9c08f5a
[doc] Update busted version mentioned in docs (#9078) 2 years ago
Frans de Jonge 4b0f7471f4
Fix docs after Exporter plugin refactor (#9075)
The file was moved in <https://github.com/koreader/koreader/pull/8944> but not changed in the docs config.
2 years ago
raffaem f37699a12b
[doc] Build deps for Fedora (#9034)
The build deps listed in the README are not sufficient to build
KOReader. Inserting the full list of dependencies.
2 years ago
Will f709cc48e6
[doc] Add location of logs to Hacking document (#8901) 2 years ago
Frans de Jonge 9a2cf203b1
Fix docs, evernote → exporter (#8158)
Cf. https://github.com/koreader/koreader/pull/7983#issuecomment-908981240
3 years ago
NiLuJe 2d12f8a8ee Mention that arguments are always evaluated, to curb enthusiasm at
putting too much fancy stuff in a logger call ;).

(Not actually an issue in our current codebase).
3 years ago
yparitcher dc59391632
Dispatcher: use UIManager:sendEvent instead of the current instance (#7999)
This fixes inheritance issues when changing documents.
Also allow "Go to page" in FM.
3 years ago
Frans de Jonge 81eb5f8c49
Add Lua 5.1 to sample Debubuntu apt-get command (#7421)
To ensure it gets installed.

Cf. <https://github.com/koreader/koreader/issues/7409#issuecomment-800267291>.
3 years ago
NiLuJe fe10d0bce5
Revamp flash_ui handling, once more, with feeling ;) (#7262)
* Simplify flash_ui handling (by handling the unhighlight pre-callback, c.f., #7262 for more details).
* UIManager: Handle translucent window-level widgets (and those wrapped in a translucent MovableContainer) properly in setDirty directly, making sure what's *underneath* them gets repainted to avoid alpha layering glitches. (This was previously handled via localized hacks).
* Update UIManager's documentation, and format it properly for ldoc parsing, making the HTML docs more useful.
* ReaderView: Reinitialize the various page areas when opening a new document, to prevent poisoning from the previous document.
* Event: Handle nils in an event's arguments.
* CheckButton/RadioButton: Switch to simple inversion to handle highlighting
* CheckButton: Make the highlight span the inner frame's width, instead of just the text's width, if possible.
* AlphaContainer: Fix & simplify, given the UIManager alpha handling.
* MovableContainer: When translucent, cache the canvas bb used for composition.
* Avoid spurious refreshes in a few widgets using various dummy *TextWidgets in order to first compute a text height.
* KeyValuePage: Avoid floats in size computations.
3 years ago
NiLuJe 995668ac02
Unbreak macOS build (#7313)
* Bump base

https://github.com/koreader/koreader-base/pull/1308
https://github.com/koreader/koreader-base/pull/1310

* Include bison in macOS build deps

Apparently something in gettext is possibly unhappy with the hilariously
outdated stock version (2.3).
3 years ago
Rex Kerr 286a6b4883
Emulator: update mac instructions to include gnu grep (#7266)
Since `grep -z` is not available on posix grep
3 years ago
NiLuJe 04a980649f
kodev: Use getopt instead of a hand-rolled hack (#6980)
* Update log android to match the current issue template
* Fix GUI gdb frontends getting wrecked by the older glib library we ship w/
KOReader
* Slightly more aggressive valgrind defaults
  It's slower, but interpreting results without leak-check=full ends up
  costing more time than just running with it.
* Add a callgrind shortcut
* Use getopt instead of a hand-rolled hack for option parsing
* Make it clearer that complex args should be quoted
* Document prompt
* Add a Valgrind suppression file for libdrm/mesa on AMD hardware
  Because mesa/libdrm isn't built w/ -D valgrind=enabled on Gentoo,
  and Valgrind is very much not happy with mesa ;p.
* Allow toggling reader.lua's sane return mode
  (Enabled automatically under gdb/valgrind).
  Should hopefully weed out some noise from valgrind reports.
* Propagate reader.lua's return code
* Sim a few other common devices
* Handle assigning values to short options with an equal instead of a space, like the previous solution
  (This is purely for backward compatibility purposes, this is a syntax that'd fail with the C getopt, too).
* Add gnu-getopt to the build requirement on macOS, because of course everything is terrible.
3 years ago
Frans de Jonge 090f33b5b8
[fix] Minor doc touchups re. QR encode (#6861)
Cf. <https://github.com/koreader/koreader/pull/6844#issuecomment-723672448>.
4 years ago
yparitcher 602e0b3feb ldoc fixes 4 years ago
NiLuJe f0f0cfd167
[Dev docs] Steer people more strongly towards koxtoolchain (#6727)
* Steer people more strongly towards koxtoolchain

And stop mentioning blatantly broken/outdated stuff

* Add macOS to the list

Also, put 'em in hierarchical order, and link to the main build docs for
the native emulator.
4 years ago
yparitcher 70f89c4df1
ReaderGesture: cleanup (#6292)
convert all gesture actions to use events for better modularity
add network event handlers and device event handlers
4 years ago
Martín Fernández f4dad2fae8
[doc] WSL extra bits (#6368)
Fixes #6354
4 years ago
Frans de Jonge f8af0a9e0e
[doc] Add some tips about GitHub PR refs (#6289) 4 years ago
Frans de Jonge 48060c3b86
[fix] Ignore sha2.lua in doc generation (#6229)
Otherwise it'll choke on the comments in that file.

See <https://github.com/koreader/koreader/pull/6195#issuecomment-638801075>.

Accidentally introduced in <https://github.com/koreader/koreader-base/pull/1105>.
4 years ago
NiLuJe c54578e254
[doc] macOS build info tweaks (#5891)
* Update macOS PATH shenanigans.

c.f., https://github.com/koreader/koreader-base/pull/1052

* Prefer coreutils, it now ships everything we need.

(Or it always did? I apparently don't actually have coreutils
installed on my end).

* Also recommend putting Homebrew first in PATH

Mainly because it turns out that's how I tested this the last time ;).
Also, it  just makes sense, and might be part of Homebrew's
recommendations anyway.
4 years ago
Thomas Spurden f3d2ef18f7
[doc] Add some basic info on using ffi-cdecl (#5808) 4 years ago
Frans de Jonge 9674928cbe
[doc] Add ragel to build prerequisites (#5743)
See discussion in https://github.com/koreader/koreader-base/pull/1025#issuecomment-570556188
4 years ago
yparitcher 0f896765c3 transifex -> weblate fixes (#5722) 4 years ago
Frans de Jonge 16fd731f73
[doc] Add coreutils to Mac brew dependencies (#5608)
See 75d02a9038 (commitcomment-36008019)
5 years ago
NiLuJe 4f52c4147f
Fix a deadlock with empty settings (#5546)
* Fix deadlock on empty settings
Emulator only. Was stuck looping forever on directory == base == .
5 years ago
NiLuJe eae105bb72
Minor dev documentatioon tweaks (#5518)
* Made Porting not so hilariously outdated.
* Minor tweaks to the macOS build instructions and the various quirks involved in getting it to behave (and accompanying actual build fixes).
5 years ago
Frans de Jonge a47b3b1a5b
[doc] Add internal documentation references (#5285)
Also some minor grammatical fixes.
5 years ago
Frans de Jonge a2dcfe9aec
[doc] Tag @todo, @fixme and @warning (#5244)
This commit standardizes the various todos around the code a bit in a manner recognized by LDoc.

Besides drawing more attention by being displayed in the developer docs, they're also extractable with LDoc on the command line:

```sh
ldoc --tags todo,fixme *.lua
```

However, whether that particular usage offers any advantage over other search tools is questionable at best.

* and some random beautification
5 years ago
Frans de Jonge 8be113e4bd
[fix] Update LDoc config (#5231)
Follow-up to #5217.
5 years ago
Martín Fernández 57d9f75f53 [doc] Simplify and reorganize readme (#5217)
References #5213.
5 years ago
Frans de Jonge 032d1afc8e
doc/Unit tests: minor extra explanation (#3462) 7 years ago
Frans de Jonge e566a7ffc6 kodev: add hidpi shortcut and dpi argument (#3208)
* [doc] also generate base ffi doc
* kodev: add hidpi shortcut and dpi argument
* Bump base
7 years ago
Frans de Jonge c847d628e1 Docs: cosmetic updates and additions
* Content from wiki had some cosmetic leftover glitches
* Added/adapted some docs for other modules
7 years ago
Frans de Jonge e217b99fa6 Dev docs (#2730) 7 years ago
Qingping Hou 09564d4b4d doc: event propagation for widgets 7 years ago
Dimitrios Semitsoglou-Tsiapos 2ed6cf760d Finish renaming `utils` to `tools`
Continues the work of 9afad43a3e
8 years ago
Qingping Hou 42d74c0a36 doc: add sqlite sample code 8 years ago
Qingping Hou 6493b643ec doc: Event page 8 years ago
Qingping Hou 93b9e245a9 doc: update hacking 8 years ago
Qingping Hou 815c5924e3 add documentation for wbuilder 8 years ago
Qingping Hou e410ce14df doc: types/functions for font and rendertext module 8 years ago
Qingping Hou e2096ed8d9 doc: add documentation build infrastructure 8 years ago