diff --git a/CUSTOMIZE.md b/CUSTOMIZE.md index a809c95..a58d4ef 100644 --- a/CUSTOMIZE.md +++ b/CUSTOMIZE.md @@ -269,6 +269,30 @@ What this means is, if there is no resume data defined in [\_config.yml](_config The user and repository information is defined in [\_data/repositories.yml](_data/repositories.yml). You can add as many users and repositories as you want. Both informations are used in the `repositories` section. +### Configuring external service URLs + +The repository page uses external services to display GitHub statistics and trophies. By default, these are: + +- `github-readme-stats.vercel.app` for user stats and repository cards +- `github-profile-trophy.vercel.app` for GitHub profile trophies + +**Important:** These default services are hosted by third parties and may not be available 100% of the time. For better reliability, privacy, and customization, you can self-host these services and configure your website to use your own instances. + +To use your own instances of these services, configure the URLs in [\_config.yml](_config.yml): + +```yaml +external_services: + github_readme_stats_url: https://github-readme-stats.vercel.app + github_profile_trophy_url: https://github-profile-trophy.vercel.app +``` + +To self-host these services, follow the deployment instructions in their respective repositories: + +- [github-readme-stats](https://github.com/anuraghazra/github-readme-stats) +- [github-profile-trophy](https://github.com/ryo-ma/github-profile-trophy) + +Once deployed, update the URLs above to point to your custom deployment. + ## Creating new pages You can create new pages by adding new Markdown files in the [\_pages](_pages/) directory. The easiest way to do this is to copy an existing page and modify it. You can choose the layout of the page by changing the [layout](https://jekyllrb.com/docs/layouts/) attribute in the [frontmatter](https://jekyllrb.com/docs/front-matter/) of the Markdown file, and also the path to access it by changing the [permalink](https://jekyllrb.com/docs/permalinks/) attribute. You can also add new layouts in the [\_layouts](_layouts/) directory if you feel the need for it. diff --git a/_config.yml b/_config.yml index 737e395..0d9e4da 100644 --- a/_config.yml +++ b/_config.yml @@ -36,6 +36,13 @@ repo_trophies: theme_light: flat # https://github.com/ryo-ma/github-profile-trophy theme_dark: gitdimmed # https://github.com/ryo-ma/github-profile-trophy +# External service URLs for repository page +# To use a different instance or service for displaying GitHub stats and trophies, +# update these URLs. These are used in the repository templates. +external_services: + github_readme_stats_url: https://github-readme-stats.vercel.app + github_profile_trophy_url: https://github-profile-trophy.vercel.app + # ----------------------------------------------------------------------------- # RSS Feed # ----------------------------------------------------------------------------- diff --git a/_includes/repository/repo.liquid b/_includes/repository/repo.liquid index e353de0..d2e4c64 100644 --- a/_includes/repository/repo.liquid +++ b/_includes/repository/repo.liquid @@ -36,12 +36,12 @@ {{ include.repository }} {{ include.repository }} diff --git a/_includes/repository/repo_trophies.liquid b/_includes/repository/repo_trophies.liquid index 8535bd5..d0f3e9c 100644 --- a/_includes/repository/repo_trophies.liquid +++ b/_includes/repository/repo_trophies.liquid @@ -4,12 +4,12 @@ {{ include.username }} {{ include.username }} @@ -17,12 +17,12 @@ {{ include.username }} {{ include.username }} @@ -30,12 +30,12 @@ {{ include.username }} {{ include.username }} diff --git a/_includes/repository/repo_user.liquid b/_includes/repository/repo_user.liquid index 2889cff..d41519c 100644 --- a/_includes/repository/repo_user.liquid +++ b/_includes/repository/repo_user.liquid @@ -23,12 +23,12 @@ {{ include.username }} {{ include.username }}