Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can open a local project folder, edit your files, see the PDF update, commit

There's no magic and no backend.

**Editor.** Built on [CodeMirror 6](https://codemirror.net/) with a custom LaTeX grammar (Lezer parser), autocomplete provider, and theme system. The editor supports multiple open files via tabs and syncs content with both the local filesystem and the in-memory git working tree.
**Editor.** Built on [CodeMirror 6](https://codemirror.net/) with a custom LaTeX grammar (Lezer parser), autocomplete provider, and theme system. The editor supports multiple open files via tabs and writes straight to the files on disk, which is also where git looks.

**Compiler.** LaTeX compilation uses [SwiftLaTeX](https://github.com/SwiftLaTeX/SwiftLaTeX)'s pdfTeX engine compiled to WebAssembly. The engine runs in a memory filesystem (MEMFS), where your project files are written before each compilation. When the engine asks for a file it doesn't have (a class, package, font, ...), the service worker resolves it through a chain: previously cached files first, then the package subset bundled with the app, then a TeX Live mirror (a texmf-dist mirror on jsDelivr, with a community SwiftLaTeX server as fallback). Every resolved file is stored in the browser's cache storage, so each package is downloaded at most once. After the first successful compile, the bundled subset is also prefetched in the background so the core package set works offline.

Expand Down Expand Up @@ -121,7 +121,7 @@ Full functionality requires the File System Access API, which is available in Ch

## Contributing

There is no formal process. Fork, change, open a pull request. [CONTRIBUTING.md](CONTRIBUTING.md) has the layout of the code and what kind of help matters most right now.
There is no formal process. Fork, change, open a pull request. [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) has the layout of the code and what kind of help matters most right now.

## License

Expand Down
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions static/pdf.worker.min.mjs

This file was deleted.

5 changes: 0 additions & 5 deletions static/texbrain-logo.svg

This file was deleted.

82 changes: 0 additions & 82 deletions vite-texlive-plugin.ts

This file was deleted.

3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
import { texlivePlugin } from './vite-texlive-plugin';

export default defineConfig({
plugins: [tailwindcss(), texlivePlugin(), sveltekit()],
plugins: [tailwindcss(), sveltekit()],
define: {
'global': 'globalThis'
},
Expand Down
Loading