Skip to content

add compodoc documentation generator#1327

Merged
nnixaa merged 2 commits intoakveo:masterfrom
hatemhosny:feature/compodoc
Oct 20, 2017
Merged

add compodoc documentation generator#1327
nnixaa merged 2 commits intoakveo:masterfrom
hatemhosny:feature/compodoc

Conversation

@hatemhosny
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Feature

What is the new behavior (if this is a feature change)?
this PR adds support for compodoc angular documentation generator (as discussed in #1326)

Other information:
npm run docs builds the documentations in docs folder.
npm run docs:serve builds the documentations and serves it on http://localhost:8080/

More information:
https://compodoc.github.io/website/guides/getting-started.html
https://github.com/compodoc/compodoc

Copy link
Copy Markdown
Collaborator

@nnixaa nnixaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @hatemhosny, great, thank you! Please checkout the comment.

package.json Outdated
"lint:ci": "npm run lint && npm run lint:styles",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "ng e2e",
"docs": "./node_modules/.bin/compodoc -p src/tsconfig.app.json -d docs",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to specify the relative path to the .bin folder? I believe it could be done in a similar to other commands manner when an executable is resolved by npm (https://github.com/akveo/ngx-admin/pull/1327/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R6).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nnixaa ,
This is how they use it as stated in the documentation
https://compodoc.github.io/website/guides/installation.html

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I see, but this doesn't seem to be right, as we hardcode path to .bin folder. Could you try changing it to:

"compodoc":  "compodoc",
"docs": "compodoc -p src/tsconfig.app.json -d docs",
"docs:serve": "compodoc -p src/tsconfig.app.json -d docs -s",

@hatemhosny
Copy link
Copy Markdown
Contributor Author

updated...

It does work fine.

Copy link
Copy Markdown

@tkmawarire tkmawarire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine for me too

@nnixaa nnixaa merged commit eebbc12 into akveo:master Oct 20, 2017
@nnixaa
Copy link
Copy Markdown
Collaborator

nnixaa commented Oct 20, 2017

Awesome, merged.

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

Successfully merging this pull request may close these issues.

3 participants