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

Bug: Generating HTML documentation with spectacle #368

Open
juleshaas opened this issue Jul 29, 2022 · 1 comment
Open

Bug: Generating HTML documentation with spectacle #368

juleshaas opened this issue Jul 29, 2022 · 1 comment
Labels
bug Something isn't working documentation related to all kinds of docs (API docs, website, ...)

Comments

@juleshaas
Copy link
Member

Code:
https://github.com/mundialis/actinia_core/blob/main/docs/docs/actinia_concepts.md?plain=1

 # Download the latest swagger definition from the actinia service
 wget  https://actinia.mundialis.de/latest/swagger.json -O /tmp/actinia.json
 # Run spectacle docker image to generate the HTML documentation
 docker run -v /tmp:/tmp -t sourcey/spectacle spectacle /tmp/actinia.json -t /tmp
 # Start Firefox to show the documentation
 firefox /tmp/index.html

Bug:
The second step results in Error:

10:52 $ docker run -v /tmp:/tmp -t sourcey/spectacle spectacle /tmp/actinia.json -t /tmp
request-sync is deprecated, use sync-request
/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:169
    if(val.$ref) {
          ^

TypeError: Cannot read property '$ref' of null
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:169:11)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)
    at module.exports (/usr/local/lib/node_modules/spectacle-docs/app/lib/preprocessor.js:76:3)
    at loadData (/usr/local/lib/node_modules/spectacle-docs/index.js:52:72)
    at module.exports (/usr/local/lib/node_modules/spectacle-docs/index.js:56:70)
    at Object.<anonymous> (/usr/local/lib/node_modules/spectacle-docs/bin/spectacle.js:35:1)

Remarks:
The spectacle rendering differs a bit from the rendering with ReDocly.
In spectacle also models are displayed.
The rendering still works with a local installation of spectacle and an old version of node.

spectacle /tmp/actinia.json -t /tmp
which spectacle
$HOME/.nvm/versions/node/v15.12.0/bin/spectacle

originally posted in #214

@juleshaas juleshaas mentioned this issue Jul 29, 2022
@juleshaas juleshaas added bug Something isn't working documentation related to all kinds of docs (API docs, website, ...) labels Jul 29, 2022
@anikaweinmann
Copy link
Member

If this is fixed try to add a workflow for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation related to all kinds of docs (API docs, website, ...)
Projects
None yet
Development

No branches or pull requests

2 participants