PolymerElements / iron-component-page

A reusable landing page for elements
36 stars 32 forks source link

Serve the documentation on a server #145

Closed abdonrd closed 5 years ago

abdonrd commented 7 years ago

I have a components library like:

my-components/
|-- bower_components/
|-- components/
|   |-- my-button/
|   |   |-- demo/
|   |   |-- test/
|   |   |-- my-button.html
|   |-- my-checkbox/
|   |   |-- ...
|   |-- ...
|-- analysis.json
|-- bower.json
|-- docs.html

And it works with polymer serve.

But... How to build it to deploy on a server? I would like something like domain.com/docs.html or domain.com/docs/ (better).

I have tried polymer build using this polymer.json config but it's not enough:

{
  "entrypoint": "docs.html",
  "sources": [
    "components/**/*",
    "bower.json"
  ],
  "extraDependencies": [
    "bower_components/webcomponentsjs/*.js",
    "analysis.json"
  ],
  "lint": {
    "rules": ["polymer-2"]
  }
}
abdonrd commented 7 years ago

Maybe related with https://github.com/PolymerElements/iron-doc-viewer/issues/162.

abdonrd commented 5 years ago

Closing and old issue.