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

Documentation theme requires more work #494

Open
purva-thakre opened this issue Feb 28, 2024 · 1 comment
Open

Documentation theme requires more work #494

purva-thakre opened this issue Feb 28, 2024 · 1 comment
Assignees

Comments

@purva-thakre
Copy link
Collaborator

purva-thakre commented Feb 28, 2024

Related to #467, #440 and #416

  • The default logo in the header of the theme is hidden due to below.

/* Hide default logo in header */
a.logo.navbar-brand {
display: none;
}

In the default version of the theme, the logo and theme name appears. We want to replace the sphinx-wagtail logo with the logo for toqito and replace Sphinx Wagtail Theme with something like Toqito Documentation which could act as the home page for the documentation.

image

  • The default options in the footer are hidden due to below.

    /* Hide default options in footer */
    ul.nav.justify-content-center.mb-2 {
    display: none;
    }

    We want to replace the default theme options in the footer with About Toqito, Info about the documentation build/theme etc..
    image

  • On the home page of the documentation, all functions in the API reference are listed. It might be better to list only the modules and not the functions on this page. Probably related to changing the maxdepth

    .. toctree::
    :maxdepth: 2

  • The Edit on Github button is broken for functions in API Reference after the API structure was changed in Switch to AutoAPI #440. We want to redirect all such broken links to the main repo or to the appropriate modules. For example, if the Edit on Github link to docs/autoapi/channel_metrics/channel_fidelity is broken:
    - Option 1: we want to re-direct it to toqito/channel_metrics instead. Same for other modules.
    - Option 2: we want to re-direct all broken links to toqito/toqito. Only 1 link to maintain compared to Option 1.

@purva-thakre
Copy link
Collaborator Author

For the last item, found a resource that could be helpful. In this case, we simply remove the Edit on Github option for the automatically generated pages.

https://docs.readthedocs.io/en/stable/guides/remove-edit-buttons.html

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

No branches or pull requests

1 participant