diff --git a/src/command/publish/account.ts b/src/command/publish/account.ts index e230fce916..c66c116b02 100644 --- a/src/command/publish/account.ts +++ b/src/command/publish/account.ts @@ -7,7 +7,6 @@ import { info } from "log/mod.ts"; import { Checkbox, - Confirm, prompt, Select, SelectOption, diff --git a/src/command/render/latexmk/texlive.ts b/src/command/render/latexmk/texlive.ts index 369b28fbe2..1033ad8003 100644 --- a/src/command/render/latexmk/texlive.ts +++ b/src/command/render/latexmk/texlive.ts @@ -3,7 +3,6 @@ * * Copyright (C) 2020-2022 Posit Software, PBC */ -import { info } from "log/mod.ts"; import * as ld from "../../../core/lodash.ts"; import { execProcess } from "../../../core/process.ts"; diff --git a/src/command/render/pandoc.ts b/src/command/render/pandoc.ts index 281b76cfc7..6e1a7124fc 100644 --- a/src/command/render/pandoc.ts +++ b/src/command/render/pandoc.ts @@ -8,7 +8,7 @@ import { basename, dirname, isAbsolute, join } from "path/mod.ts"; import { info } from "log/mod.ts"; -import { existsSync, expandGlobSync, moveSync } from "fs/mod.ts"; +import { existsSync, expandGlobSync } from "fs/mod.ts"; import { stringify } from "yaml/mod.ts"; import { encode as base64Encode } from "encoding/base64.ts"; diff --git a/src/command/render/render-files.ts b/src/command/render/render-files.ts index ab82541c9f..dd2bdcc346 100644 --- a/src/command/render/render-files.ts +++ b/src/command/render/render-files.ts @@ -64,7 +64,7 @@ import { } from "./types.ts"; import { error, info } from "log/mod.ts"; import * as ld from "../../core/lodash.ts"; -import { basename, dirname, isAbsolute, join, relative } from "path/mod.ts"; +import { basename, dirname, join, relative } from "path/mod.ts"; import { Format } from "../../config/types.ts"; import { figuresDir, inputFilesDir } from "../../core/render.ts"; import { diff --git a/src/core/jupyter/jupyter-embed.ts b/src/core/jupyter/jupyter-embed.ts index cd6acc1910..ab1ca694ba 100644 --- a/src/core/jupyter/jupyter-embed.ts +++ b/src/core/jupyter/jupyter-embed.ts @@ -57,7 +57,6 @@ import { InternalError } from "../lib/error.ts"; import { ipynbFormat } from "../../format/ipynb/format-ipynb.ts"; import { kQmdIPynb, - kRenderedIPynb, NotebookMetadata, } from "../../render/notebook/notebook-types.ts"; import { ProjectContext } from "../../project/types.ts"; diff --git a/src/project/types/website/website-navigation.ts b/src/project/types/website/website-navigation.ts index 9d1c38e03f..227a4e4cca 100644 --- a/src/project/types/website/website-navigation.ts +++ b/src/project/types/website/website-navigation.ts @@ -54,7 +54,7 @@ import { ProjectConfig, ProjectContext, } from "../../types.ts"; -import { projectOffset, projectOutputDir } from "../../project-shared.ts"; +import { projectOutputDir } from "../../project-shared.ts"; import { resolveInputTarget } from "../../project-index.ts"; import { kCollapseBelow, @@ -725,9 +725,7 @@ function repoActionLinks( language: FormatLanguage, issueUrl?: string, ): Array<{ text: string; url: string; icon?: string }> { - const firstIcon = repoInfo.baseUrl.indexOf("github.com") !== -1 - ? "github" - : "git"; + const firstIcon = repoUrlIcon(repoInfo.baseUrl); return actions.map((action, i) => { switch (action) { case "edit": diff --git a/src/render/notebook/notebook-contributor-html.ts b/src/render/notebook/notebook-contributor-html.ts index 83701d0aed..33f5b08d25 100644 --- a/src/render/notebook/notebook-contributor-html.ts +++ b/src/render/notebook/notebook-contributor-html.ts @@ -4,7 +4,7 @@ * Copyright (C) 2020-2022 Posit Software, PBC */ -import { renderFile, renderFiles } from "../../command/render/render-files.ts"; +import { renderFile } from "../../command/render/render-files.ts"; import { ExecutedFile, RenderedFile, diff --git a/src/render/notebook/notebook-contributor-ipynb.ts b/src/render/notebook/notebook-contributor-ipynb.ts index 4b0597e04a..7afa643afe 100644 --- a/src/render/notebook/notebook-contributor-ipynb.ts +++ b/src/render/notebook/notebook-contributor-ipynb.ts @@ -4,7 +4,7 @@ * Copyright (C) 2020-2022 Posit Software, PBC */ -import { renderFile, renderFiles } from "../../command/render/render-files.ts"; +import { renderFile } from "../../command/render/render-files.ts"; import { ExecutedFile, RenderedFile, diff --git a/src/render/notebook/notebook-types.ts b/src/render/notebook/notebook-types.ts index 2992327056..a79dec236f 100644 --- a/src/render/notebook/notebook-types.ts +++ b/src/render/notebook/notebook-types.ts @@ -6,7 +6,6 @@ import { ExecutedFile, - RenderedFile, RenderResourceFiles, RenderServices, } from "../../command/render/types.ts";