Deploy your GitHub profile README.md as a static Astro site with profile avatar, tagline and icon links using Actions.
Create a copy (recommended) of this repository by clicking here, or a fork by clicking here.
If you don't have a GitHub profile README.md, name the repo copy the same as your username for creating one.
An example can be found here for a profile: r055a/r055a.
To display your profile README content in the site, edit the ./site.config.json file with at least the following:
- GitHub username:
githubUsername - GitHub profile site URL:
siteUrl - GitHub profile repo name:
basePath
{
"githubUsername": "",
"tabName": "",
"tabSuffix": "",
"description": "",
"tagline": "",
"siteUrl": "",
"basePath": "",
"language": "",
"locales": [],
"themeCol": "",
"links": {}
}Profile translations are generated for locales prior to deployment using the Xenova/m2m100_418M model.
Valid locales for translation are listed here (mapped to respective language for reference)
{
"English": "en",
"Afrikaans": "af",
"Amharic": "am",
"Arabic": "ar",
"Asturian": "ast",
"Azerbaijani": "az",
"Bashkir": "ba",
"Belarusian": "be",
"Bulgarian": "bg",
"Bengali": "bn",
"Breton": "br",
"Bosnian": "bs",
"Catalan": "ca",
"Cebuano": "ceb",
"Czech": "cs",
"Welsh": "cy",
"Danish": "da",
"German": "de",
"Greek": "el",
"Spanish": "es",
"Estonian": "et",
"Persian": "fa",
"Fulah": "ff",
"Finnish": "fi",
"French": "fr",
"Western Frisian": "fy",
"Irish": "ga",
"Scottish Gaelic": "gd",
"Galician": "gl",
"Gujarati": "gu",
"Hausa": "ha",
"Hebrew": "he",
"Hindi": "hi",
"Croatian": "hr",
"Haitian Creole": "ht",
"Hungarian": "hu",
"Armenian": "hy",
"Indonesian": "id",
"Igbo": "ig",
"Iloko": "ilo",
"Icelandic": "is",
"Italian": "it",
"Japanese": "ja",
"Javanese": "jv",
"Georgian": "ka",
"Kazakh": "kk",
"Khmer": "km",
"Kannada": "kn",
"Korean": "ko",
"Luxembourgish": "lb",
"Ganda": "lg",
"Lingala": "ln",
"Lao": "lo",
"Lithuanian": "lt",
"Latvian": "lv",
"Malagasy": "mg",
"Macedonian": "mk",
"Malayalam": "ml",
"Mongolian": "mn",
"Marathi": "mr",
"Malay": "ms",
"Burmese": "my",
"Nepali": "ne",
"Dutch": "nl",
"Norwegian": "no",
"Northern Sotho": "ns",
"Occitan": "oc",
"Odia": "or",
"Punjabi": "pa",
"Polish": "pl",
"Pashto": "ps",
"Portuguese": "pt",
"Romanian": "ro",
"Russian": "ru",
"Sindhi": "sd",
"Sinhala": "si",
"Slovak": "sk",
"Slovenian": "sl",
"Somali": "so",
"Albanian": "sq",
"Serbian": "sr",
"Swati": "ss",
"Sundanese": "su",
"Swedish": "sv",
"Swahili": "sw",
"Tamil": "ta",
"Thai": "th",
"Tagalog": "tl",
"Tswana": "tn",
"Turkish": "tr",
"Ukrainian": "uk",
"Urdu": "ur",
"Uzbek": "uz",
"Vietnamese": "vi",
"Wolof": "wo",
"Xhosa": "xh",
"Yiddish": "yi",
"Yoruba": "yo",
"Chinese": "zh",
"Zulu": "zu"
}Note: if changing browser languages during sessions, a browser cache refresh may be required to display translations.
Each entry in the links {key: value} object maps a platform/icon ID (key) to its destination URL (value).
{
"githubUsername": "r055a",
"tabName": "Adam Ross",
"tabSuffix": "GitHub Profile",
"description": "A static Astro site for GitHub profile README markdown content.",
"tagline": "Just a guy who likes ☕",
"siteUrl": "https://r055a.github.io",
"basePath": "/r055a",
"language": "en",
"locales": ["en", "sv", "de", "es", "fr", "hi", "zh"],
"themeCol": "",
"links": {
"buymeacoffee": "https://example.com",
"dev.to": "https://example.com",
"email": "example@email.com",
"github": "https://example.com",
"gitlab": "https://example.com",
"googleScholar": "https://example.com",
"huggingface": "https://example.com",
"kaggle": "https://example.com",
"ko-fi": "https://example.com",
"linkedin": "https://example.com",
"mastodon": "https://example.com",
"medium": "https://example.com",
"orcid": "https://example.com",
"researchgate": "https://example.com",
"stackoverflow": "https://example.com",
"website": "https://example.com",
"x": "https://example.com",
"youtube": "https://example.com"
}
}A visual of the example when deployed:
Supports dark and light mode.
npm installnpm run i18nnpm run devnpm run buildnpm run previewBefore making a Pull Request for an existing/created Issue, verify the branch passes:
npm run quality:fix