Skip to content

Commit

Permalink
fix: relocate template directory in resumake module directory
Browse files Browse the repository at this point in the history
fixes missing templates issue for PyPI
  • Loading branch information
cybardev committed Jan 24, 2024
1 parent ca43425 commit 6cb58a3
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# ignore template files from language statistics
src/template/* linguist-vendored
src/resumake/template/* linguist-vendored
8 changes: 4 additions & 4 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
- "resume/*.py"
- ".github/workflows/resume.yml"
- "src/resumake/utils.py"
- "src/template/resume.css"
- "src/template/resume.html"
- "src/template/index.html"
- "src/resumake/template/resume.css"
- "src/resumake/template/resume.html"
- "src/resumake/template/index.html"

# Allows running this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -34,7 +34,7 @@ jobs:
export PYTHONPATH=$PYTHONPATH:$PWD/src/
python3 -m resumake.builder ${RESUME_SCRIPT} -o ./static/assets
FILENAME=$(basename $(ls ./static/assets/Resume_*.pdf) .pdf)
echo | pandoc -t html --template=./src/template/index.html --metadata title="${FILENAME}" --variable filename="${FILENAME}" -o ./static/index.html
echo | pandoc -t html --template=./src/resumake/template/index.html --metadata title="${FILENAME}" --variable filename="${FILENAME}" -o ./static/index.html
echo "skip=false" >> "${GITHUB_OUTPUT}"
else
echo "File '${RESUME_SCRIPT}' not found. Couldn't build resume."
Expand Down
2 changes: 1 addition & 1 deletion src/resumake/builder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def parse_args() -> argparse.Namespace:
# resolve path to default template
template_dir = os.path.realpath(
os.path.join(
os.path.dirname(os.path.realpath(__file__)), "../../template"
os.path.dirname(os.path.realpath(__file__)), "../template"
)
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6cb58a3

Please sign in to comment.