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

Consider supporting this alternative documentation location within an Ember application itself #13

Open
notmessenger opened this issue Dec 17, 2015 · 0 comments

Comments

@notmessenger
Copy link
Collaborator

@makepanic has integrated generated JSDoc output into a dummy Ember app so that styling is picked up from the app and are an Ember route. This can be viewed at http://makepanic.github.io/ember-keyword-complete/#/api/ember-keyword-complete_addon_components_keyword-complete.js

He states that the current disadvantages are that this currently relies on a couple lines of bash

https://raw.githubusercontent.com/makepanic/ember-keyword-complete/master/jsdoc-ast.sh

#!/usr/bin/env bash

ADDON_NAME="ember-keyword-complete"

PWD=$(pwd | sed 's_/_\\/_g')
CONF_PATH="tests/dummy/config/"
AST_FILE="jsdoc-ast.json"

jsdoc -X -r addon \
  | sed "s/${PWD}/${ADDON_NAME}/g" \
  | jq 'map(select(has("undocumented")|not))' \
  > ${CONF_PATH}${ADDON_NAME}.ast.json

and isn't usable for all jsdoc cases.

It basically works by loading the AST generated from the shell script mentioned above and puts it in the dummy environment.

@notmessenger notmessenger changed the title Consider supporting this alternative document location within an Ember application itself Consider supporting this alternative documentation location within an Ember application itself Dec 17, 2015
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

1 participant