You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
To add a new page, the math example can be followed.
Add a new TSX component app-markdown (see app-math source as example). The render content does not matter as it will be parsed at build time aka will be overwrite later with the related markdown file.
Create the documentation in markdown. The math example can be followed.
Note that there is no live reload to parse the markdown to JSX. Restart npm run start to populate the changes.
Particularity
Note that the particularity of this web component is that it expose two peerDependencies. It renders code to our web component @deckdeckgo/highlight-code and @deckdeckgo/lazy-img, these have to be installed too in the app which would use this new @deckdeckgo/markdown component. Therefore this have to be documented too.
Get started
git clone https://github.com/deckgo/deckdeckgo
cd deckdeckgo/docs
npm i
npm run start
Get Started
If you need help to get started with this feature, I'll be happy to help.
Documentation
A new component markdown has been developed and published.
The goal of this issue is to document it in our documentation for developers.
Route
This component is not yet documented therefore, it should be in a new route:
https://docs.deckdeckgo.com/components/markdown
What do do
To add a new page, the math example can be followed.
Add a new TSX component
app-markdown
(see app-math source as example). Therender
content does not matter as it will be parsed at build time aka will be overwrite later with the related markdown file.Add a new route in app-root
Create the documentation in markdown. The math example can be followed.
Note that there is no live reload to parse the markdown to JSX. Restart
npm run start
to populate the changes.Particularity
Note that the particularity of this web component is that it expose two
peerDependencies
. It renders code to our web component@deckdeckgo/highlight-code
and@deckdeckgo/lazy-img
, these have to be installed too in the app which would use this new@deckdeckgo/markdown
component. Therefore this have to be documented too.Get started
Get Started
If you need help to get started with this feature, I'll be happy to help.
Ping me: @peterpeterparker | twitter | email | slack
The text was updated successfully, but these errors were encountered: