diff --git a/package.json b/package.json index 719e8e9..bcd888b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ ], "scripts": { "build": "tsc", - "docs": "typedoc src/index.ts", + "docs": "typedoc src/index.ts --sourcefile-url-prefix 'https://github.com/LemmyNet/lemmy-js-client/tree/main/src/'", "lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src", "prepare": "yarn run build" }, @@ -25,6 +25,7 @@ "prettier": "^2.3.2", "sortpack": "^2.2.0", "typedoc": "^0.21.6", + "typedoc-plugin-sourcefile-url": "^1.0.6", "typescript": "^4.3.5" }, "types": "./dist/index.d.ts", diff --git a/yarn.lock b/yarn.lock index 2cc0d67..9dd8218 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2525,6 +2525,11 @@ typedoc-default-themes@^0.12.10: resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.10.tgz#614c4222fe642657f37693ea62cad4dafeddf843" integrity sha512-fIS001cAYHkyQPidWXmHuhs8usjP5XVJjWB8oZGqkTowZaz3v7g3KDZeeqE82FBrmkAnIBOY3jgy7lnPnqATbA== +typedoc-plugin-sourcefile-url@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/typedoc-plugin-sourcefile-url/-/typedoc-plugin-sourcefile-url-1.0.6.tgz#e0199806616fe6370b3cb7889f647df698438b96" + integrity sha512-xHq9DzkoQywS7FyPneMm2/Hr9GRoCpjSQXkVN0W6SCJKP7fguqg2tasgh+8l5/mW6YSYvqCqEbkSYLbuD4Y6gA== + typedoc@^0.21.6: version "0.21.6" resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.21.6.tgz#854bfa2d6b3ac818ac70aa4734a4d1ba93695595"