diff --git a/.gitignore b/.gitignore index 8f464b6da..35c4ebb08 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,10 @@ packages/lit-dev-content/site/fonts/manrope packages/lit-dev-content/temp packages/lit-dev-content/samples/js packages/lit-dev-content/src/public-vars.ts +# The unversioned docs are generated by: +# +# `npm run build:unversioned-docs -w lit-dev-content` +packages/lit-dev-content/site/docs/unversioned packages/lit-dev-api/api-data/*/repo/ packages/lit-dev-api/api-data/*/INSTALLED diff --git a/packages/lit-dev-api/api-data/lit-2/pages.json b/packages/lit-dev-api/api-data/lit-2/pages.json index e4c34714b..81406b2b1 100644 --- a/packages/lit-dev-api/api-data/lit-2/pages.json +++ b/packages/lit-dev-api/api-data/lit-2/pages.json @@ -12,7 +12,7 @@ "name": "LitElement", "comment": { "shortText": "Base element class that manages element properties and attributes, and\nrenders a lit-html template.", - "text": "To define a component, subclass `LitElement` and implement a\n`render` method to provide the component's template. Define properties\nusing the [`properties`](/docs/api/LitElement/#LitElement.properties) property or the\n[`property`](/docs/api/decorators/#property) decorator.\n" + "text": "To define a component, subclass `LitElement` and implement a\n`render` method to provide the component's template. Define properties\nusing the [`properties`](/docs/v2/api/LitElement/#LitElement.properties) property or the\n[`property`](/docs/v2/api/decorators/#property) decorator.\n" }, "sources": [ { @@ -949,7 +949,7 @@ "tag": "@nocollapse" } ], - "shortText": "Creates a property accessor on the element prototype if one does not exist\nand stores a [`PropertyDeclaration`](/docs/api/ReactiveElement/#PropertyDeclaration) for the property with the\ngiven options. The property setter calls the property's `hasChanged`\nproperty option or uses a strict identity check to determine whether or not\nto request an update.", + "shortText": "Creates a property accessor on the element prototype if one does not exist\nand stores a [`PropertyDeclaration`](/docs/v2/api/ReactiveElement/#PropertyDeclaration) for the property with the\ngiven options. The property setter calls the property's `hasChanged`\nproperty option or uses a strict identity check to determine whether or not\nto request an update.", "text": "This method may be overridden to customize properties; however,\nwhen doing so, it's important to call `super.createProperty` to ensure\nthe property is setup correctly. This method calls\n`getPropertyDescriptor` internally to get a descriptor to install.\nTo customize what properties do when they are get or set, override\n`getPropertyDescriptor`. To customize the options for a property,\nimplement `createProperty` like this:\n```ts\nstatic createProperty(name, options) {\n options = Object.assign(options, {myOption: true});\n super.createProperty(name, options);\n}\n```\n" }, "sources": [ @@ -1222,7 +1222,7 @@ } ], "shortText": "Returns the property options associated with the given property.\nThese options are defined with a `PropertyDeclaration` via the `properties`\nobject or the `@property` decorator and are registered in\n`createProperty(...)`.", - "text": "Note, this method should be considered \"final\" and not overridden. To\ncustomize the options for a given property, override\n[`createProperty`](/docs/api/LitElement/#LitElement.createProperty).\n" + "text": "Note, this method should be considered \"final\" and not overridden. To\ncustomize the options for a given property, override\n[`createProperty`](/docs/v2/api/LitElement/#LitElement.createProperty).\n" }, "sources": [ { @@ -1760,7 +1760,7 @@ "tag": "@nocollapse" } ], - "shortText": "Array of styles to apply to the element. The styles should be defined\nusing the [`css`](/docs/api/styles/#css) tag function, via constructible stylesheets, or\nimported from native CSS module scripts.", + "shortText": "Array of styles to apply to the element. The styles should be defined\nusing the [`css`](/docs/v2/api/styles/#css) tag function, via constructible stylesheets, or\nimported from native CSS module scripts.", "text": "Note on Content Security Policy:\nElement styles are implemented with `