Contains necessary data for generating Lit.dev API docs.
- Update the
commit
field with the desired commit hash, withinpackages/lit-dev-tools-cjs/src/api-docs/configs/lit-2.ts
. - Execute
npm run build --workspace lit-dev-api
.
Updated API documentation will be reflected in the pages.json
and
symbols.json
files.
lit-html-1
and lit-element-2
contain archived documentation and are no
longer automatically updated. To update the archived documentation locally,
check out a version of Lit.dev prior to Pull Request
#1087, and follow the steps listed
above.
For lit-html-1
and lit-element-2
, the data from pages.json
and
symbols.json
are used with the api-v1.html
template to generate the
resulting HTML. Otherwise modify api.html
for lit-2
.
Hint: Use {{ node | dump }}
to debug the structure of the object in
the template.