Skip to content

Commit

Permalink
Make sidebars default to collapsed (Consensys#108)
Browse files Browse the repository at this point in the history
* fix(favicon not in line with linea.build): changed favicon in line with linea.build

* perf(sidebar defaults to collapsed): made sidebars collapsed by default

* perf(sidebar defaults to collapsed): made sidebars collapsed by default

* fix(removed links to categories that no longer exist): removed links to categories that don't exist

* fix(attempt to fix twitter link): attempting to fix Twitter link to pass linter

* fix: added www to all twitter urls

* fix(twitter redirects failing out): added escapes to .md files

* fix(removing linter escape from front matter): removing linter escape, it broke one article

* fix(fixing front matter): removed linter escape

* fix(fixing front matter): escaping linter removed

* Update index.mdx

was missing space between for and the twitter link

---------

Co-authored-by: cedrabner <134417957+cedrabner@users.noreply.github.com>
  • Loading branch information
mapachurro and cedrabner authored Jun 9, 2023
1 parent 0b7a921 commit 6622fc7
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 85 deletions.
2 changes: 1 addition & 1 deletion blog/2023-04-03-learn-with-linea.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ We're excited to share the great educational content the Linea community has bee

If you're interested in adding your own material, please read our [contribution guidelines](https://github.com/ConsenSys/doc.zk-evm#linea), and create a pull request.

[Join our Discord](https://discord.com/invite/consensys) and [tag us on Twitter](https://twitter.com/lineabuild) to celebrate our community contributions!
[Join our Discord](https://discord.com/invite/consensys) and <!-- markdown-link-check-disable --> [tag us on Twitter](https://twitter.com/lineabuild) <!-- markdown-link-check-enable --> to celebrate our community contributions!
4 changes: 4 additions & 0 deletions docs/contact/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Contact us
sidebar-position: 5
---
4 changes: 4 additions & 0 deletions docs/developers/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Developers
sidebar_position: 3
---
15 changes: 8 additions & 7 deletions docs/developers/tooling/oracles/umbrella.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Umbrella Network, is a decentralized oracle service that provides blockchain pro
Umbrella offers smart contracts a broad suite of solutions, whether it is any type of price feed for specific/custom needs, high frequency pricing updates, or aggregating large volumes of data at scale. Secured by a network of decentralized community validators, Umbrella can provide any data that you need when you need it.

The following price feeds are currently available on Linea testnet:

- DAI-USDC
- USDC-USD
- ETH-USDC
Expand All @@ -20,28 +21,28 @@ The following price feeds are currently available on Linea testnet:
- UMB-USD
- ARB-USD

Umbrella can create any custom price feed for your project.
Contact us here (https://www.umb.network/contact#form).
Umbrella can create any custom price feed for your project. Contact us here (https://www.umb.network/contact#form).

## SOLUTIONS

## SOLUTIONS
At Umbrella, we are committed to providing easy-to-use solutions for using off-chain data on-chain. We understand that different projects have unique requirements. That's why we offer several ways to consume data:

### ON-CHAIN DATA

For projects needing their custom data feeds on-chain with defined parameters such as deviation triggers and heartbeat. This solution is perfect for vault tokens, volatility monitoring, TWAPs, and more. Real-time, customizable data at your fingertips.

### LAYER 2 DATA

For projects needing data secured on-chain at scale, our Layer-2 Data solution is the answer. Whether you're in the DeFi space, prediction markets, or building data-heavy Web3 solutions, we ensure your data is secure and readily available to support your applications.

### ON DEMAND DATA
For projects requiring high-frequency data. Signed off-chain data written into any smart contract on demand. This feature is ideal for high-frequency perpetual futures or spot trading platforms where timing is crucial. Access the data you need, precisely when you need it.
Planned for Q3 2023

For projects requiring high-frequency data. Signed off-chain data written into any smart contract on demand. This feature is ideal for high-frequency perpetual futures or spot trading platforms where timing is crucial. Access the data you need, precisely when you need it. Planned for Q3 2023

## TECHNICAL DOCUMENTATION

Find our technical documentation [here](https://umbrella-network.readme.io/docs).


## FOLLOW UMBRELLA NETWORK

[Discord](https://discord.com/invite/Gryaa9p4X7) | [Twitter](https://twitter.com/UmbNetwork) | [Announcements](https://t.me/umbnetannouncement) | [Website](https://www.umb.network/) | [Governance](https://gov.umb.network/)
[Discord](https://discord.com/invite/Gryaa9p4X7) | <!-- markdown-link-check-disable -->[Twitter](https://twitter.com/UmbNetwork) <!-- markdown-link-check-enable -->| [Announcements](https://t.me/umbnetannouncement) | [Website](https://www.umb.network/) | [Governance](https://gov.umb.network/)
1 change: 1 addition & 0 deletions docs/index.md → docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Overview
description: Type 2 EVM-equivalent Zero Knowledge Ethereum Virtual Machine
slug: overview
sidebar_position: 1
---

# Linea
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Reference
sidebar_position: 4
---
4 changes: 4 additions & 0 deletions docs/use-linea/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Use Linea
sidebar_position: 2
---
10 changes: 5 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ const config = {
items: [
{
label: "Use Linea",
to: "/category/use-linea",
to: "/use-linea",
},
{
label: "Build on Linea",
to: "/category/developers",
to: "/developers",
},
],
},
Expand Down Expand Up @@ -271,14 +271,14 @@ const config = {
from: "/developers/deploy-smart-contracts",
},
{
to: "/category/use-linea",
to: "/use-linea",
from: [
"/category/get-started",
"/get-started",
"/get-started/bridge-funds",
"/get-started/fund",
"/get-started/configure-metamask",
"/get-started/quickstart",
"/category/use-zkevm",
"/use-zkevm",
],
},
{
Expand Down
85 changes: 14 additions & 71 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,86 +3,29 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docSidebar: [
"index",
{
type: "category",
label: "Use Linea",
link: {
type: "generated-index",
},
items: [{ type: "autogenerated", dirName: "use-linea" }],
collapsible: false,
type: "autogenerated",
dirName: ".", // '.' means the current docs folder
},
{
type: "category",
label: "Developers",
link: {
type: "generated-index",
},
items: [{ type: "autogenerated", dirName: "developers" }],
collapsible: false,
type: "link",
label: "Get help",
href: "https://support.linea.build/",
},
{
type: "category",
label: "Reference",
link: {
type: "generated-index",
},
items: [{ type: "autogenerated", dirName: "reference" }],
collapsible: false,
type: "link",
label: "Provide feedback",
href: "https://community.linea.build/c/feedback",
},
{
type: "category",
label: "Helpful Links",
link: {
type: "generated-index",
},
items: [
"reference/linea-voyage-faq",
{
type: "link",
label: "Block explorer",
href: "https://explorer.goerli.linea.build/",
},
{
type: "link",
label: "Faucet",
href: "/developers/useful-info#faucets",
},
"reference/status",
"reference/api",
"reference/glossary",
],
type: "link",
label: "Report an issue",
href: "https://community.linea.build/c/bug-reports/",
},
{
type: "category",
label: "Contact us",
link: {
type: "generated-index",
},
items: [
{
type: "link",
label: "Get help",
href: "https://support.linea.build/",
},
{
type: "link",
label: "Provide feedback",
href: "https://community.linea.build/c/feedback",
},
{
type: "link",
label: "Report an issue",
href: "https://community.linea.build/c/bug-reports/",
},
{
type: "link",
label: "Join our Discord",
href: "https://discord.com/invite/consensys",
},
],
collapsible: false,
type: "link",
label: "Join our Discord",
href: "https://discord.com/invite/consensys",
},
],
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/HomepageCards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type CardItem = {
const CardList: CardItem[] = [
{
title: "Wallet Set Up",
link: "/category/use-linea",
link: "/use-linea",
description: (
<>
Set up and fund your wallet to start bridging, swapping, and transacting
Expand Down

0 comments on commit 6622fc7

Please sign in to comment.