fix(ci): make astro check more strict

This commit is contained in:
Barrett Ruth 2025-11-09 14:59:59 -05:00
parent be188323e0
commit 9312bb5fb8
8 changed files with 9 additions and 9 deletions

View file

@ -38,4 +38,4 @@
}
</style>
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>

View file

@ -40,4 +40,4 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
}
</style>
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>

View file

@ -103,7 +103,7 @@ def countFairPairs(self, nums, lower, upper):
## optimizing the approach
If we interpret the criteria this way, the above approach is relatively efficient. To improve this approach, we'll need to reinterpret the constraints. Forget about the indexing and consider the constraint in aggregate. We want to find all $i,j$ with $x=nums$i$+nums$j$$ such that $i\neq j,lower\leq x\leq upper$.
If we interpret the criteria this way, the above approach is relatively efficient. To improve this approach, we'll need to reinterpret the constraints. Forget about the indexing and consider the constraint in aggregate. We want to find all $i,j$ with $x=nums[i]+nums[j]$ such that $i\neq j,lower\leq x\leq upper$.
We _still_ need to reduce the “dimensionality” of the problem—there are just too many moving parts to consider at once. This seems challening. Let's simplify the problem to identify helpful ideas: pretend `lower` does not exist (and, of course, that `nums` is sorted).

View file

@ -10,7 +10,7 @@ const { frontmatter } = Astro.props;
<link rel="stylesheet" href="/styles/posts.css" />
<link rel="stylesheet" href="/styles/git.css" />
<slot name="head" />
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>
</head>
<body>
<header class="post-header">

View file

@ -64,9 +64,9 @@ const topicColor = getTopicColor(post?.collection);
</div>
<Fragment slot="scripts">
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>
<script src="/scripts/centerKatex.js" is:inline></script>
{frontmatter.scripts?.map((src) => <script src={src} />)}
{frontmatter.scripts?.map((src) => <script src={src} is:inline />)}
<slot name="scripts" />
</Fragment>
</BaseLayout>

View file

@ -43,7 +43,7 @@ if (post.data?.redirect) {
<PostLayout frontmatter={post.data} post={post}>
<Fragment slot="head">
<title>{pageTitle}</title>
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>
</Fragment>
<Content />
</PostLayout>

View file

@ -11,7 +11,7 @@ gists.sort(sortItem);
<BaseLayout title={title}>
<slot name="head" slot="head">
<link rel="stylesheet" href="/styles/index.css" />
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>
</slot>
<div class="content">

View file

@ -11,7 +11,7 @@ repos.sort(sortItem);
<BaseLayout title={title}>
<slot name="head" slot="head">
<link rel="stylesheet" href="/styles/index.css" />
<script src="/scripts/index.js"></script>
<script src="/scripts/index.js" is:inline></script>
</slot>
<div class="content">