Skip to content

Show external relative URLs in the sidebar #864

@njzjz

Description

@njzjz

Context

Hi, I am wondering how to show external relative URLs in the sidebar.

In Sphinx, there is a hack (sphinx-doc/sphinx#701 (comment)) to archive it. This hack works with sphinx-rtd-theme.

image

However, when I switch to sphinx-book-theme, although external relative URLs are still in the TOC, they are not in the sidebar.

image

  • source code:
.. toctree::
   :maxdepth: 1

   DeePMD-kit </projects/deepmd/#https://>
   DP-GEN </projects/dpgen/#https://>
   dpdata </projects/dpdata/#https://>
   DPDispatcher </projects/dpdispatcher/#https://>
   dargs</projects/dargs/#https://>
   ABACUS <https://abacus.deepmodeling.com/>
   dpgen2 </projects/dpgen2/#https://>
   DeepFlame <https://deepflame.deepmodeling.com/>
   DPTI </projects/dpti/#https://>
   ReacNetGenerator </projects/reacnetgenerator/#https://>

Proposal

No response

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions