Skip to content

Commit b7b0d76

Browse files
Merge pull request #2969 from jasonrandrews/review2
Change author_primary to author in copilot-instructions and other tem…
2 parents f1b5bac + 206e384 commit b7b0d76

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Install guides must include:
7777
- `title`
7878
- `minutes_to_complete`
7979
- `official_docs`
80-
- `author_primary`
80+
- `author`
8181
- `weight: 1`
8282
- `layout: installtoolsall`
8383

archetypes/install-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: PLACEHOLDER TITLE
33
minutes_to_complete: 10
44
official_docs: PLACEHOLDER LINK
5-
author_primary: PLACEHOLDER NAME
5+
author: PLACEHOLDER NAME
66

77
### FIXED, DO NOT MODIFY
88
weight: 1 # Defines page ordering. Must be 1 for first (or only) page.

archetypes/multi-tool-install-guide/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: PLACEHOLDER TITLE
3-
author_primary: PLACEHOLDER NAME
3+
author: PLACEHOLDER NAME
44

55
### FIXED, DO NOT MODIFY
66
weight: 1 # Defines page ordering. Must be 1 for first (or only) page.

archetypes/multi-tool-install-guide/tool-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: PLACEHOLDER TOOL 1
33
minutes_to_complete: 10
44
official_docs: PLACEHOLDER LINK
5-
author_primary: PLACEHOLDER NAME
5+
author: PLACEHOLDER NAME
66
weight: 2
77

88
### FIXED, DO NOT MODIFY

archetypes/multi-tool-install-guide/tool-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: PLACEHOLDER TOOL 2
33
minutes_to_complete: 10
44
official_docs: PLACEHOLDER LINK
5-
author_primary: PLACEHOLDER NAME
5+
author: PLACEHOLDER NAME
66
weight: 3
77

88
### FIXED, DO NOT MODIFY

themes/arm-design-system-hugo-theme/layouts/partials/head/social.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,30 @@
2626
{{ if eq .Parent.Title "Install Guides"}}
2727
{{$title = printf "%s: Install Guide" .Title }}
2828
{{$desc = printf "Get up and running quickly with the most common tool settings with code snippets, using this %s installation guide." .Title}}
29-
{{$author = .Params.author_primary}}
29+
{{$author = .Params.author}}
3030
<!-- Install guide subpages in multiinstall -->
3131
{{else}}
3232
{{$title = printf "%s: Install Guide" .Title }}
3333
{{$desc = printf "Get up and running quickly with the most common tool settings with code snippets, using this %s installation guide." ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Title}}
34-
{{$author = ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Params.author_primary}}
34+
{{$author = ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Params.author}}
3535
{{end}}
3636
{{else}}
3737
<!-- Learning path subpages -->
3838
{{$title = printf "%s: %s" ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Title .Title}}
3939
{{$desc = ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Params.who_is_this_for}}
40-
{{$author = ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Params.author_primary}}
40+
{{$author = ($.Site.GetPage (path.Dir (path.Dir .RelPermalink))).Params.author}}
4141
{{end}}
4242
{{else if $is_content}}
4343
{{if eq .Layout "installtoolsall"}}
4444
<!-- Install guide _index.md page -->
4545
{{$title = printf "%s: Install Guide" .Title}}
4646
{{$desc = printf "Get up and running quickly with the most common tool settings with code snippets, using this %s installation guide." .Title}}
47-
{{$author = .Params.author_primary}}
47+
{{$author = .Params.author}}
4848
{{else}}
4949
<!-- Learning path _index.md page -->
5050
{{$title = .Title}}
5151
{{$desc = .Params.who_is_this_for}}
52-
{{$author = .Params.author_primary}}
52+
{{$author = .Params.author}}
5353
{{end}}
5454
{{end}}
5555

tools/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def content_parser(directory, period):
5656
logging.debug(f"Last updated: {date}")
5757
author = "None"
5858
for directory_list in open(directory +"/" + item):
59-
if re.search("author_primary", directory_list):
59+
if re.search("^author:", directory_list):
6060
# split and strip out '\n'
6161
author = directory_list.split(": ")[1].rstrip()
6262
logging.debug(f"Primary author {author}")

0 commit comments

Comments
 (0)