Add extended markdown notebook renderer sample

This demonstrates how one notebook renderer can extend another one
This commit is contained in:
Matt Bierner
2022-06-27 17:06:11 -07:00
parent adde897872
commit 30e22b38ce
13 changed files with 4788 additions and 2 deletions

View File

@ -4,7 +4,7 @@
* @typedef {Object} Sample
* @property {string} description - A readable name for the sample
* @property {string} path - Path to the sample's root
* @property {string | null} guide - Link to the guide on https://code.visualstudio.com
* @property {string | null} guide - Link to the guide on
* @property {string[]} apis - Listing of VS Code API that is being illustrated. For example, "TextDocumentContentProvider"
* @property {string[]} contributions - Listing of Contribution Points that are being used. For example,
* @property {boolean} [excludeFromReadme] - Don't generate a readme entry for this extension
@ -246,6 +246,20 @@ const samples = [
apis: [],
contributions: []
},
{
description: 'notebook-renderer-sample',
path: 'notebook-renderer-sample',
guide: "/api/extension-guides/notebook#notebook-renderer",
apis: [],
contributions: ["notebookRenderer"]
},
{
description: 'notebook-extend-markdown-renderer-sample',
path: 'notebook-extend-markdown-renderer-sample',
guide: "/api/extension-guides/notebook#notebook-renderer",
apis: [],
contributions: ["notebookRenderer"]
},
{ description: 'configuration-sample', excludeFromReadme: true, path: 'configuration-sample', guide: null, apis: [], contributions: [] },
{ description: 'contentprovider-sample', excludeFromReadme: true, path: 'contentprovider-sample', guide: null, apis: [], contributions: [] },
{ description: 'nodefs-provider-sample', excludeFromReadme: true, path: 'nodefs-provider-sample', guide: null, apis: [], contributions: [] },
@ -258,7 +272,6 @@ const samples = [
{ description: 'helloworld-test-sample', excludeFromReadme: true, path: 'helloworld-test-sample', guide: null, apis: [], contributions: [] },
{ description: 'helloworld-web-sample', excludeFromReadme: true, path: 'helloworld-web-sample', guide: null, apis: [], contributions: [] },
{ description: 'inline-completions', excludeFromReadme: true, path: 'inline-completions', guide: null, apis: [], contributions: [] },
{ description: 'notebook-renderer-sample', excludeFromReadme: true, path: 'notebook-renderer-sample', guide: null, apis: [], contributions: [] },
{ description: 'notebook-renderer-react-sample', excludeFromReadme: true, path: 'notebook-renderer-react-sample', guide: null, apis: [], contributions: [] },
{ description: 'proposed-api-sample', excludeFromReadme: true, path: 'proposed-api-sample', guide: null, apis: [], contributions: [] },
{ description: 'virtual-document-sample', excludeFromReadme: true, path: 'virtual-document-sample', guide: null, apis: [], contributions: [] },