Giter Site home page Giter Site logo

Comments (6)

vogloblinsky avatar vogloblinsky commented on May 13, 2024

Hi,
Compodoc documentation is not planned to be used directly by opening index.html and having file:// urls in the browsers.
For example, Lunr.js index json file is loaded with ajax, and will failed in your context.

The only workaround for you is to set the base for your local folder like this example :

compodoc -p src\tsconfig.json -b file://localhost/Volumes/Data/xxx/compodoc-demo-todomvc-angular2/documentation/

from compodoc.

aecz avatar aecz commented on May 13, 2024

Thanks for the workaround. It works except for links that points to /.
If we change this to /index.html everything works perfectly.
Do you think it can be done ? Would you accept a PR for this ?

The idea behind this is to allow easier integration in Jenkins/Bamboo, Visual Studio Code/Atom...
For example, Istanbul report can easily being added to a build result in a CI server. Compodoc cannot at the moment.

from compodoc.

vogloblinsky avatar vogloblinsky commented on May 13, 2024

Yep it can be done.
The test case will be :

  • build the compodoc ng2 demo in jenkins and export html pages like another reporter
  • open the documentation directly in jenkins interface

from compodoc.

PhilippSoehnlein avatar PhilippSoehnlein commented on May 13, 2024

Same problem here. Our CI-server (TeamCity) runs compodoc and publishes the generated folder as artifact which is then later displayed on the web frontend of the CI server in an <iframe> serving an URL like that: /repository/download/$buildTaskName/$buildId:id/$artifactName!/index.html. I can't figure out a value for base that works.

from compodoc.

vogloblinsky avatar vogloblinsky commented on May 13, 2024

Fixed in 0.0.39

from compodoc.

lock avatar lock commented on May 13, 2024

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

from compodoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.