Skip to content

Commit

Permalink
Fix Python reference URLs
Browse files Browse the repository at this point in the history
Fix #1171
  • Loading branch information
tillprochaska committed Jul 12, 2023
1 parent 8ff8e26 commit 5fca73a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/src/components/common/ReferenceLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ const namespace = ref.split('.');
const className = namespace.pop();
const moduleName = namespace.pop();
const url = path.join(
basePath,
'reference/python',
...namespace,
`${moduleName}.html`,
`#${className}`
);
const url =
path.join(basePath, 'reference/python', ...namespace, `${moduleName}.html`) +
`#${className}`;
---

<a href={url}><code>{className}</code></a>

0 comments on commit 5fca73a

Please sign in to comment.