Skip to content

Commit a1807a1

Browse files
committed
Add language elements
# Conflicts: # src/resources/editor/tools/vs-code.mjs # src/resources/editor/tools/yaml/web-worker.js # src/resources/editor/tools/yaml/yaml-intelligence-resources.json
1 parent ab08696 commit a1807a1

File tree

7 files changed

+17
-2
lines changed

7 files changed

+17
-2
lines changed

src/config/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ export const kRenderDefaultsKeys = [
158158
// language fields
159159
export const kTocTitleDocument = "toc-title-document";
160160
export const kTocTitleWebsite = "toc-title-website";
161+
export const kRelatedFormatsTitle = "related-formats-title";
162+
export const kRelatedNotebooksTitle = "related-notebooks-title";
161163
export const kCalloutTipCaption = "callout-tip-caption";
162164
export const kCalloutNoteCaption = "callout-note-caption";
163165
export const kCalloutWarningCaption = "callout-warning-caption";
@@ -253,6 +255,8 @@ export const kListingPageNoMatches = "listing-page-no-matches";
253255
export const kLanguageDefaultsKeys = [
254256
kTocTitleDocument,
255257
kTocTitleWebsite,
258+
kRelatedFormatsTitle,
259+
kRelatedNotebooksTitle,
256260
kCalloutTipCaption,
257261
kCalloutNoteCaption,
258262
kCalloutWarningCaption,

src/config/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ import {
137137
kPdfEngineOpts,
138138
kPreferHtml,
139139
kReferenceLocation,
140+
kRelatedFormatsTitle,
141+
kRelatedNotebooksTitle,
140142
kRepoActionLinksEdit,
141143
kRepoActionLinksIssue,
142144
kRepoActionLinksSource,
@@ -492,6 +494,8 @@ export interface PdfEngine {
492494
export interface FormatLanguage {
493495
[kTocTitleDocument]?: string;
494496
[kTocTitleWebsite]?: string;
497+
[kRelatedFormatsTitle]?: string;
498+
[kRelatedNotebooksTitle]?: string;
495499
[kCalloutTipCaption]?: string;
496500
[kCalloutNoteCaption]?: string;
497501
[kCalloutWarningCaption]?: string;

src/core/jupyter/jupyter-embed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import {
4040
includesForJupyterWidgetDependencies,
4141
} from "./widgets.ts";
4242
import { globalTempContext } from "../temp.ts";
43-
import { isAbsolute } from "https://deno.land/[email protected]/path/win32.ts";
43+
import { isAbsolute } from "path/mod.ts";
4444

4545
export interface JupyterNotebookAddress {
4646
path: string;

src/format/html/format-html-bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import {
6666
import { kTemplatePartials } from "../../command/render/template.ts";
6767
import { TempContext } from "../../core/temp-types.ts";
6868
import { isHtmlOutput } from "../../config/format.ts";
69-
import { basename } from "https://deno.land/[email protected]/path/win32.ts";
69+
import { basename } from "path/mod.ts";
7070

7171
export function formatPageLayout(format: Format) {
7272
return format.metadata[kPageLayout] as string || kPageLayoutArticle;

src/resources/language/_language.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
toc-title-document: "Table of contents"
22
toc-title-website: "On this page"
33

4+
related-formats-title: "Alternate Formats"
5+
related-notebooks-title: "Notebooks"
6+
47
section-title-abstract: "Abstract"
58
section-title-appendices: "Appendices"
69
section-title-footnotes: "Footnotes"

src/resources/schema/definitions.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@
10981098
properties:
10991099
toc-title-document: string
11001100
toc-title-website: string
1101+
related-formats-title: string
1102+
related-notebooks-title: string
11011103
callout-tip-caption: string
11021104
callout-note-caption: string
11031105
callout-warning-caption: string

src/resources/types/schema-types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ attempt to be automatically translated. */;
599599
export type FormatLanguage = {
600600
"toc-title-document"?: string;
601601
"toc-title-website"?: string;
602+
"related-formats-title"?: string;
603+
"related-notebooks-title"?: string;
602604
"callout-tip-caption"?: string;
603605
"callout-note-caption"?: string;
604606
"callout-warning-caption"?: string;

0 commit comments

Comments
 (0)