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.
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 main