Skip to content

OBSIDIAN_EXTERNAL_TYPE_LINKS

The CodeMirror and Moment type names an Obsidian package’s API names, mapped to the page their references link to.

Pass it as a site’s externalTypeLinks, or spread it into a larger map:

export const DOCS_SITE_CONFIG: DocsSiteConfig = {
externalTypeLinks: OBSIDIAN_EXTERNAL_TYPE_LINKS,
repo: 'my-package',
title: 'My Package'
};

Import:

import { OBSIDIAN_EXTERNAL_TYPE_LINKS } from '@mnaoumov/obsidian-dev-toolkit/docs-site/obsidian-external-type-links';

Signature:

const OBSIDIAN_EXTERNAL_TYPE_LINKS: ReadonlyMap<string, string>

Type: ReadonlyMap<string, string>