Skip to content

Independent build system using bazel #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
## Mac OS X metadata files:
*.DS_Store

# Bazel
bazel-*
55 changes: 55 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
% Configuration for fonts
%-------------------------------------------------------------------------------
% 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)
\newfontfamily\headerfont[
Path=\@fontdir,
Expand Down
16 changes: 8 additions & 8 deletions examples/cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@
% CV/RESUME CONTENT
% Each section is imported separately, open each file in turn to modify content
%-------------------------------------------------------------------------------
\input{cv/education.tex}
\input{cv/skills.tex}
\input{cv/experience.tex}
\input{cv/extracurricular.tex}
\input{cv/honors.tex}
\input{cv/presentation.tex}
\input{cv/writing.tex}
\input{cv/committees.tex}
\input{examples/cv/education.tex}
\input{examples/cv/skills.tex}
\input{examples/cv/experience.tex}
\input{examples/cv/extracurricular.tex}
\input{examples/cv/honors.tex}
\input{examples/cv/presentation.tex}
\input{examples/cv/writing.tex}
\input{examples/cv/committees.tex}


%-------------------------------------------------------------------------------
Expand Down