Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntk148v committed Feb 16, 2024
1 parent 9812121 commit 453d76a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/schedules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_USERNAME: 'ntk148v'
FORCE_UPDATE: 'false'
FORCE_UPDATE: 'true'
shell: bash
6 changes: 4 additions & 2 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ def generate_readme(variant, release):
## How to use
- Add `<link href="https://iosevka-webfonts.github.io/{variant}/{variant_css}.css" rel="stylesheet" />` to your `<head>`.
- Add `<link href="https://iosevka-webfonts.github.io/{variant_lower}/{variant_css}.css" rel="stylesheet" />` to your `<head>`.
- Check out the [CSS file](./{variant_css}.css) for browsing the name of font family.
"""

variant_lower = variant.lower()
variant_cap = " ".join(e.capitalize() if not e.startswith(
"ss") else e.upper() for e in variant.split("-"))
variant_css = variant
if "Unhinted" in variant:
variant_css = f"{variant.removeprefix('Unhinted-')}-Unhinted"
return readme.format(variant_cap=variant_cap, variant=variant,
variant_css=variant_css, release=release)
variant_css=variant_css, release=release,
variant_lower=variant_lower)


def clone_repo(org_name: str, repo_name: str):
Expand Down

0 comments on commit 453d76a

Please sign in to comment.