Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow users to open sway playground for full code examples #243

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand All @@ -48,4 +49,5 @@ node_modules
notes

# Generated files
src/generated/
src/generated/
dist
1 change: 1 addition & 0 deletions docs/guides/docs/quickstart/building-a-smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ action={{
comment="all"
commentType="/*"
lang="sway"
showOpenPlayground={true}
/>

### Build the Contract
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"hast-util-to-text": "^3.1.2",
"hastscript": "^7.2.0",
"markdownlint-cli": "^0.37.0",
"mdast-util-to-hast": "^12.3.0",
"next": "^13.5.6",
"next-contentlayer": "^0.3.4",
"node-html-markdown": "^1.3.0",
Expand All @@ -78,14 +79,14 @@
"react-dom": "^18.2.0",
"react-hook-form": "^7.46.1",
"react-syntax-highlighter": "^15.5.0",
"rehype-pretty-code": "^0.10.0",
"rehype-pretty-code": "^0.13.1",
"remark": "^14.0.3",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-mdx": "^2.3.0",
"remark-parse": "^10.0.2",
"remark-slug": "^7.0.1",
"shiki": "^0.14.4",
"shiki": "^1.3.0",
"strip-indent": "^4.0.0",
"swr": "^2.2.2",
"toml": "^3.0.0",
Expand Down
Loading
Loading