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

Bug: Backlinks visible only when Graphview is enabled #2

Closed
adityatelange opened this issue Dec 9, 2024 · 4 comments
Closed

Bug: Backlinks visible only when Graphview is enabled #2

adityatelange opened this issue Dec 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@adityatelange
Copy link

When Graph View is disabled using below config, backlinks are not present on any page after you build it using npm run build

import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'
import starlightThemeObsidian from 'starlight-theme-obsidian'

export default defineConfig({
    integrations: [
        starlight({
            plugins: [starlightThemeObsidian({
++               graphConfig: {
++                    visibilityRules: []
++               }
            })],
            title: 'My Docs',
        }),
    ],
})
@adityatelange
Copy link
Author

Just noticed, backlinks are not visible after you build with or without graphConfig.

@Fevol Fevol transferred this issue from Fevol/starlight-theme-obsidian Dec 9, 2024
@Fevol Fevol added the bug Something isn't working label Dec 9, 2024
@adityatelange
Copy link
Author

adityatelange commented Dec 9, 2024

Not sure but PageGraph pulls it from sitegraph/sitemap.json file but PageBacklinks doesn't

const sitemap = await (await fetch(base_url + 'sitegraph/sitemap.json')).json();

@Fevol
Copy link
Owner

Fevol commented Dec 9, 2024

Thank you very much for reporting the issue!
I can't believe that I never noticed that the backlinks weren't being added on production websites (in dev, this works fine).
The issue was I had forgotten to remove an optimization step that wasn't being used anymore, which initially was meant to prevent the sitemap from being included in its entirety into the HTML (which is not desirable)
The issue has been resolved in 0.1.10. Thanks again for the report!

@adityatelange
Copy link
Author

Thank you for fixing this quickly, really appreciate it! Just built with the latest release and it works flawlessly. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants