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

Update script to include file links #1380

Open
Keboo opened this issue Aug 21, 2019 · 1 comment

Comments

@Keboo
Copy link
Member

@Keboo Keboo commented Aug 21, 2019

Right now we are generating the control styles wiki page using this powershell script. This script is run as part of a pipeline that is triggered on every commit into master.
Right now the output markdown file is just a long list of names of all of the control styles. It would be ideal if each of these was a link back to the original source code. We should update the script to turn each of these items into a link.

The exact format of the link should be:

https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/**CurrentCommitHash**/**RelativePathToFile**#L**LineNumber**

For example the link to the MaterialDesignRaisedButton at commit 4108abe would be:

https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/4108abe301116e59dcbacd3c26fc252615e8de28/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Button.xaml#L32

You can get the current commit hash by using: git log -1 --pretty=format:"%H"

@Keboo

This comment has been minimized.

Copy link
Member Author

@Keboo Keboo commented Oct 15, 2019

This have been partially completed.
Two more items that would be nice to add

  • Links for the (default style)
  • Links to exact line numbers in the source.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.