Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add staticDist option for copying static files from a template #40

Closed
imaustink opened this issue Jul 7, 2017 · 1 comment
Closed
Assignees

Comments

@imaustink
Copy link
Contributor

Justin has provided this step-by-step guide:

1. https://github.com/bit-docs/bit-docs-generate-html/blob/master/bit-docs.js

siteConfig.html = {
               dependencies: {},
               static: [],
               templates: [],
               staticDist: []
           };
if htmlConfig has `staticDist` -> merge into `siteConfig.html.staticDist`

2. https://github.com/bit-docs/bit-docs-generate-html/blob/master/site/default/static/build.js


// BOTH IN devBuild and NOT
siteConfig.html.staticDist.forEach(function(path){
    fsx.copy(path, path.join(folders.dist) )
})

COPY THIS TEST: https://github.com/bit-docs/bit-docs-generate-html/blob/master/build/build_test.js#L108

3. https://github.com/canjs/bit-docs-html-canjs/blob/master/bit-docs.js


bitDocs.register("html", {
    templates: path.join(__dirname, "templates"),
    dependencies: dependencies,
    staticDist:  path.join(__dirname, "search-dest"),
});
@imaustink imaustink self-assigned this Jul 7, 2017
@chasenlehara
Copy link
Contributor

#41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants