This commit is contained in:
monoid 2023-01-14 03:07:59 +09:00
parent 21111549b6
commit 56ed63b25f
5 changed files with 2 additions and 7 deletions

View File

@ -40,8 +40,7 @@ export default function DocSearch(props: {
onSearch={(s) => {
setDocs(index.search(s));
}}
>
</SearchBar>
/>
<h1 class="text-2xl font-bold">Doc</h1>
<ul class="mt-4">
{docs.map((doc) => {

View File

@ -1,5 +1,4 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.6/mod.ts";
import { fromFileUrl, join } from "path/mod.ts";
import { prepareSecretKey } from "./util/secret.ts";
export const key_out_cmd = new Command();

View File

@ -1,7 +1,5 @@
import {
HandlerContext,
MiddlewareHandlerContext,
Status,
} from "$fresh/server.ts";
import { getCookies } from "http/cookie.ts";
import { verify } from "djwt";

View File

@ -1,6 +1,6 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.6/mod.ts";
import { Index } from "./src/client_search.ts";
import { Doc, DocCollector, loadDocuments } from "./src/collect.ts";
import { DocCollector, loadDocuments } from "./src/collect.ts";
export async function collectDocuments(path: string, out: string) {
const collector = new DocCollector({ summaryOnly: true, dropContent: true });

View File

@ -1,6 +1,5 @@
import {
parse as parseYaml,
stringify,
} from "https://deno.land/std@0.170.0/encoding/yaml.ts";
function trimSubstring(str: string, start: number, end: number) {