Skip to content

Update script to include file links #1380

@Keboo

Description

@Keboo

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestItems are good for new contributors during hacktoberfest. https://hacktoberfest.digitalocean.com/enhancementgood first issueItems are good for new contributors.up-for-grabswikiThis item has wiki changes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions