-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix formatting of copy button, remove console log, reorder basic list (…
…#463) Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
- Loading branch information
1 parent
a4a9cda
commit 2aaa9cf
Showing
6 changed files
with
200 additions
and
125 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @title Hello World | ||
* @difficulty beginner | ||
* @tags cli, deploy, web | ||
* @run <url> | ||
* @resource {https://docs.deno.com/runtime/manual/getting_started/installation} Deno: Installation | ||
* @resource {https://docs.deno.com/runtime/manual/getting_started/setup_your_environment} Manual: Set up your environment | ||
* @group Basics | ||
* @sortOrder 0 | ||
*/ | ||
|
||
// The one and only line in this program will print "Hello, World!" to the | ||
// console. | ||
console.log("Hello, World!"); | ||
|
||
// Deno programs can either be written in JavaScript or TypeScript, or a mixture | ||
// of both. All code in these examples is written in TypeScript, but all the | ||
// examples also work in JavaScript. |
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 |
---|---|---|
@@ -1,27 +1,38 @@ | ||
export default function Sidebar({ examplesList }) { | ||
|
||
const listElements = examplesList.map((example) => { | ||
return ( | ||
<li key={example.id} className="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"> | ||
<a href={"/" + example.id} className="menu__link menu__link--active" aria-current="page" >{example.label}</a> | ||
</li> | ||
); | ||
}); | ||
|
||
const listElements = examplesList.map((example) => { | ||
return ( | ||
<aside className="theme-doc-sidebar-container docSidebarContainer_node_modules-@docusaurus-theme-classNameic-lib-theme-DocRoot-Layout-Sidebar-styles-module"> | ||
<div className="sidebarViewport_node_modules-@docusaurus-theme-classNameic-lib-theme-DocRoot-Layout-Sidebar-styles-module"> | ||
<div className="sidebar_node_modules-@docusaurus-theme-classNameic-lib-theme-DocSidebar-Desktop-styles-module"> | ||
<nav aria-label="Docs sidebar" className="menu thin-scrollbar menu_node_modules-@docusaurus-theme-classNameic-lib-theme-DocSidebar-Desktop-Content-styles-module"> | ||
<ul className="theme-doc-sidebar-menu menu__list"> | ||
<li className="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 section-header"> | ||
<div>Getting Started</div> | ||
</li> | ||
{listElements} | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</aside>); | ||
<li | ||
key={example.id} | ||
className="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item" | ||
> | ||
<a | ||
href={"/" + example.id} | ||
className="menu__link menu__link--active" | ||
aria-current="page" | ||
> | ||
{example.label} | ||
</a> | ||
</li> | ||
); | ||
}); | ||
|
||
return ( | ||
<aside className="theme-doc-sidebar-container docSidebarContainer_node_modules-@docusaurus-theme-classNameic-lib-theme-DocRoot-Layout-Sidebar-styles-module"> | ||
<div className="sidebarViewport_node_modules-@docusaurus-theme-classNameic-lib-theme-DocRoot-Layout-Sidebar-styles-module"> | ||
<div className="sidebar_node_modules-@docusaurus-theme-classNameic-lib-theme-DocSidebar-Desktop-styles-module"> | ||
<nav | ||
aria-label="Docs sidebar" | ||
className="menu thin-scrollbar menu_node_modules-@docusaurus-theme-classNameic-lib-theme-DocSidebar-Desktop-Content-styles-module" | ||
> | ||
<ul className="theme-doc-sidebar-menu menu__list"> | ||
<li className="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 section-header"> | ||
<div>Getting Started</div> | ||
</li> | ||
{listElements} | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</aside> | ||
); | ||
} |
Oops, something went wrong.