mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-10 05:01:11 -06:00
Add repl config
This commit is contained in:
14
.replit
Normal file
14
.replit
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
compile = ["sh", "compile.sh"]
|
||||||
|
#compile = ["pdflatex", "-halt-on-error", "book/book.tex"]
|
||||||
|
run = ["sh", "runner.sh"]
|
||||||
|
|
||||||
|
hidden = ["*.aux", "*.log", "index.html", "runner.sh", "nohup.out"]
|
||||||
|
|
||||||
|
[languages.latex]
|
||||||
|
pattern = "**/*.tex"
|
||||||
|
|
||||||
|
[languages.latex.languageServer]
|
||||||
|
start = "texlab"
|
||||||
|
|
||||||
|
[nix]
|
||||||
|
channel = "stable-21_11"
|
||||||
11
compile.sh
Normal file
11
compile.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
cd book
|
||||||
|
#ls
|
||||||
|
#cat makefile
|
||||||
|
#make -f makefile make_pdf
|
||||||
|
pdflatex -halt-on-error book.tex
|
||||||
|
biber
|
||||||
|
pdflatex -halt-on-error book.tex
|
||||||
28
index.html
Normal file
28
index.html
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="footer">
|
||||||
|
<button><a href="book/book.pdf" download="book.pdf">Download</a></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<iframe src="book/book.pdf"></iframe>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
8
replit.nix
Normal file
8
replit.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs }: {
|
||||||
|
deps = [
|
||||||
|
pkgs.texlive.combined.scheme-full
|
||||||
|
pkgs.httplz
|
||||||
|
pkgs.texlab
|
||||||
|
pkgs.biber
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user