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

Duplicate Content #1

Open
WJRovers opened this issue Aug 18, 2015 · 3 comments
Open

Duplicate Content #1

WJRovers opened this issue Aug 18, 2015 · 3 comments

Comments

@WJRovers
Copy link

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.

@enryold
Copy link
Owner

enryold commented Aug 19, 2015

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

@WJRovers
Copy link
Author

{
  "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.

@enryold
Copy link
Owner

enryold commented Aug 25, 2015

I think is not my fault. The HTML generated should be correct. Can you check this out?

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