Comments (6)
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.
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.
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.
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.
Fixed in 0.0.39
from compodoc.
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)
- Errors Generating Documentation
- [Bug] Compodoc : zepto vulnerability
- Error during generation of documentation
- [FEATURE] Allow documented class member take precedence in an ignored class
- [FEATURE]: Support exported types in the documentation coverage
- [BUG] Doesn't work with strict content security policy
- [FEATURE]: Separate stand-alone site for 'Additional-Documentation' HOT 1
- [BUG] Tools directory not available in compodoc HOT 1
- [FEATURE] NGRX sections HOT 1
- [BUG] Using TypeScript utility types breaks the generated type in documentation.json
- [BUG] `keyof typeof Type` results in no type in documentation.json
- [BUG] Unhandled Rejection - SyntaxError: JSON5: invalid character '.' at 1:588 HOT 1
- [BUG] inputs are not inherited when alias is used
- [BUG] HOT 1
- [FEATURE] Support Nest Routes HOT 1
- [FEATURE] Mermaid integration HOT 1
- [BUG] CompoDoc failing to parse or generate the documentation
- [FEATURE] Support 17.1 input signals HOT 5
- [FEATURE] Add --disableConstructors to CLI options
- [BUG] Trying to run compo, generates this error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compodoc.