Skip to content

About

Personal site of Ernesto Pérez Amigo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Personal Website

Source of the personal site of Ernesto Pérez Amigo, published at https://eamigo86.github.io/.

How it works

build.py is a static site generator written with the Python standard library only (Python 3.10 or newer, nothing to install). It reads the JSON files in content/ and writes the site to dist/: English at the root and Spanish under /es/.

Local development

Run make help to list every command. The ones used most:

Command What it does
make serve Builds the site and serves it at http://127.0.0.1:8000
make test Runs the test suite; it builds a copy in a temporary directory and needs no network
make check Runs what CI runs on every push: the tests and a strict build
make refresh Refreshes data/github.json (repositories, stars, contribution calendar) from the public GitHub API and rebuilds
make pending Shows the commits that are not published yet
make publish Publishes the site (see Deployment)

Each command is a thin wrapper: make serve runs python3 build.py --serve, make test runs python3 -m unittest discover -s tests -v.

Editing content

File What it holds
content/profile.json Name, location, links, contact and GitHub user
content/i18n/en.json, content/i18n/es.json Interface strings, hero and about texts
content/hero.json The architecture diagram on the first screen
content/career.json Work, open-source and education timeline, newest first
content/skills.json Technology stack by layer
content/projects/*.json One file per project
data/github.json Cached GitHub data, generated by --refresh-github

Every translatable value needs both en and es. The build stops with an error when a language is missing or an unknown one is present.

Deployment

Every push to main and every pull request runs .github/workflows/ci.yml (tests and a release build). Nothing is published from there.

The site is published by .github/workflows/deploy.yml only when a version tag named vYYYY.MM.NN is pushed (year, month, and a counter that restarts at 01 each month). To publish a release:

make publish

It runs the tests, refuses to continue if the working tree is not clean or if HEAD is not the pushed main, and then tags the commit with the next version (python3 release.py prints it, make next-tag too) and pushes the tag. The same workflow also runs once a week and on manual dispatch: both republish the latest release tag with fresh GitHub data, never untagged commits, and fail if no tag exists yet.

The revision printed on the page (title block and section references) is the published tag. Local builds show the build year and month instead.

Repository settings: Settings → Pages → Source must be GitHub Actions, and the github-pages environment must allow deployments from tags matching v*.

About

Personal site of Ernesto Pérez Amigo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages