mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 06:19:21 +00:00
Add announcements to software documentation (#1285)
* Add Windows announcements * Minor fix * Add Ubuntu announcements * Minor fix * Add announcements to win16 template * Cleanup announcement files * Rename announcements files
This commit is contained in:
committed by
GitHub
parent
97e4ea8356
commit
b7c69ef560
0
images/linux/announcements.md
Normal file
0
images/linux/announcements.md
Normal file
@@ -8,6 +8,10 @@
|
||||
source $HELPER_SCRIPTS/document.sh
|
||||
|
||||
WriteItem "<!--- DO NOT EDIT - This markdown file is autogenerated. -->"
|
||||
|
||||
Announcements=$(cat $HELPER_SCRIPTS/announcements.md)
|
||||
WriteItem $Announcements
|
||||
|
||||
AddTitle "$(lsb_release -ds)"
|
||||
WriteItem "The following software is installed on machines with the $IMAGE_VERSION update."
|
||||
WriteItem "***"
|
||||
|
||||
@@ -86,6 +86,11 @@
|
||||
"source": "{{template_dir}}/scripts/helpers",
|
||||
"destination": "{{user `helper_script_folder`}}"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{template_dir}}/announcements.md",
|
||||
"destination": "{{user `helper_script_folder`}}/announcements.md"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{template_dir}}/scripts/installers",
|
||||
|
||||
@@ -89,6 +89,11 @@
|
||||
"source": "{{template_dir}}/scripts/helpers",
|
||||
"destination": "{{user `helper_script_folder`}}"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{template_dir}}/announcements.md",
|
||||
"destination": "{{user `helper_script_folder`}}/announcements.md"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{template_dir}}/scripts/installers",
|
||||
|
||||
@@ -91,6 +91,11 @@
|
||||
"source": "{{template_dir}}/scripts/helpers",
|
||||
"destination": "{{user `helper_script_folder`}}"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{template_dir}}/announcements.md",
|
||||
"destination": "{{user `helper_script_folder`}}/announcements.md"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{template_dir}}/scripts/installers",
|
||||
|
||||
@@ -84,6 +84,11 @@
|
||||
"source": "{{ template_dir }}/scripts/SoftwareReport",
|
||||
"destination": "{{user `image_folder`}}"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{ template_dir }}/announcements.md",
|
||||
"destination": "{{user `image_folder`}}/SoftwareReport/announcements.md"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{ template_dir }}/scripts/Tests",
|
||||
|
||||
@@ -84,6 +84,11 @@
|
||||
"source": "{{ template_dir }}/scripts/SoftwareReport",
|
||||
"destination": "{{user `image_folder`}}"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{ template_dir }}/announcements.md",
|
||||
"destination": "{{user `image_folder`}}/SoftwareReport/announcements.md"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{ template_dir }}/scripts/Tests",
|
||||
|
||||
0
images/win/announcements.md
Normal file
0
images/win/announcements.md
Normal file
@@ -10,6 +10,10 @@ Import-Module (Join-Path $PSScriptRoot "SoftwareReport.VisualStudio.psm1") -Disa
|
||||
|
||||
$markdown = ""
|
||||
|
||||
$Announcements = Get-Content -Path $(Join-Path $PSScriptRoot "announcements.md") -Raw
|
||||
$markdown += $Announcements
|
||||
$markdown += New-MDNewLine
|
||||
|
||||
$OSName = Get-OSName
|
||||
$markdown += New-MDHeader "$OSName" -Level 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user