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

[FEATURE] Markdown file support for modules, services, etc #204

Closed
jaufgang opened this issue Jun 19, 2017 · 2 comments
Closed

[FEATURE] Markdown file support for modules, services, etc #204

jaufgang opened this issue Jun 19, 2017 · 2 comments

Comments

@jaufgang
Copy link

Currently, compodoc supports adding a README documentation tab for components using markdown files:

Documentation of each component

A comment description in xxx.component.ts file, between JSDoc comments can be a little short.

Compodoc search for a default xxx.component.md or README.md file inside the root folder of each component, and add it inside a tab in the component page.

This is a great feature, and it would be even better if it worked the same way for modules, services, directives, pipes, etc. There are lots of good reasons to add documentation this way.

Also, the current implementation only works for components using the file naming convention xxx.component.ts. In my Ionic project I have "page" components which use a similar but different convention aaa.page.ts and I would like to be able to name my markdown file using a parallel naming scheme aaa.page.md. Currently, this does not work. The angular style guide does allow for this in style-02-02

Do use conventional type names including .service, .component, .pipe, .module, and .directive. Invent additional type names if you must but take care not to create too many.

I think it would be preferable for compodoc to recognize any .md file with the same file name prefix as any component/module/service/ etc and attatch that to the documentation, regardless of other file naming conventions.

@vogloblinsky
Copy link
Contributor

Hi,
Yes i have to add this feature for others types (modules etc...)
I will follow your suggestion about file naming, better than just searching for README.md or my.component.md

@lock
Copy link

lock bot commented Oct 1, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants