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

Using hu theme gives an error #31

Open
fawaztahir opened this issue Jun 30, 2017 · 5 comments
Open

Using hu theme gives an error #31

fawaztahir opened this issue Jun 30, 2017 · 5 comments
Labels

Comments

@fawaztahir
Copy link

Used following command to download theme

postmanerator themes get hu

It was downloaded successfully. Running postmanerator themes list does show it in list. Tried to create documentation using following command.

postmanerator -collection=collection.json -environment=environment.json -theme=hu -output=output/index.html

Terminal throws following error:

Generating output... FAIL. template: index.tpl:92: function "findRequest" not defined

Same withmarkdown theme. Only default theme is working.

@aubm
Copy link
Owner

aubm commented Jun 30, 2017

Hello @fawazcb, I recently performed a few updates on the codebase that introduced some breaking changes.
By now I only updated the default theme, but I will also update the markdown theme soon.

Regarding the hu theme, I suggest you address an issue on the maintainer repository :)

In the meantime, you can either:

  • stay with the default theme
  • use a previous version of Postmanerator
  • fork and adapt the hu or markdown themes (PR are welcome :))

@aubm aubm added the fix label Jun 30, 2017
@loretoparisi
Copy link

@aubm thanks for the details, I get the same error when not specifying any template:

postmanerator_darwin_386 -collection=./aiapi.json -output=./aiapi.html
Generating output... FAIL. template: index.tpl:76: function "findRequest" not defined

@GabrielDvt
Copy link

same here, any fix?

@aubm
Copy link
Owner

aubm commented Nov 6, 2018

This is strange, maybe you are working with an outdated version of the default theme.
Try re-running your command after running postmanerator themes delete default.

@aubm
Copy link
Owner

aubm commented Nov 6, 2018

Automatically checking for themes updates before generating a documentation might be an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants