Skip to content

Commit

Permalink
assort
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 committed Dec 2, 2024
1 parent 4eb2c29 commit bc3c79d
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .site/.dev/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
"commits": repo.git.rev_list("--count", "HEAD"),
"total-size": sum(os.stat(each).st_size for each in files),

"source-folders": sum(1 for each in folders if each.is_dir()),
"source-files": len(files),
"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"),
"scss": sum(1 for each in files if each.suffix == ".scss"),

"source-folders": len(folders),
}

with open(root / ".site/src/data/stats.json", "w") as dest:
Expand Down
37 changes: 33 additions & 4 deletions .site/src/data/site.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"meta": {
"exported": "2024-11-25",
"file_count": 318,
"page_count": 106
"exported": "2024-12-02",
"file_count": 320,
"page_count": 107
},
"index": {
"info": {
Expand Down Expand Up @@ -31,6 +31,7 @@
"~writing/creative/Seclusion.md",
"~writing/creative/The Last Cavern.md",
"~writing/roots.md",
"~writing/wriiiting.md",
"~writing/wriiting.md",
"~writing/writing.md"
]
Expand Down Expand Up @@ -276,6 +277,7 @@
"~writing/creative/Seclusion.md",
"~writing/creative/The Last Cavern.md",
"~writing/roots.md",
"~writing/wriiiting.md",
"~writing/wriiting.md",
"~writing/writing.md"
],
Expand Down Expand Up @@ -462,7 +464,8 @@
"~personal/interests.md",
"~personal/quotes.md",
"~personal/slinqui.md",
"~writing/Tearful.md"
"~writing/Tearful.md",
"~writing/wriiiting.md"
],
"misc": [
"~misc/filltext.md",
Expand Down Expand Up @@ -539,6 +542,7 @@
"rambling": [
"~writing/Broken World.md",
"~writing/Tearful.md",
"~writing/wriiiting.md",
"~writing/writing.md"
],
"wack": [
Expand Down Expand Up @@ -3138,6 +3142,31 @@
"date": null,
"date_display": null
},
"~writing/wriiiting.md": {
"path": "~writing/wriiiting.md",
"last_deploy": "2024-12-02 20:04:07 +0000",
"slocs": 59,
"chars": 3016,
"isIndex": false,
"flags": [
"live"
],
"dest": "writint/wriiiting",
"title": "wriiiting?",
"head": "wriiiting?",
"capt": null,
"desc": "I need to write.",
"index": [
"writing"
],
"shard": [
"writing",
"personal",
"rambling"
],
"date": "2024-11-28",
"date_display": "2024 November 28"
},
"~writing/wriiting.md": {
"path": "~writing/wriiting.md",
"last_deploy": "2024-11-04 17:26:25 +0000",
Expand Down
16 changes: 8 additions & 8 deletions .site/src/data/stats.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commits": "3975",
"total-size": 3059498726,
"source-files": 11558,
"commits": "3982",
"total-size": 3067054674,
"source-folders": 1682,
"source-files": 11627,
"readme": 230,
"md": 582,
"svelte": 173,
"ts": 761,
"scss": 25,
"source-folders": 11558
"md": 584,
"svelte": 174,
"ts": 762,
"scss": 25
}
10 changes: 5 additions & 5 deletions .site/src/routes/(article)/(static)/stats/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ const chars = (
<th> last deployed </th>
<td> {stats.exported} </td>
</tr>
<tr>
<th> source files </th>
<td> {stats["source-files"]} </td>
</tr>
<tr>
<th> source folders </th>
<td> {stats["source-folders"]} </td>
</tr>
<tr>
<th> source files </th>
<td> {stats["source-files"]} </td>
</tr>
<tr>
<th> README files </th>
<td> {stats["readme"]} </td>
Expand All @@ -54,7 +54,7 @@ const chars = (
</tr>
<tr>
<th> deployed pages </th>
<td> {pages} </td>
<td> {stats["page_count"]} </td>
</tr>
<tr>
<th> total slocs </th>
Expand Down
2 changes: 1 addition & 1 deletion .site/src/routes/(home)/flavour-search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ p {
color: var(--col-prot);
font-size: 80%;
text-align: center;
filter: drop-shadow(0 2px 3px rgba(black, 20%));
filter: drop-shadow(0 1px 1px rgba(black, 16%));
}
</style>
13 changes: 9 additions & 4 deletions .site/src/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ const palettes_data = await import("./palettes/palettes.json");


interface SiteData {
meta: object;
meta: Accessible;
pages: PagesData;
featured: PageData[];
palettes: PalettesData;
font: string;
fonts: string[];
index: object;
shard: object;
index: Accessible;
shard: Accessible;
}

interface Accessible {
[key: string]: any;
}

interface PagesData {
Expand All @@ -32,7 +36,7 @@ interface PalettesData {
const Site: SiteData = {
meta: {
...site_data.meta,
...site_stats,
...site_stats.default,
},

pages: site_data.pages,
Expand Down Expand Up @@ -169,3 +173,4 @@ for (let [index, data] of Object.entries(site_data.index)) {
}

export default Site;
console.log(Site)

0 comments on commit bc3c79d

Please sign in to comment.