This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Stencila components addon): Addon for adding Stencila Web Compon…
…ents for document nodes
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Stencila Web Components addon | ||
|
||
Adds Stencila's [Web Components](https://github.com/stencila/designa/tree/master/packages/components) to provide interactivity to certain types of document nodes. | ||
|
||
Currently the following node types have Web Components: | ||
|
||
| Node type | Custom element | | ||
| ---------------- | ---------------------------- | | ||
| `CodeChunk` | `<stencila-code-chunk>` | | ||
| `CodeExpression` | `<stencila-code-expression>` | | ||
|
||
## Notes | ||
|
||
- We anticipate that more components will be added over time, for other document nodes, to provide greater interactivity in documents. | ||
|
||
- Theme authors should be able to override the styles of the web components as part of their theme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@stencila/components/dist/stencila-components/stencila-components' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import '@stencila/components/dist/stencila-components/stencila-components.css'; |