mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Compare commits
7 commits
d96ca253f2
...
de36d02731
Author | SHA1 | Date | |
---|---|---|---|
|
de36d02731 | ||
|
aa9576e91d | ||
|
522e322cf5 | ||
|
94a15855c9 | ||
|
d1fd05e56e | ||
|
867072103d | ||
|
b0b4328b9e |
9 changed files with 35 additions and 27 deletions
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ lint-css: $(CSS_DIR)/*.css
|
|||
equal-access:
|
||||
cp -r $(OUTPUT_DIR) $(OUTPUT_DIR).eac
|
||||
find $(OUTPUT_DIR).eac -type f -name "*.html" | xargs -n1 sd 'content-visibility:auto;' ''
|
||||
achecker $(OUTPUT_DIR).eac/
|
||||
pnpm --package accessibility-checker dlx achecker $(OUTPUT_DIR).eac/
|
||||
rm -rf $(OUTPUT_DIR).eac
|
||||
|
||||
.PHONY: validate-json
|
||||
|
|
|
@ -7,18 +7,18 @@ SCHEME=https://
|
|||
URL ?= $(SCHEME)$(DOMAIN)$(PAGE_PATH)
|
||||
# latest bleeding-edge chromium snapshot
|
||||
CHROME_DIR = /home/rkumar/Downloads/gitclone/chromium/thorium/latest
|
||||
CHROME_PATH = $(CHROME_DIR)/thorium
|
||||
CHROMEDRIVER_PATH = $(CHROME_DIR)/chromedriver
|
||||
CHROME_PATH = org.chrome.Chromium
|
||||
CHROMEDRIVER_PATH = chromedriver
|
||||
CHROME_PROFILE ?= /tmp/chrome-lighthouse
|
||||
JS_FLAGS=''
|
||||
# We enable experimental web platform features so the Document-Policy header is enforced
|
||||
# #
|
||||
CHROME_FLAGS += --headless --disable-extensions --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --enable-features=UseDnsHttpsSvcb,UseDnsHttpsSvcbAlpn --no-first-run --disable-background-networking --user-data-dir=$(CHROME_PROFILE) --enable-experimental-web-platform-features --enable-quic --origin-to-force-quic-on=seirdy.one:443
|
||||
CHROME_FLAGS += --headless --disable-network-portal-notification --disable-client-side-phishing-protection --disable-gaia-services --disable-sync --no-vr-runtime --no-wifi --no-crash-upload --no-report-uload --disable-extensions --allow-browser-signin=false --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-fonts-googleapis-references --disable-field-trial-config --lang=en-US --disable-ntp-popular-sites --disable-offer-store-unmasked-wallet-cards --disable-office-editing-component-extension --disable-fine-grained-time-zone-detection --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --enable-features=UseDnsHttpsSvcb,UseDnsHttpsSvcbAlpn,AsyncDns --no-first-run --disable-background-networking --user-data-dir=$(CHROME_PROFILE) --enable-experimental-web-platform-features --enable-quic --origin-to-force-quic-on=seirdy.one:443
|
||||
CHROME_FLAGS_COMMA = 'disable-extensions,no-default-browser-check,disable-client-side-phishing-detection,disable-component-update,disable-default-apps,disable-device-discovery-notifications,disable-domain-reliability,disable-background-timer-throttling,disable-breakpad,no-first-run,disable-background-networking,js-flags=--jitless'
|
||||
# When quiet, my lappie's CPU power is benchmarked to be ~1320. The CPU throttling calculator recommends throttling by 3.1x.
|
||||
# Multiply that by 4 cuz imo it's way too generous. It targets devices like the Moto G4; I target devices like the JioPhone 2.
|
||||
CPU_SLOWDOWN=12.5
|
||||
LIGHTHOUSE_ARGS += --budget-path linter-configs/budget.json --output html --output json --output-file lighthouse-results --throttling-method=devtools --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --chrome-flags="$(CHROME_FLAGS)"
|
||||
# When quiet, my lappie's CPU power is benchmarked to be a bit under 1000. The CPU throttling calculator recommends throttling by 2.3.
|
||||
# Multiply that by 3 cuz imo it's way too generous. It targets devices like the Moto G4; I target devices like the JioPhone 2.
|
||||
CPU_SLOWDOWN=6.9 # nice
|
||||
LIGHTHOUSE_ARGS += --budget-path linter-configs/budget.json --output html --output json --output-file lighthouse-results --throttling-method=devtools --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --chrome-flags="$(CHROME_FLAGS)" --view
|
||||
|
||||
# make some of these quiet bc they'll otherwise echo every URL
|
||||
|
||||
|
|
|
@ -501,13 +501,19 @@ ins,
|
|||
* figure captions shouldn't look like regular paragraphs; there should
|
||||
* be some extra space.
|
||||
* This does not hold true for figures in somewhat distinct sections; the
|
||||
* section should instead get the spacing. A section that constitutes a
|
||||
* separate schema.org object would qualify. */
|
||||
* parent section should instead get the spacing. A section that
|
||||
* constitutes a separate schema.org object would qualify. */
|
||||
figure,
|
||||
section[itemprop="mentions"] {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
/* image captions, on the other hand, should look more separate from
|
||||
* surrounding paragraphs. */
|
||||
figure[itemtype="https://schema.org/ImageObject"] {
|
||||
margin: 1.5em;
|
||||
}
|
||||
|
||||
section[itemprop="mentions"] > figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
@ -134,6 +134,7 @@ More information is available in my "uses" page.
|
|||
|
||||
I watch anime. Some of my favorites, in no particular order:
|
||||
|
||||
* Pluto
|
||||
* Code Geass
|
||||
* Mawaru Penguindrum
|
||||
* No Game No Life: Zero
|
||||
|
|
|
@ -161,6 +161,7 @@ More information is available in [my "uses" page]({{<relref "uses">}}).
|
|||
|
||||
I watch <span class="p-category category">anime</span>. Some of my favorites, in no particular order:
|
||||
|
||||
- Pluto
|
||||
- Code Geass
|
||||
- Mawaru Penguindrum
|
||||
- No Game No Life: Zero
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<a rel="alternate" href="http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion{{ .RelPermalink }}">Tor mirror</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ site.BaseURL }}meta/privacy/">Privacy</a>
|
||||
<a href="{{ site.BaseURL }}meta/privacy/" rel="privacy-policy">Privacy</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ site.BaseURL }}meta/site-design/">Site design standards</a>
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
<span id="{{ $id }}" tabindex="-1">
|
||||
<strong itemprop="name"> <span itemprop="codeSampleType">Code snippet</span> {{ $codeIndex }}</strong>{{with .Get "lang"}} (<span itemprop="programmingLanguage">{{ . }}</span>){{ end -}}
|
||||
</span>:
|
||||
{{ .Inner | markdownify | safeHTML }}
|
||||
{{ .Inner | .Page.RenderString | safeHTML }}
|
||||
</figcaption>
|
||||
{{- .Page.Scratch.Set "codeIndex" (add 1 $codeIndex) -}}
|
||||
|
|
|
@ -5,4 +5,4 @@ PATH="scripts/bin:$PATH"
|
|||
output_dir="$1"
|
||||
shift
|
||||
urls="$(echo "$*" | tr ' ' '\n' | sd '^https?://[^/]*' "file://$PWD/$output_dir" | sd '/$' '/index.html' | tr '\n' ' ')"
|
||||
axe $urls -b firefox --show-errors
|
||||
pnpm --package @axe-core/cli -s dlx axe $urls -b firefox --show-errors
|
||||
|
|
|
@ -2,23 +2,23 @@
|
|||
Hash: SHA256
|
||||
|
||||
Contact: https://seirdy.one/about/
|
||||
Expires: 2023-09-25T07:00:00.000Z
|
||||
Expires: 2024-11-12T00:00:00.000Z
|
||||
Encryption: https://seirdy.one/publickey.asc
|
||||
Preferred-Languages: en
|
||||
Canonical: https://seirdy.one/.well-known/security.txt
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAEBCAAdFiEErGrx+DjfPcwuR6bPHoktsqX4RHkFAmMwvJwACgkQHoktsqX4
|
||||
RHmRMg/9Gf3CuEBytq9F7lDweb0KYTewJ+2wauovxUcoC49wp+4fGbxT5lghZtpN
|
||||
6+sSNIrK7dgVmULqS7gD6I/2Zh/R3qwJHsvfiKaaKarV12k36FQm4yg/Pib8NI0k
|
||||
jb53eRKGPw2KC0RUnV+vz57sbvzMQpw6FN03QAISOes0QFhpao466+rE7kroVPJo
|
||||
uXleLlbfP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eiKd7CpIgdwpLuCsK5QABTSBEkLl7NyoGeX4vn
|
||||
mpAd5iFUlkQniD/RJhrTdfCdGh6TBJyAwj3agPYhoPRYwnC9SDZ99r1WJ+yU3aAp
|
||||
YYO5sN1kyxB2nplRWzPfXzmsnuPphnSqz3dtfnzRt7jsGbshxUps6hbxtweYp2LV
|
||||
JrYqvmPHUZRsGf79YbgmhxHMS5tDJflaJq7x2E5OWaUmrn2h3oU9qYJoVyDzTgWB
|
||||
fRpxXJ/VFiKg3OjON0cFjALqTWBSG0j+hXpac52UCZrfuW0RHZc=
|
||||
=/Zhb
|
||||
-----END PGP SIGNATURE-----
|
||||
|
|
Loading…
Reference in a new issue