Skip to content

Allow server to access additional folders #222

@stanch

Description

@stanch

Hi,

In my gitbook there is an API documentation section, which is basically a static folder with tons of html files, generated by an external tool.

Right now I’m placing this folder in the gitbook build path, so that I can link to files inside it. However, gitbook serve does not allow the browser to access that folder.

A workaround is to open the local site via file browser and not via localhost:4000, but this approach is limited (think Disqus plugin). Running an additional HTTP server like python -m SimpleHTTPServer in the build path is another option, but that’s really awkward.

So perhaps there could be a setting allowing to access certain paths, like

{
  ...
  "allowPaths": ["apidoc", "videos/public", ...]
  ...
}

Or am I missing something?

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