Skip to content

Feature request: setting to move viewcode source links to be right-aligned Β #68

@dem1995

Description

@dem1995

Current situation: when using viewcode, source links appear immediately after the method declaration. This makes method declarations less readable, particularly when they include a return type.

Feature request: a togglable option to right-align these (or have it appear in the upper-right of the box)

Poor man's implementation (via custom.css)

span.viewcode-link {
    float: right;
}

Proposed user-facing toggle:

html_theme_options = {
    'right_align_source': True, //default false  
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions