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

add links for deprecated docs #670

Merged
merged 3 commits into from
Apr 2, 2019
Merged

Conversation

cherifGsoul
Copy link
Member

For canjs/canjs#4709

This adds @deprecated message on the pages for deprecated feature and and links to what should be used instead.

If you find that missed something in the message or add put wrong version, please let me know.

Copy link
Member

@chasenlehara chasenlehara left a comment

Choose a reason for hiding this comment

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

This is great, let’s get this released!

@@ -2,6 +2,8 @@
@parent can-stache/deprecated
@description Used to reference variables specific to the template context

@deprecated {4.15.0} Use `{{ let }}` [can-stache.helpers.let]. instead.
Copy link
Member

Choose a reason for hiding this comment

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

[can-stache.helpers.let]. instead. -> [can-stache.helpers.let] instead. (extra period)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

@@ -1,6 +1,8 @@
@function can-stache.tags.partial {{>key}}
@parent can-stache/deprecated

@deprecated {4.15} Use passing renderer functions through the ViewModel instead.
Copy link
Member

Choose a reason for hiding this comment

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

Do we have docs anywhere on this? It’d be nice to add a link.

Copy link
Member Author

@cherifGsoul cherifGsoul Apr 2, 2019

Choose a reason for hiding this comment

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

@chasenlehara I can not find a link that talks about renderer functions through the ViewModel instead., should we document it?

Copy link
Member

Choose a reason for hiding this comment

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

I would change this sentence to say something like:

@deprecated {4.15} Pass renderer functions through the ViewModel instead. See the “Calling views” section in the [can-stache#BasicUse can-stache docs] for an example.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@cherifGsoul cherifGsoul merged commit 3a0bc23 into master Apr 2, 2019
@cherifGsoul cherifGsoul deleted the add-links-deprecated-docs branch April 2, 2019 20:04
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.

2 participants