comparison mrjunejune/README.md @ 244:b8aa08503378

[tools] Add sandboxed online LaTeX editor Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 16:56:25 -0700
parents 543df0fe7168
children 70f2a3dafc1c
comparison
equal deleted inserted replaced
243:823f2a8b16c8 244:b8aa08503378
37 ```bash 37 ```bash
38 bazel test //mrjunejune/test:hls_player_test 38 bazel test //mrjunejune/test:hls_player_test
39 bazel test //mrjunejune/test:theme_and_webp_test 39 bazel test //mrjunejune/test:theme_and_webp_test
40 ``` 40 ```
41 41
42 ## LaTeX editor
43
44 `/tools/latex_editor` sends source to the C server, which compiles it with the
45 host's `/usr/bin/pdflatex` and returns the PDF directly to the browser. Install
46 TeX Live on production hosts before deploying:
47
48 ```bash
49 sudo apt-get install texlive-latex-base texlive-latex-recommended
50 ```
51
52 The compiler child uses restricted TeX file access, Linux Landlock, a seccomp
53 network filter, and CPU, memory, file-size, process, and wall-clock limits.
54 Compilation fails closed when the Linux sandbox cannot be applied.
55
56 ```bash
57 bazel test //mrjunejune/test:latex_renderer_test
58 bazel test //mrjunejune/test:latex_editor_test
59 ```
60
42 ## TODO 61 ## TODO
43 62
44 - Add caching layer 63 - Add caching layer
45 - Update talk to be part 64 - Update talk to be part
46 - Update test to automatically tests all paths for blogs. 65 - Update test to automatically tests all paths for blogs.