Skip to content

Commit

Permalink
Merge pull request #93 from ripple/redirect-oracle-docs
Browse files Browse the repository at this point in the history
add redirects to xrpl.org
  • Loading branch information
oeggert authored Aug 29, 2024
2 parents d52fbcb + e5efd9b commit b70a502
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 54 deletions.
6 changes: 0 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ To learn more about the consensus process and the workflow for features to go fr
- [Documentation](xls-33d-multi-purpose-tokens/multi-purpose-tokens.md)
- [Reference](xls-33d-multi-purpose-tokens/reference/mpt-reference.md)

### Price Oracles

- [XLS-47d Proposal](https://github.com/XRPLF/XRPL-Standards/blob/master/XLS-47d-PriceOracles/README.md)
- [Documentation](xls-47d-price-oracles/price-oracles.md)

### Batch Transactions

- [XLS-56d Batch Transactions](xls-56d-batch-transactions/index.md)
- [Reference](xls-56d-batch-transactions/reference/reference.md)

31 changes: 2 additions & 29 deletions index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,7 @@ export default LandingContainer;
</Jumbotron>

<Box p={{ _: "8px", sm: "12px", md: "16px", lg: "24px" }}>
<FlexSection justifyContent="space-around" flexWrap="wrap">
<WideTile
style={{ height: "284px"}}
to="docs/xls-47d-price-oracles/price-oracles.md"
header="Price Oracles"
color="#141A1F"
textAlign="left"
disableArrow
>
<TileText>
Price Oracles enable the XRP Ledger to natively
gather real-world data and store it on-chain,
enabling dApps and native DeFi protocols to
access standardized pricing feeds.
</TileText>
<div style={{ bottom: "36px", position: "absolute"}}>
<Button style={{
padding: "8px 16px",
borderRadius: "20px",
fontSize: "14px",
lineHeight: "20px",
color: "#FFFFFF",
background: "#005BCC",
}}>
Go to Docs
</Button>
</div>
</WideTile>
<FlexSection justifyContent="space-around" flexWrap="wrap">
<WideTile
style={{ height: "284px"}}
to="docs/xls-33d-multi-purpose-tokens/index.md"
Expand Down Expand Up @@ -116,4 +89,4 @@ export default LandingContainer;
</div>
</WideTile>
</FlexSection>
</Box>
</Box>
19 changes: 19 additions & 0 deletions redirects.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# priceoracle docs
'/docs/xls-47d-price-oracles/price-oracles/':
to: 'https://xrpl.org/docs/concepts/xrpl-sidechains/price-oracles'
type: 301
'/docs/xls-47d-price-oracles/ledger-object-types/oracle/':
to: 'https://xrpl.org/docs/references/protocol/ledger-data/ledger-entry-types/oracle'
type: 301
'/docs/xls-47d-price-oracles/public-api-methods/ledger_entry/':
to: 'https://xrpl.org/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger_entry#get-oracle-object'
type: 301
'/docs/xls-47d-price-oracles/public-api-methods/get_aggregate_price/':
to: 'https://xrpl.org/docs/references/http-websocket-apis/public-api-methods/path-and-order-book-methods/get_aggregate_price'
type: 301
'/docs/xls-47d-price-oracles/transaction-types/oracledelete/':
to: 'https://xrpl.org/docs/references/protocol/transactions/types/oracledelete'
type: 301
'/docs/xls-47d-price-oracles/transaction-types/oracleset/':
to: 'https://xrpl.org/docs/references/protocol/transactions/types/oracleset'

# crosschain dapps
'/docs/cross-chain-dapps/cross-chain-dapps/':
to: 'https://docs.xrplevm.org/'
Expand Down
19 changes: 0 additions & 19 deletions sidebars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,6 @@ opensource:
pages:
- page: docs/xls-33d-multi-purpose-tokens/reference/mpt_holders.md
- page: docs/xls-33d-multi-purpose-tokens/reference/ledger-entry.md
- group: Price Oracles
page: docs/xls-47d-price-oracles/price-oracles.md
expanded: false
pages:
- group: Ledger Entry Types
expanded: false
pages:
- page: docs/xls-47d-price-oracles/ledger-object-types/oracle.md
- group: Public API Methods
expanded: false
pages:
- page: docs/xls-47d-price-oracles/public-api-methods/ledger_entry.md
- page: docs/xls-47d-price-oracles/public-api-methods/get_aggregate_price.md
- group: Transaction Types
expanded: false
pages:
- page: docs/xls-47d-price-oracles/transaction-types/oracledelete.md
- page: docs/xls-47d-price-oracles/transaction-types/oracleset.md
- group: Batch Transactions
page: docs/xls-56d-batch-transactions/index.md
expanded: false
Expand All @@ -62,4 +44,3 @@ opensource:
pages:
- page: docs/xls-56d-batch-transactions/reference/batch.md
- page: docs/xls-56d-batch-transactions/reference/common-fields.md

0 comments on commit b70a502

Please sign in to comment.