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:
Vladimir Safonkin
2020-07-28 10:18:33 +00:00
committed by GitHub
parent 97e4ea8356
commit b7c69ef560
9 changed files with 33 additions and 0 deletions

View File

View 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 "***"

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

View 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