Skip to content

"View Book Source" link always points to the "base" dir instead of "base + subdir" #1259

Open
@kulbhushanchand

Description

@kulbhushanchand

The "View Book Source" link at the bottom left corner always points to the base directory, which is fine if the docs source files resides in top level directory. However, if a subdirectory is defined for source files, it should (ideally) links to the "base+subdir".

Example of my setup :
top level directory: https://github.com/kulbhushanchand/BioNES
book_source directory: https://github.com/kulbhushanchand/BioNES/tree/master/docs_source
build directory: https://github.com/kulbhushanchand/BioNES/tree/master/docs

Setup:

bookdown::bs4_book:
  theme:
    primary: "#637238"
  repo: 
    base: https://github.com/kulbhushanchand/BioNES
    branch: master
    subdir: docs_source
  css: style.css

Link in question:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions