diff --git a/docs/michelson/network-information.md b/docs/michelson/network-information.md deleted file mode 100644 index de1e2a10..00000000 --- a/docs/michelson/network-information.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: Network information (Michelson) ---- - -This page contains information for connecting to the public Etherlink networks via the Michelson interface. -For using the networks via the EVM interface, see [EVM network information](/evm/get-started/network-information). - -:::caution[Experimental] -The public Michelson endpoints below are experimental and in the process of being rolled out; they may not be reachable yet. -::: - -For current and historical status information for Etherlink, see https://status.etherlink.com. - -:::note - -Instead of the public Michelson endpoints below serving [Michelson RPCs](/michelson/developing/rpc-reference) for Mainnet or Shadownet, -you may also [run your own EVM node](/network/evm-nodes), to get rid of any possible rate limitation. -In that case, the URL of your endpoint is `/tezlink` (the path prefix is a legacy name and may be renamed to `/michelson` in a future version). - -::: - -## Etherlink Mainnet - -| Network parameter | Value | -|---|---| -| Network identifier | `NetXohUVN5QWR4f` | -| Endpoint | https://michelson.etherlink.mainnet.octez.io | -| Indexer | Not yet available | -| Bridge | Native tez only (see [Bridging](/michelson/bridging)); for FA tokens, [bridge to the EVM interface](/evm/bridging) and use them via [NAC](/michelson/nac-usage) | - -## Etherlink Shadownet Testnet - -| Network parameter | Value | -|---|---| -| Network identifier | `NetXtLrzvQDobza` | -| Endpoint | https://michelson.etherlink.shadownet.octez.io | -| Indexer | Not yet available | -| Faucet | Not yet available; in the meantime, [get EVM test tokens](/evm/get-started/getting-testnet-tokens) | -| Bridge | Native tez only (see [Bridging](/michelson/bridging)); for FA tokens, [bridge to the EVM interface](/evm/bridging) and use them via [NAC](/michelson/nac-usage) | - -## Tezos X Previewnet Testnet - -See [Previewnet](/testing/previewnet) page. - -## Quick connectivity check - -``` bash -curl -s /chains/main/chain_id -``` diff --git a/docs/michelson/network-information.mdx b/docs/michelson/network-information.mdx new file mode 100644 index 00000000..1c4ab5c7 --- /dev/null +++ b/docs/michelson/network-information.mdx @@ -0,0 +1,95 @@ +--- +title: Network information (Michelson) +--- + +import InlineCopy from '@site/src/components/InlineCopy'; +import Link from '@docusaurus/Link'; + +This page contains information for connecting to the public Etherlink networks via the Michelson interface. +For using the networks via the EVM interface, see [EVM network information](/evm/get-started/network-information). + +:::caution[Experimental] +The public Michelson endpoints below are experimental and in the process of being rolled out; they may not be reachable yet. +::: + +For current and historical status information for Etherlink, see https://status.etherlink.com. + +:::note + +Instead of the public Michelson endpoints below serving [Michelson RPCs](/michelson/developing/rpc-reference) for Mainnet or Shadownet, +you may also [run your own EVM node](/network/evm-nodes), to get rid of any possible rate limitation. +In that case, the URL of your endpoint is `/tezlink` (the path prefix is a legacy name and may be renamed to `/michelson` in a future version). + +::: + +## Etherlink Mainnet + + + + + + + + + + + + + + + + + + + + + + + + + + +
Network parameterValue
Network identifierNetXohUVN5QWR4f
Endpoint
IndexerNot yet available
BridgeNative tez only (see Bridging); for FA tokens, bridge to the EVM interface and use them via NAC
+ +## Etherlink Shadownet Testnet + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Network parameterValue
Network identifierNetXtLrzvQDobza
Endpoint
IndexerNot yet available
FaucetNot yet available; in the meantime, get EVM test tokens
BridgeNative tez only (see Bridging); for FA tokens, bridge to the EVM interface and use them via NAC
+ +## Tezos X Previewnet Testnet + +See [Previewnet](/testing/previewnet) page. + +## Quick connectivity check + +``` bash +curl -s /chains/main/chain_id +``` diff --git a/src/components/InlineCopy/styles.module.css b/src/components/InlineCopy/styles.module.css index ed97980a..abfbbe31 100644 --- a/src/components/InlineCopy/styles.module.css +++ b/src/components/InlineCopy/styles.module.css @@ -1,6 +1,7 @@ .container { display: inline; position: unset; + overflow-wrap: anywhere; } .link:hover { diff --git a/test/external-link-check.mjs b/test/external-link-check.mjs index 199b5d0e..d1c9c006 100644 --- a/test/external-link-check.mjs +++ b/test/external-link-check.mjs @@ -56,7 +56,13 @@ const regexesToIgnore = [ const getAst = async (filePath) => { const fileContents = await fs.promises.readFile(filePath, 'utf8'); if (path.extname(filePath) === '.mdx') { - return fromMarkdown(fileContents, { + // The raw micromark MDX parser rejects HTML comments (``), + // which we use as invisible rebranding markers in .mdx files. Docusaurus's + // build pipeline strips them; the standalone parser does not, so strip them + // here before parsing. They never contain links to check. + // See https://github.com/micromark/micromark-extension-mdx-jsx#unexpected-character-at-expected-expect + const withoutHtmlComments = fileContents.replace(//g, ''); + return fromMarkdown(withoutHtmlComments, { extensions: [mdxjs()], mdastExtensions: [mdxFromMarkdown()] }); diff --git a/test/playwright/site.spec.js b/test/playwright/site.spec.js index 6fa82131..1dc35dc3 100644 --- a/test/playwright/site.spec.js +++ b/test/playwright/site.spec.js @@ -9,7 +9,9 @@ test('has title', async ({ page }) => { test('navigation', async ({ page }) => { await page.goto('https://docs.etherlink.com/'); - await page.getByRole('button', { name: 'Developing' }).click(); + // "Developing" is nested under "EVM Interface", so expand that first. + await page.getByRole('button', { name: 'EVM Interface' }).click(); + await page.getByRole('button', { name: 'Developing' }).first().click(); await expect(page.getByText('Ethereum endpoint support')).toBeVisible(); await page.getByRole('button', { name: 'Governance' }).click(); await expect(page.getByText('How is Etherlink governed?')).toBeVisible(); @@ -25,7 +27,13 @@ test('search', async ({ page }) => { test('feedback form', async ({ page }) => { await page.goto('https://docs.etherlink.com/'); - await expect(page.locator('feedback-button#default a')).toBeVisible(); - await page.locator('feedback-button#default a').click(); - await expect(page.getByText('Share your feedback')).toBeVisible(); + // The PushFeedback widget renders a web component (no inner + // ) that hydrates asynchronously; a click only opens the modal once its + // handler is attached, so retry the click until the modal appears. + const button = page.locator('feedback-button#default'); + await button.waitFor({ state: 'attached' }); + await expect(async () => { + await button.click({ force: true }); + await expect(page.getByText('Share your feedback')).toBeVisible({ timeout: 2000 }); + }).toPass({ timeout: 20000 }); });