Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Jul 13, 2023
1 parent b346d6e commit 2d24fb2
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/command/publish/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { info } from "log/mod.ts";
import {
Checkbox,
Confirm,
prompt,
Select,
SelectOption,
Expand Down
1 change: 0 additions & 1 deletion src/command/render/latexmk/texlive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/command/render/pandoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/command/render/render-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/core/jupyter/jupyter-embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
6 changes: 2 additions & 4 deletions src/project/types/website/website-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion src/render/notebook/notebook-contributor-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/render/notebook/notebook-contributor-ipynb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/render/notebook/notebook-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import {
ExecutedFile,
RenderedFile,
RenderResourceFiles,
RenderServices,
} from "../../command/render/types.ts";
Expand Down

0 comments on commit 2d24fb2

Please sign in to comment.