Skip to content

Commit

Permalink
Update dependencies and fix path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing committed Sep 29, 2023
1 parent a230b30 commit 42d045d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
24 changes: 13 additions & 11 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import overrideIntegration from "./src/overrideIntegration.mjs";

// https://astro.build/config
export default defineConfig({
site: "https://interledger.org",
base: "/developers",
integrations: [
overrideIntegration(),
Expand Down Expand Up @@ -86,20 +87,21 @@ export default defineConfig({
react(),
],
redirects: {
"/rfcs/0027-interledger-protocol-4/": "/rfcs/interledger-protocol",
"/rfcs/0015-ilp-addresses/": "/rfcs/ilp-addresses/",
"/rfcs/0029-stream/": "/rfcs/stream-protocol/",
"/rfcs/0027-interledger-protocol-4/":
"/developers/rfcs/interledger-protocol",
"/rfcs/0015-ilp-addresses/": "/developers/rfcs/ilp-addresses/",
"/rfcs/0029-stream/": "/developers/rfcs/stream-protocol/",
"/rfcs/0009-simple-payment-setup-protocol/":
"/rfcs/simple-payment-setup-protocol/",
"/rfcs/0030-notes-on-oer-encoding/": "/rfcs/oer-encoding/",
"/developers/rfcs/simple-payment-setup-protocol/",
"/rfcs/0030-notes-on-oer-encoding/": "/developers/rfcs/oer-encoding/",
"/rfcs/0031-dynamic-configuration-protocol/":
"/rfcs/dynamic-configuration-protocol/",
"/developers/rfcs/dynamic-configuration-protocol/",
"/rfcs/0032-peering-clearing-settlement/":
"/rfcs/peering-clearing-settling/",
"/rfcs/0038-settlement-engines/": "/rfcs/settlement-engines/",
"/rfcs/0035-ilp-over-http/": "/rfcs/ilp-over-http/",
"/rfcs/0036-spsp-pull-payments/": "/rfcs/spsp-pull-payments/",
"/rfcs/0039-stream-receipts/": "/rfcs/stream-receipts/",
"/developers/rfcs/peering-clearing-settling/",
"/rfcs/0038-settlement-engines/": "/developers/rfcs/settlement-engines/",
"/rfcs/0035-ilp-over-http/": "/developers/rfcs/ilp-over-http/",
"/rfcs/0036-spsp-pull-payments/": "/developers/rfcs/spsp-pull-payments/",
"/rfcs/0039-stream-receipts/": "/developers/rfcs/stream-receipts/",
},
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp
image: {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"name": "shaky-spectrum",
"name": "interledger-dev",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.0.2",
"@astrojs/starlight": "^0.10.1",
"@astrojs/starlight": "^0.10.2",
"@interledger/docs-design-system": "^0.0.12",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"astro": "^3.1.1",
"@types/react": "^18.2.23",
"@types/react-dom": "^18.2.8",
"astro": "^3.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^8.0.7",
"remark-gfm": "^3.0.1",
"react-markdown": "^9.0.0",
"remark-gfm": "^4.0.0",
"sharp": "^0.32.6"
}
}
10 changes: 5 additions & 5 deletions src/components/lander/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const currentYear = new Date().getFullYear();
---
<footer>
<ul>
<li><a href="https://interledger.social/@Interledger"><img src="img/lander/icon-fediverse.svg" alt="Mastadon" /></a></li>
<li><a href="https://twitter.com/interledger"><img src="img/lander/icon-twitter.svg" alt="Twitter" /></a></li>
<li><a href="https://communityinviter.com/apps/interledger/interledger-working-groups-slack"><img src="img/lander/icon-slack.svg" alt="Slack" /></a></li>
<li><a href="https://github.com/interledger"><img src="img/lander/icon-github.svg" alt="Github" /></a></li>
<li><a href="https://www.linkedin.com/company/interledger-foundation/"><img src="img/lander/icon-linkedin.svg" alt="Linkedin" /></a></li>
<li><a href="https://interledger.social/@Interledger"><img src="/developers/img/lander/icon-fediverse.svg" alt="Mastadon" /></a></li>
<li><a href="https://twitter.com/interledger"><img src="/developers/img/lander/icon-twitter.svg" alt="Twitter" /></a></li>
<li><a href="https://communityinviter.com/apps/interledger/interledger-working-groups-slack"><img src="/developers/img/lander/icon-slack.svg" alt="Slack" /></a></li>
<li><a href="https://github.com/interledger"><img src="/developers/img/lander/icon-github.svg" alt="Github" /></a></li>
<li><a href="https://www.linkedin.com/company/interledger-foundation/"><img src="/developers/img/lander/icon-linkedin.svg" alt="Linkedin" /></a></li>
</ul>
<p>&copy; 2019 - {currentYear}, Interledger Foundation</p>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ Interledger is a network of computers that enables the sending of value across i
- Router – Applies currency exchange and forwards packets of value. This is an intermediary node between the sender and the receiver.
- Receiver – Receives the value.

![ILP nodes](/img/ilp-nodes-2.png)
![ILP nodes](/developers/img/ilp-nodes-2.png)

**Note:** The terms *Router* and *Connector* are used interchangeably throughout the documentation.

## How does Interledger work?

At the core of Interledger is the [Interledger Protocol (ILPv4)](https://interledger.org/rfcs/0027-interledger-protocol-4/), which is a set of rules that define how nodes should send value over the Interledger network. ILPv4 is a *request/response* protocol, where requests and responses are ILPv4 packets. Typically, a single aggregate payment from source to destination is split into multiple ILP packets. Each ILP packet contains transaction information, which is private to the nodes participating in the transaction. ILPv4 has three packet types - *Prepare**Fulfill*, and *Reject*.

![ILP Packets](/img/ilp-packets.png)
![ILP Packets](/developers/img/ilp-packets.png)

The sender constructs and sends a Prepare packet as a request to the connecting router. The routers forward the packet until it reaches the receiver. The receiver then accepts or rejects the packet by sending a Fulfill packet or a Reject packet as the response. The routers relay the response from the receiver back to the sender. When the sender receives a Fulfill packet, it knows that the packet was successfully delivered to the receiver. The sender then continues to send the remaining Prepare packets until the value is fully transferred.

Expand Down
6 changes: 3 additions & 3 deletions src/pages/hacktoberfest.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Section from '../components/lander/Section.astro';
<Section class="padding--large hero align--center">
<header>
<h1>Hacktoberfest with Interledger</h1>
<img src="img/lander/hacktober10.svg" alt="Hacktoberfest10" class="logo--hacktober" />
<img src="/developers/img/lander/hacktober10.svg" alt="Hacktoberfest10" class="logo--hacktober" />
<div class="vision">
<p>Our vision is a world where sending payments is as easy as sending an email. This means transactions are not limited to particular banks, mobile money providers, or borders.</p>
<p>Because we strive to be open, inclusive, and innovative in everything we do, we have provided a neutral home for the <a href="https://interledger.org/rfcs/0027-interledger-protocol-4/">Interledger Protocol</a> and the <a href="https://openpayments.guide/">Open Payments</a> and <a href="https://webmonetization.org/">Web Monetization</a> standards.</p>
Expand All @@ -32,7 +32,7 @@ import Section from '../components/lander/Section.astro';
</p>
</div>
<div class="intro-grid__img">
<img src="img/lander/hacktober-laptop.svg" alt="Illustration of a laptop with the Hacktoberfest10 logo on the screen" />
<img src="/developers/img/lander/hacktober-laptop.svg" alt="Illustration of a laptop with the Hacktoberfest10 logo on the screen" />
</div>
</div>
</Section>
Expand Down Expand Up @@ -74,7 +74,7 @@ import Section from '../components/lander/Section.astro';
<Section class="padding--large">
<div class="two-col">
<div class="two-col__img">
<img src="img/lander/mac.svg" alt="Illustration of a desktop displaying the code for spinning up a XRP settlement engine" />
<img src="/developers/img/lander/mac.svg" alt="Illustration of a desktop displaying the code for spinning up a XRP settlement engine" />
</div>
<div>
<h2>We're Here to Help You</h2>
Expand Down

0 comments on commit 42d045d

Please sign in to comment.