Skip to content

Commit

Permalink
assort
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 committed Nov 25, 2024
1 parent 183ee3b commit f707cae
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 22 deletions.
10 changes: 5 additions & 5 deletions .site/.dev/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Script for calculating repository statistics
'''

print("python / processing stats...")
print(">>> python / processing stats...")

import json
import os
Expand All @@ -12,17 +12,17 @@


root = Path(__file__).parents[2]
repo = git.Repo(repo_path)
repo = git.Repo(root)

files = list(root.glob("**/*"))
folders = list(root.glob("**/*"))

data = {
"commits": repo.git.rev_list("--count", "HEAD")
"commits": repo.git.rev_list("--count", "HEAD"),
"total-size": sum(os.stat(each).st_size for each in files),

"source-files": len(files),
"readme": sum(1 for each in files if each.name.casefold() == "readme.md",
"readme": sum(1 for each in files if each.name.casefold() == "readme.md"),
"md": sum(1 for each in files if each.suffix == ".md"),
"svelte": sum(1 for each in files if each.suffix == ".svelte"),
"ts": sum(1 for each in files if each.suffix == ".ts"),
Expand All @@ -35,4 +35,4 @@
json.dump(data, dest, indent = 2)


print(" / done!"
print(" / done!")
8 changes: 4 additions & 4 deletions .site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"private": true,
"scripts": {
"dev": "vite dev",
"devx": "npm run prep && vite dev",
"devx": "npm run prep && vite dev",
"prep": "cd ../.stranger-quarkdown && rake squark[fonts,scss] && cd ../.site",
"prepx": "npm run squarkx && npm run vivid",
"prepx": "npm run squarkx && python .dev/stats.py && npm run vivid",
"squark": "cd ../.stranger-quarkdown && rake squark --trace && cd ../.site",
"squarkx": "cd ../.stranger-quarkdown && rake squark[fonts,scss,assets] --trace && cd ../.site",
"squarkx": "cd ../.stranger-quarkdown && rake squark[fonts,scss,assets] --trace && cd ../.site",
"vivid": "python vividity/export --root=src/palettes --css=colours.css css json",
"build": "vite build",
"buildx": "npm run prepx && vite build",
"buildx": "npm run prepx && vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions .site/src/data/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -1906,9 +1906,9 @@
},
"~dev/migration.md": {
"path": "~dev/migration.md",
"last_deploy": "2024-11-15 19:16:40 +0000",
"last_deploy": "2024-11-25 19:22:17 +0000",
"slocs": 159,
"chars": 9724,
"chars": 9723,
"isIndex": false,
"flags": [
"live",
Expand Down
11 changes: 11 additions & 0 deletions .site/src/data/stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commits": "3975",
"total-size": 3059498726,
"source-files": 11558,
"readme": 230,
"md": 582,
"svelte": 173,
"ts": 761,
"scss": 25,
"source-folders": 11558
}
8 changes: 4 additions & 4 deletions .site/src/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface SiteData {
meta: object;
pages: PagesData;
featured: PageData[];
palettes: PalettesData[];
palettes: PalettesData;
font: string;
fonts: string[];
index: object;
Expand All @@ -31,9 +31,9 @@ interface PalettesData {

const Site: SiteData = {
meta: {
site_data.meta,
site_stats,
}
...site_data.meta,
...site_stats,
},

pages: site_data.pages,
featured: Object.values(site_data.pages).filter(
Expand Down
2 changes: 1 addition & 1 deletion .site/src/styles/essence.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ p {
}
}

p code {
p code, li code {
padding: 0.2em 0.5em;
@include font-code;
color: var(--col-text);
Expand Down
7 changes: 1 addition & 6 deletions .site/src/styles/pages/article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,12 @@ i, em {
font-style: italic;
}

code {
@include font-code;
color: var(--col-text-prot);
}


ul {
padding-left: 1em;
}

li {
li:not(code) {
@include font-body;
line-height: 150%;
color: var(--col-text);
Expand Down

0 comments on commit f707cae

Please sign in to comment.