Skip to content

feature request: local project files in siteConfig.scripts & siteConfig.stylesheets  #534

Closed

Description

@zenflow

We want to include our library distributable in the pages of our documentation site to demonstrate it. There's also a 3rd-party (vendor) script in the node_modules dir that we need to include (to make the indicated code blocks "executable").

Is there a nice way to include local project files in siteConfig.scripts that are outside the ./website/static/ dir?

Right now I'm copying the needed files into ./website/static/vendor at the beginning of every script (start, build, publish), and adding that dir to .gitignore, but it feels hacky.

I propose we treat relative paths in siteConfig.scripts & siteConfig.stylesheets as relative to the location of siteConfig.js and copy those files into the build.

Would the maintainers welcome a PR to add this?

Activity

  1. yangshun commented on May 4, 2018

    @yangshun
    Contributor

    I think this is a reasonable suggestion. PR welcome!

    In future we might want to move to a bundler like webpack, rollup or parcel though.

  2. Airse commented on May 6, 2018

    @Airse
    Contributor

    @yangshun I wouldn't mind working on this!

  3. yangshun commented on May 6, 2018

    @yangshun
    Contributor

    @Airse Awesome, it's yours!

  4. added
    feature
    status: claimed
    on May 6, 2018
  5. removed
    status: claimed
    on Oct 14, 2018
  6. bgub commented on Mar 19, 2019

    @bgub
    Contributor

    Has there been any progress on this?

  7. endiliey commented on Jul 18, 2019

    @endiliey
    Contributor

    Wontfix in v1 with v2 coming up

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions