mirror of
https://github.com/nix-community/noogle.git
synced 2024-12-17 22:01: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
|
||||
.match(/(?:[a-zA-Z]*)\.nix/gm)?.[0]
|
||||
?.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}`;
|
||||
return (
|
||||
<Box
|
||||
|
Loading…
Reference in New Issue
Block a user