Unverified Commit 09685760 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix broken links to symbols under submodules

parent 61a00aeb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
import { maxWith } from "@std/collections";
import { unescape } from "@std/html";
import { compare, format, parse, SemVer } from "@std/semver";
import lume from "lume/mod.ts";
import relativeUrls from "lume/plugins/relative_urls.ts";
@@ -81,7 +82,7 @@ async function getApiUrl(
  opt: null | { attr: string } | { ctor: true },
): Promise<string | null> {
  const baseUrl = new URL(
    node.file === "." ? "." : `.${node.file}/`,
    node.file === "." ? "." : `.${unescape(node.file)}/`,
    `https://jsr.io/@fedify/fedify@${version}/doc/`,
  );
  const url = new URL(`./~/${node.name}`, baseUrl);
+7 −3
Original line number Diff line number Diff line
@@ -4,11 +4,15 @@
    "serve": "deno task lume -s --port=3000"
  },
  "imports": {
    "@std/collections": "jsr:@std/collections@^0.218.2",
    "@std/semver": "jsr:@std/semver@^0.218.2",
    "@std/collections": "jsr:@std/collections@^0.221.0",
    "@std/html": "jsr:@std/html@^0.221.0",
    "@std/semver": "jsr:@std/semver@^0.221.0",
    "lume/": "https://deno.land/x/lume@v2.0.1/",
    "lume_markdown_plugins/": "https://deno.land/x/lume_markdown_plugins@v0.7.0/",
    "lumocs/": "https://deno.land/x/lumocs@0.1.2/"
  },
  "exclude": ["*.md", "**/*md"]
  "exclude": [
    "*.md",
    "**/*md"
  ]
}
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ framework.
 -  [Collections](./manual/collections.md)
 -  [NodeInfo](./manual/nodeinfo.md)
 -  [Pragmatics](./manual/pragmatics.md)
 -  [Integration](./manual/integration.md)
 -  [Testing](./manual/test.md)

However, this manual is not a complete guide to the Fedify framework.