lint
This commit is contained in:
parent
21111549b6
commit
56ed63b25f
@ -40,8 +40,7 @@ export default function DocSearch(props: {
|
|||||||
onSearch={(s) => {
|
onSearch={(s) => {
|
||||||
setDocs(index.search(s));
|
setDocs(index.search(s));
|
||||||
}}
|
}}
|
||||||
>
|
/>
|
||||||
</SearchBar>
|
|
||||||
<h1 class="text-2xl font-bold">Doc</h1>
|
<h1 class="text-2xl font-bold">Doc</h1>
|
||||||
<ul class="mt-4">
|
<ul class="mt-4">
|
||||||
{docs.map((doc) => {
|
{docs.map((doc) => {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Command } from "https://deno.land/x/cliffy@v0.25.6/mod.ts";
|
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";
|
import { prepareSecretKey } from "./util/secret.ts";
|
||||||
|
|
||||||
export const key_out_cmd = new Command();
|
export const key_out_cmd = new Command();
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
HandlerContext,
|
|
||||||
MiddlewareHandlerContext,
|
MiddlewareHandlerContext,
|
||||||
Status,
|
|
||||||
} from "$fresh/server.ts";
|
} from "$fresh/server.ts";
|
||||||
import { getCookies } from "http/cookie.ts";
|
import { getCookies } from "http/cookie.ts";
|
||||||
import { verify } from "djwt";
|
import { verify } from "djwt";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Command } from "https://deno.land/x/cliffy@v0.25.6/mod.ts";
|
import { Command } from "https://deno.land/x/cliffy@v0.25.6/mod.ts";
|
||||||
import { Index } from "./src/client_search.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) {
|
export async function collectDocuments(path: string, out: string) {
|
||||||
const collector = new DocCollector({ summaryOnly: true, dropContent: true });
|
const collector = new DocCollector({ summaryOnly: true, dropContent: true });
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
parse as parseYaml,
|
parse as parseYaml,
|
||||||
stringify,
|
|
||||||
} from "https://deno.land/std@0.170.0/encoding/yaml.ts";
|
} from "https://deno.land/std@0.170.0/encoding/yaml.ts";
|
||||||
|
|
||||||
function trimSubstring(str: string, start: number, end: number) {
|
function trimSubstring(str: string, start: number, end: number) {
|
||||||
|
Loading…
Reference in New Issue
Block a user