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

Add sitemap #381

Open
haesleinhuepf opened this issue Nov 6, 2024 · 2 comments · May be fixed by #382
Open

Add sitemap #381

haesleinhuepf opened this issue Nov 6, 2024 · 2 comments · May be fixed by #382
Assignees

Comments

@haesleinhuepf
Copy link
Member

Tgus repository contains a jupyter book in the "docs" folder that is rendered automatically to a github.io website. How can we add a sitemap to make our contents discoverable by search engines?

Git-bob comment

Copy link
Contributor

github-actions bot commented Nov 6, 2024

This message was generated by git-bob (version: 0.14.0, model: github_models:gpt-4o, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

To add a sitemap to your Jupyter Book, you can use the sphinx-sitemap extension. Here’s how you can integrate it into your current configuration:

  1. Install the sphinx-sitemap package via pip if you haven't yet:

    pip install sphinx-sitemap
  2. Update your _config.yml to include the extension and set the necessary configuration. Add the sitemap info under sphinx.config:

    sphinx:
      config:
        html_show_copyright: false
        html_last_updated_fmt: '%Y-%m-%d'
        extensions:
          - sphinx_sitemap
        sitemap_url_scheme: "{link}"
        site_url: "https://yourwebsite.github.io/"

    Replace "https://yourwebsite.github.io/" with the actual URL where your Jupyter Book is hosted.

This will create a sitemap.xml file in your build directory that you can submit to search engines for better discoverability.

@haesleinhuepf
Copy link
Member Author

The site_url is "https://nfdi4bioimage.github.io/training" and you can add the new dependency to the requirements.txt

git-bob implement this

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

Successfully merging a pull request may close this issue.

1 participant