-
Notifications
You must be signed in to change notification settings - Fork 12k
As a CLI user, I want the doc command to guide me to the version of Angular I'm using #12365
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
Comments
With this commit , we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io` The default domain is still used if no version is specified Refs angular#12365
With this commit, we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io`. The default domain is still used if no version is specified. Refs angular#12365
With this commit, we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io`. The default domain is still used if no version is specified. Refs angular#12365
With this commit I added the changes suggested. Refs angular#12365
With this commit, we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io`. The default domain is still used if no version is specified. Refs angular#12365
With this commit, we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io`. The default domain is still used if no version is specified. Refs angular#12365
With this commit, we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io`. The default domain is still used if no version is specified. Refs angular#12365
With this commit, we can now specify a `version` for the `ng doc` command ng doc --version 6 ng doc -v 6 and this will open `v6.angular.io` instead of `angular.io`. The default domain is still used if no version is specified. Refs #12365
This issue was partially fixed by #14788 as it's now possible to use:
The second part of the issue requires to read the Angular version installed in the project. |
|
I agree. Wrap that in a try catch and use a split on the periods to extract the major version. Use the default domain if an exception occurs. |
Thanks for the feedback! @LakhyariMs Would you like to give it a try and open a new PR with this? Or do you prefer that someone else does it? |
Follow-up to angular#14788 that allowed `ng doc --version 6`. This commit enhances the doc command to use the current Angular version of the project by default, if no version is provided explicitely. Fixes angular#12365
Follow-up to angular#14788 that allowed `ng doc --version 6`. This commit enhances the doc command to use the current Angular version of the project by default, if no version is provided explicitely. Fixes angular#12365
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Right now the
ng doc
command uses the latest version of the doc. It would be nice to (acceptance criteria):This way people can use the doc command with the version of angular.io they care about.
The text was updated successfully, but these errors were encountered: