From c1f5035899a1b6044cf9d50ea8de1df050164b34 Mon Sep 17 00:00:00 2001 From: bobinstein Date: Thu, 5 Dec 2024 13:29:49 -0500 Subject: [PATCH] chore: metadata update --- src/app/learn/concepts/manifests/page.mdx | 87 +++++++++++++---------- 1 file changed, 49 insertions(+), 38 deletions(-) diff --git a/src/app/learn/concepts/manifests/page.mdx b/src/app/learn/concepts/manifests/page.mdx index 5d8294e2..f026a20d 100644 --- a/src/app/learn/concepts/manifests/page.mdx +++ b/src/app/learn/concepts/manifests/page.mdx @@ -1,10 +1,11 @@ -import {HeroPattern} from "@/components/HeroPattern" - - +import { HeroPattern } from '@/components/HeroPattern' export const metadata = { - title: "Manifests", - description: "Manifests do cool stuff." + title: 'Manifests', + description: 'Manifests do cool stuff.', + openGraph: { + title: 'Manifests', + }, } @@ -41,13 +42,13 @@ http:////2.png ar.io gateways are capable of resolving manifest paths in a relative manner. An HTML page loading assets from Arweave would be very difficult to develop, maintain, and harden against hosting domains leaving existence if assets had to be linked to by a fully qualified domain name and an Arweave data item ID as the path. For example: ```html - + ``` Manifests allow HTML pages to use relative paths to assets with friendly names so that the document is easy to read, maintain, and host across any ar.io domain. For example: ```html - + ``` Relative routing eliminates the need for every link to contain the full Arweave transaction ID and fully qualified domain name. This makes the HTML more readable and ensures that links remain valid even if the hosting domain changes. If `index.html` needed to access `js/style.css`, the relative link `./js/style.css` could be used instead of `/js/style.css`. This relative routing is incredibly useful for linking together files in a way that allows functional websites to be hosted entirely on Arweave. @@ -105,37 +106,47 @@ A resolver, typically an ar.io gateway, resolves URLs requesting content based o Assume the manifest above is uploaded to Arweave with the transaction ID `UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk`. The below table shows https requests to the ar.io gateway `arweave.dev` requesting various endpoints on the manifest transaction Id, the manifest path where the gateway will find the data to return, and the resulting Arweave txId.
- +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Request PathManifest PathData served from txID
https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTkindexcG7Hdi_iTQPoEYgQJFqJ8NMpN4KoZ-vH_j7pG4iP7NI
https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk/index.htmlindex.htmlcG7Hdi_iTQPoEYgQJFqJ8NMpN4KoZ-vH_j7pG4iP7NI
https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk/js/style.cssjs/style.css3zFsd7bkCAUtXUKBQ4XiPiQvpLVKfZ6kiLNt2XVSfoV
https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk/foobarfallbackiXo3LSfVKVtXUKBzfZ4d7bkCAp6kiLNt2XVUFsPiQvQ
+ + Request Path + Manifest Path + Data served from txID + + + + + https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk + index + cG7Hdi_iTQPoEYgQJFqJ8NMpN4KoZ-vH_j7pG4iP7NI + + + + https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk/index.html + + index.html + cG7Hdi_iTQPoEYgQJFqJ8NMpN4KoZ-vH_j7pG4iP7NI + + + + https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk/js/style.css + + js/style.css + 3zFsd7bkCAUtXUKBQ4XiPiQvpLVKfZ6kiLNt2XVSfoV + + + + https://arweave.dev/UyC5P5qKPZaltMmmZAWdakhlDXsBF6qmyrbWYFchRTk/foobar + + fallback + iXo3LSfVKVtXUKBzfZ4d7bkCAp6kiLNt2XVUFsPiQvQ + + +
## Specifications @@ -234,4 +245,4 @@ The `fallback` attribute is an object that defines an Arweave data item transact } ``` -The `paths` attribute is an object that defines the url paths that a manifest can resolve to. If a user navigates to `manifest/index.html` the resolver will look for `index.html` as a key in the `paths` object and return the corresponding `id`. (`cG7Hdi_iTQPoEYgQJFqJ8NMpN4KoZ-vH_j7pG4iP7NI`) \ No newline at end of file +The `paths` attribute is an object that defines the url paths that a manifest can resolve to. If a user navigates to `manifest/index.html` the resolver will look for `index.html` as a key in the `paths` object and return the corresponding `id`. (`cG7Hdi_iTQPoEYgQJFqJ8NMpN4KoZ-vH_j7pG4iP7NI`)