mirror of
https://github.com/nix-community/noogle.git
synced 2024-12-18 14:31:37 +03:00
chore: fix doc-links with prime (')
This commit is contained in:
parent
921d4b8370
commit
b9a63521af
@ -51,7 +51,8 @@ export const Preview = (props: PreviewProps) => {
|
|||||||
const libName = category
|
const libName = category
|
||||||
.match(/(?:[a-zA-Z]*)\.nix/gm)?.[0]
|
.match(/(?:[a-zA-Z]*)\.nix/gm)?.[0]
|
||||||
?.replace(".nix", "");
|
?.replace(".nix", "");
|
||||||
const libDocsRef = `https://nixos.org/manual/nixpkgs/stable/#function-library-lib.${libName}.${name}`;
|
const sanitizedName = name.replace("'", "-prime");
|
||||||
|
const libDocsRef = `https://nixos.org/manual/nixpkgs/stable/#function-library-lib.${libName}.${sanitizedName}`;
|
||||||
const builtinsDocsRef = `https://nixos.org/manual/nix/stable/language/builtins.html#builtins-${name}`;
|
const builtinsDocsRef = `https://nixos.org/manual/nix/stable/language/builtins.html#builtins-${name}`;
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
|
Loading…
Reference in New Issue
Block a user