This project is configured as a Quarto website and ready for deployment to GitHub Pages using GitHub Actions.
index.qmd: Homepage.project-log.qmd: Implementation log.wikidata.qmd: Wikidata notes and references.wikidata-item.ipynb: Notebook-backed profile page rendered by Quarto.wikidata_profile.py: Shared Python helper logic used by the notebook page._quarto.yml: Quarto project and navigation configuration.
The repository includes a Dev Container configuration so you can work entirely in the browser without installing anything locally.
- On the repository page on GitHub, click Code → Codespaces → Create codespace on main.
- Wait for the container to build — Python packages from
requirements.txtare installed automatically. - Quarto will install itself
- Run the Quarto preview server:
quarto preview- VS Code will prompt you to open the forwarded port in a browser — click Open in Browser to see the live site.
- To profile a different Wikidata item, open
wikidata-item.ipynb, updateitem_idin Cell 3, then run all cells or re-runquarto render.
Use one of the setup scripts to create .venv, install notebook dependencies, register the local Jupyter kernel, and install Quarto when a supported package manager is available.
Windows (PowerShell):
./scripts/setup-local.ps1macOS/Linux:
chmod +x ./scripts/setup-local.sh
./scripts/setup-local.shIf automatic Quarto installation is not possible on your system, install it from https://quarto.org/docs/get-started/ and then re-run the setup script.
quarto previewTo render once:
quarto render- Open
wikidata-item.ipynb. - In Cell 3, change
item_idto the target Wikidata Q-id. - Run the notebook cells (or run
quarto render). - Confirm output in
docs/wikidata-item.html.
The notebook runs a SPARQL query against the Wikidata Query Service, then renders a styled HTML profile with statement cards and summary charts.
- Create a GitHub repository and push this folder to the
mainbranch. - In GitHub, open Settings -> Pages.
- Under Build and deployment, set Source to GitHub Actions.
- Push changes to
main. - The workflow at
.github/workflows/publish.ymlbuilds and deploys thedocsfolder.
The workflow supports manual runs via workflow_dispatch.
- Open the repository on GitHub.
- Go to Actions -> Publish Quarto Site.
- Click Run workflow.
- Select the
mainbranch and start the run.
- If the notebook fetch fails from Wikidata, re-run
quarto renderafter a short delay (the service can rate limit). - If notebook imports fail after code changes in
wikidata_profile.py, restart the kernel and run notebook cells again.
git init
git add .
git commit -m "Initialize Quarto website project"
git branch -M main
git remote add origin <your-repo-url>
git push -u origin mainSource code is released under the MIT Licence. Written content, documentation, and non-code assets are licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).