Open WJRovers opened 9 years ago
Hi @WJRovers!
Thank you for trying my stuffs :) I can't reproduce your error. I move the folder with generated pages under Apache and it looks fine. Duplicated contents is strange behavior. Did u see the html code? It contains some element duplicated? Can you past your apidoc-generator configuration?
Thank you
{
"name": "RestFull API",
"version": "0.1.0",
"description": "The description",
"apidoc": {
"title": "RestFull API",
"url": "http://url.com/API"
},
"order": [
"Name1",
"Name2",
"Name3",
"Name4",
"Name5"
]
}
This is the exact apidoc.json and the command line is nothing more special then:
SRC_DIR="C:\xampp\htdocs\RestFull-API"
OUTPUT_DIR="C:\xampp\htdocs\doc\RestFull-API"
apidoc -i $SRC_DIR"\modules\API" -o $OUTPUT_DIR"\api" -v
To give you a better idea of what seems to be happening. The page is ''loading'' and when it is done loading it instantly shows the correct page. However; like half a second later some javascript seems to be adding the content another time. I've looked into the javascript code myself but could not find something that causes this.
I think is not my fault. The HTML generated should be correct. Can you check this out?
Greetings,
I've tried out some stuff but it seems the generated content gets placed twice in the container. Is this an error caused by the apidoc generator? It only happens when visited from within an HTTP Server. When the HTML gets opened directly from harddrive it all looks fine, but when placed per example in XAMPP and you visit the url it duplicates the content.