mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-25 07:28:34 +00:00
Independent build system using bazel
- Basicall using bazel alongside make
This commit is contained in:
parent
4be6c213c8
commit
0426a14da2
5 changed files with 78 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -21,3 +21,5 @@
|
||||||
## Mac OS X metadata files:
|
## Mac OS X metadata files:
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
||||||
|
# Bazel
|
||||||
|
bazel-*
|
||||||
|
|
55
BUILD.bazel
Normal file
55
BUILD.bazel
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
load("@bazel_latex//:latex.bzl", "latex_document")
|
||||||
|
|
||||||
|
latex_document(
|
||||||
|
name="cv",
|
||||||
|
srcs=glob([
|
||||||
|
"examples/cv/*.tex"
|
||||||
|
]) + [":shared_files"],
|
||||||
|
main="examples/cv.tex",
|
||||||
|
)
|
||||||
|
|
||||||
|
latex_document(
|
||||||
|
name="resume",
|
||||||
|
srcs=glob([
|
||||||
|
"examples/resume/*.tex"
|
||||||
|
]) + [":shared_files"],
|
||||||
|
main="examples/resume.tex",
|
||||||
|
)
|
||||||
|
|
||||||
|
latex_document(
|
||||||
|
name="coverletter",
|
||||||
|
srcs=glob([
|
||||||
|
"examples/coverletter/*.tex"
|
||||||
|
]) + [":shared_files"],
|
||||||
|
main="examples/coverletter.tex",
|
||||||
|
)
|
||||||
|
|
||||||
|
# Magical list of available packages (`@bazel_latex//packages:some-package-name`) with their deps
|
||||||
|
# https://github.com/ProdriveTechnologies/bazel-latex/blob/master/packages/BUILD.bazel
|
||||||
|
filegroup(
|
||||||
|
name="shared_files",
|
||||||
|
srcs=["awesome-cv.cls"] +
|
||||||
|
glob(["fonts/*.ttf"]) +
|
||||||
|
[
|
||||||
|
"@bazel_latex//packages:array",
|
||||||
|
"@bazel_latex//packages:enumitem",
|
||||||
|
"@bazel_latex//packages:geometry",
|
||||||
|
"@bazel_latex//packages:fancyhdr",
|
||||||
|
"@bazel_latex//packages:xcolor",
|
||||||
|
"@bazel_latex//packages:xifthen",
|
||||||
|
"@bazel_latex//packages:etoolbox",
|
||||||
|
"@texlive_texmf__texmf-dist__tex__latex__setspace",
|
||||||
|
"@bazel_latex//packages:fontspec",
|
||||||
|
"@bazel_latex//packages:unicode-math",
|
||||||
|
"@bazel_latex//packages:fontawesome",
|
||||||
|
|
||||||
|
"@bazel_latex//packages:xkeyval",
|
||||||
|
"@texlive_texmf__texmf-dist__tex__latex__roboto",
|
||||||
|
# https://github.com/silkeh/latex-sourcesanspro
|
||||||
|
"@texlive_texmf__texmf-dist__tex__latex__sourcesanspro",
|
||||||
|
"@texlive_texmf__texmf-dist__fonts__opentype__adobe__sourcesanspro",
|
||||||
|
"@bazel_latex//packages:tcolorbox",
|
||||||
|
"@bazel_latex//packages:parskip",
|
||||||
|
"@bazel_latex//packages:hyperref",
|
||||||
|
],
|
||||||
|
)
|
12
WORKSPACE.bazel
Normal file
12
WORKSPACE.bazel
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||||
|
|
||||||
|
http_archive(
|
||||||
|
name = "bazel_latex",
|
||||||
|
sha256 = "6fee813c68fcb5d24a499178584469465a490b0fb227aa4ef417e427bb004245",
|
||||||
|
strip_prefix = "bazel-latex-master",
|
||||||
|
url = "https://github.com/ProdriveTechnologies/bazel-latex/archive/master.tar.gz",
|
||||||
|
)
|
||||||
|
|
||||||
|
load("@bazel_latex//:repositories.bzl", "latex_repositories")
|
||||||
|
|
||||||
|
latex_repositories()
|
|
@ -161,7 +161,7 @@
|
||||||
% Configuration for fonts
|
% Configuration for fonts
|
||||||
%-------------------------------------------------------------------------------
|
%-------------------------------------------------------------------------------
|
||||||
% Set the FontAwesome font to be up-to-date.
|
% Set the FontAwesome font to be up-to-date.
|
||||||
\newfontfamily\FA[Path=\@fontdir]{FontAwesome}
|
\setfontfamily\FA[Path=\@fontdir]{FontAwesome}
|
||||||
% Set font for header (default is Roboto)
|
% Set font for header (default is Roboto)
|
||||||
\newfontfamily\headerfont[
|
\newfontfamily\headerfont[
|
||||||
Path=\@fontdir,
|
Path=\@fontdir,
|
||||||
|
|
|
@ -95,14 +95,14 @@
|
||||||
% CV/RESUME CONTENT
|
% CV/RESUME CONTENT
|
||||||
% Each section is imported separately, open each file in turn to modify content
|
% Each section is imported separately, open each file in turn to modify content
|
||||||
%-------------------------------------------------------------------------------
|
%-------------------------------------------------------------------------------
|
||||||
\input{cv/education.tex}
|
\input{examples/cv/education.tex}
|
||||||
\input{cv/skills.tex}
|
\input{examples/cv/skills.tex}
|
||||||
\input{cv/experience.tex}
|
\input{examples/cv/experience.tex}
|
||||||
\input{cv/extracurricular.tex}
|
\input{examples/cv/extracurricular.tex}
|
||||||
\input{cv/honors.tex}
|
\input{examples/cv/honors.tex}
|
||||||
\input{cv/presentation.tex}
|
\input{examples/cv/presentation.tex}
|
||||||
\input{cv/writing.tex}
|
\input{examples/cv/writing.tex}
|
||||||
\input{cv/committees.tex}
|
\input{examples/cv/committees.tex}
|
||||||
|
|
||||||
|
|
||||||
%-------------------------------------------------------------------------------
|
%-------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue