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

WIP - tabset #34

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"devDependencies": {
"@asciidoctor/core": "~2.2",
"@asciidoctor/tabs": "^1.0.0-beta.5",
"autoprefixer": "~9.7",
"browser-pack-flat": "~3.4",
"browserify": "~16.5",
Expand Down
54 changes: 54 additions & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -393,3 +393,57 @@ ____
== Fin

That's all, folks!

[tabs]
======
Hardhat::
+
====

Hardhat is a popular way to deploy and verify your smart contracts onto Ethereum, and can also be used to deploy and verify your smart contracts on SKALE.

[source,javascript]
----
require("@nomicfoundation/hardhat-toolbox");
----


====

Truffle::
+
====

Truffle is a popular way

[source,javascript]
----
let skale = "[YOUR_SKALE_CHAIN_ENDPOINT]";

----


====

Node.js::
+
====

Node.js

[source,javascript]
----
const Web3 = require('web3');
----

====

Remix::
+
====

Smart contracts

====

======
3 changes: 3 additions & 0 deletions preview-src/ui-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,6 @@ page:
- content: Some Code
url: '/xyz/5.2/index.html#some-code'
urlType: internal
asciidoc:
extensions:
- '@asciidoctor/tabs'
1 change: 1 addition & 0 deletions src/css/vendor/tabs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "@asciidoctor/tabs"
1 change: 1 addition & 0 deletions src/js/vendor/tabs.bundle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('@asciidoctor/tabs')
3 changes: 2 additions & 1 deletion src/partials/footer-scripts.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<script src="{{{uiRootPath}}}/js/site.js"></script>
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
1 change: 1 addition & 0 deletions src/partials/head-styles.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">
{{#if env.ALGOLIA_API_KEY}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.js"></script>
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
asciidoctor-opal-runtime "0.3.3"
unxhr "1.0.1"

"@asciidoctor/tabs@^1.0.0-beta.5":
version "1.0.0-beta.5"
resolved "https://registry.yarnpkg.com/@asciidoctor/tabs/-/tabs-1.0.0-beta.5.tgz#9acb1ddcf355f7e6fe17dcb19af06994f5453fe8"
integrity sha512-DwtBO2BfqTyCrbP019c2AWlF+DvK5Q59mEEaAkDp9pdaFLeAyzDc1ZR4D5IYUGL3i9Ms9gCpeHDX+Sp6zNjb8Q==

"@babel/code-frame@^7.0.0":
version "7.12.13"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658"
Expand Down