Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Add https://dotfyle.com

* update readme, add dotfyle.avif screenshot

* fix readme reversed sort order by GH stars

* update readme post sorting fix

* fix https://svelte.dev site_src

* treat http status code 0 and 403 as alive in link check

* update site deps

---------

Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
  • Loading branch information
codicocodes and janosh authored Aug 1, 2023
1 parent d490749 commit 1e7d1b5
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/link-check-config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"aliveStatusCodes": [200, 429, 500, 503]
"aliveStatusCodes": [0, 200, 403, 429, 500, 503]
}
178 changes: 95 additions & 83 deletions readme.md

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@
"@playwright/test": "^1.36.2",
"@rollup/plugin-yaml": "^4.1.1",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.22.3",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@sveltejs/kit": "^1.22.4",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"dotenv": "^16.3.1",
"eslint": "^8.45.0",
"eslint": "^8.46.0",
"eslint-plugin-svelte": "^2.32.4",
"js-yaml": "^4.1.0",
"marked": "^5.1.2",
"marked": "^6.0.0",
"prettier": "^3.0.0",
"prettier-plugin-svelte": "^3.0.3",
"puppeteer": "^20.9.0",
"sharp": "^0.32.4",
"svelte": "4.1.1",
"svelte": "4.1.2",
"svelte-check": "^3.4.6",
"svelte-multiselect": "^10.1.0",
"svelte-preprocess": "^5.0.4",
"svelte-zoo": "^0.4.9",
"svelte2tsx": "^0.6.19",
"typescript": "5.1.6",
"vite": "^4.4.7"
"vite": "^4.4.8"
},
"keywords": [
"sveltekit",
Expand Down
30 changes: 29 additions & 1 deletion site/src/sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- title: Svelte.dev
url: https://svelte.dev
repo: https://github.com/sveltejs/svelte
site_src: https://github.com/sveltejs/sites/blob/-/sites/svelte.dev
site_src: https://github.com/sveltejs/svelte/tree/-/sites/svelte.dev
npm: https://npmjs.com/package/svelte
description: Cybernetically enhanced web apps.
uses:
Expand Down Expand Up @@ -2775,3 +2775,31 @@
name: null
location: Tokyo, Japan
company: null
- title: Dotfyle
url: https://dotfyle.com
repo: https://github.com/codicocodes/dotfyle
description: Discover and share Neovim configurations and plugins.
uses:
- TypeScript
- PNPM
- tRPC-SvelteKit
- Prisma
- Tailwind
- Octokit
tags:
- community
- dotfiles
- neovim
- open source
date_created: 2023-03-11T00:00:00.000Z
date_added: 2023-08-01T00:00:00.000Z
slug: dotfyle
repo_stars: 219
contributors:
- github: codicocodes
twitter: null
url: null
avatar: https://avatars.githubusercontent.com/u/76068197?v=4
name: null
location: null
company: null
12 changes: 3 additions & 9 deletions site/src/tasks/update-readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,20 @@

import fs from 'fs'
import yaml from 'js-yaml'
import type { RawSite, Site } from '../lib'
import type { Site } from '../lib'

export function update_readme() {
const readme_path = `../readme.md`
const raw_sites_path = `../sites.yml`
const sites_path = `src/sites.yml`

const readme = fs.readFileSync(readme_path, `utf8`)
const raw_sites = yaml.load(fs.readFileSync(raw_sites_path)) as RawSite[]
const sites = yaml.load(fs.readFileSync(sites_path)) as Site[]

const new_line = `\n `

const new_sites = raw_sites
const new_sites = sites
.sort((site_1, site_2) => {
const stars1 = sites.find((site) => site.title === site_2.title)
?.repo_stars
const stars2 = sites.find((site) => site.title === site_1.title)
?.repo_stars
return (stars2 ?? 0) - (stars1 ?? 0)
return (site_2.repo_stars ?? 0) - (site_1.repo_stars ?? 0)
})
.map((site) => {
const { title, repo, uses, description, url, site_src } = site
Expand Down
Binary file added site/static/screenshots/dotfyle.avif
Binary file not shown.
Binary file added site/static/screenshots/dotfyle.small.avif
Binary file not shown.
11 changes: 10 additions & 1 deletion sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
url: https://svelte.dev
repo: https://github.com/sveltejs/svelte
# Sapper to SvelteKit migration in https://git.io/JXSh1
site_src: https://github.com/sveltejs/sites/blob/-/sites/svelte.dev
site_src: https://github.com/sveltejs/svelte/tree/-/sites/svelte.dev
npm: https://npmjs.com/package/svelte
description: Cybernetically enhanced web apps.
uses: [CodeMirror, Mapbox, Docker]
Expand Down Expand Up @@ -847,3 +847,12 @@
tags: [docs, tutorial, education, community]
date_created: 2023-05-15
date_added: 2023-07-27

- title: Dotfyle
url: https://dotfyle.com
repo: https://github.com/codicocodes/dotfyle
description: Discover and share Neovim configurations and plugins.
uses: [TypeScript, PNPM, tRPC-SvelteKit, Prisma, Tailwind, Octokit]
tags: [neovim, dotfiles, community]
date_created: 2023-03-11
date_added: 2023-08-01
2 changes: 2 additions & 0 deletions tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pocketbase: https://pocketbase.io
postcss: https://postcss.org
pre-commit: https://pre-commit.com
prism: https://prismjs.com
prisma: https://prisma.io
prosemirror: https://prosemirror.net
rehype: https://github.com/rehypejs/rehype
release it: https://github.com/release-it/release-it
Expand All @@ -92,6 +93,7 @@ swell commerce: https://swell.is
tailwind: https://tailwindcss.com
testing library: https://testing-library.com
three.js: https://threejs.org
trpc-sveltekit: https://github.com/icflorescu/trpc-sveltekit
turbo: https://github.com/vercel/turbo
typescript: https://typescriptlang.org
underscore: https://underscorejs.org
Expand Down

0 comments on commit 1e7d1b5

Please sign in to comment.