Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import statement links in HTML output are broken #1428

Closed
paulcadman opened this issue Aug 2, 2022 · 1 comment · Fixed by #1429
Closed

Import statement links in HTML output are broken #1428

paulcadman opened this issue Aug 2, 2022 · 1 comment · Fixed by #1429

Comments

@paulcadman
Copy link
Collaborator

To see the bug:

Expected:

The browser navigates to the HTML page for Stdlib.Prelude at https://docs.juvix.org/examples/html/Fibonacci/Stdlib.Prelude.html#1

Actual:

The browser navigates to https://docs.juvix.org/examples/html/Fibonacci/Stdlib.Prelude-src.html#1 resulting in a 404 error page

Issue?

The extra -src suffix in the link seems to come from kindSuffix at:

I'm not sure what the purpose of the -src suffix, something to do with the HTML documentation generator as it was added in #1413

@paulcadman
Copy link
Collaborator Author

paulcadman commented Aug 2, 2022

The -src suffix is present because juvix internal doc generates both the Haddock-link website and links to the source files for each module.

To continue supporting the juvix html (which generates only 1 HTML file per module) command I'll add a new HtmlKind called HtmlOnly that does not add the -src to the links etc. This will be used when the HTML generation is called from the juvix html command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant