Skip to content

Commit eba22ce

Browse files
authored
Create landing page for sample scripts (#4742)
* create landing page for sample scripts * fix TOC and docfx * reorder cards * reordering cards
1 parent 96c118d commit eba22ce

File tree

5 files changed

+109
-24
lines changed

5 files changed

+109
-24
lines changed

reference/docfx.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@
33
"content": [
44
{ "files": ["bread/toc.yml"], "dest": "scripting" },
55

6-
{ "files": ["toc.yml"], "src": "docs-conceptual", "version": "powershell-3.0", "dest": "scripting/powershell-3.0" },
6+
{ "files": ["toc.yml","**/**.yml"], "src": "docs-conceptual", "version": "powershell-3.0", "dest": "scripting/powershell-3.0" },
77
{ "files": ["**/*.md"], "src": "docs-conceptual", "version": "powershell-3.0", "dest": "scripting" },
88
{ "files": ["toc.yml"], "src": "3.0", "version": "powershell-3.0", "dest": "module/psdocs" },
99
{ "files": ["**/*.md"], "src": "3.0", "version": "powershell-3.0", "exclude": ["docs-conceptual/**"], "dest": "module" },
1010

11-
{ "files": ["toc.yml"], "src": "docs-conceptual", "version": "powershell-4.0", "dest": "scripting/powershell-4.0" },
11+
{ "files": ["toc.yml","**/**.yml"], "src": "docs-conceptual", "version": "powershell-4.0", "dest": "scripting/powershell-4.0" },
1212
{ "files": ["**/*.md"], "src": "docs-conceptual", "version": "powershell-4.0", "dest": "scripting" },
1313
{ "files": ["toc.yml"], "src": "4.0", "version": "powershell-4.0", "dest": "module/psdocs" },
1414
{ "files": ["**/*.md"], "src": "4.0", "version": "powershell-4.0", "exclude": ["docs-conceptual/**"], "dest": "module" },
1515

16-
{ "files": ["toc.yml"], "src": "docs-conceptual", "version": "powershell-5.0", "dest": "scripting/powershell-5.0" },
16+
{ "files": ["toc.yml","**/**.yml"], "src": "docs-conceptual", "version": "powershell-5.0", "dest": "scripting/powershell-5.0" },
1717
{ "files": ["**/*.md"], "src": "docs-conceptual", "version": "powershell-5.0", "dest": "scripting" },
1818
{ "files": ["toc.yml"], "src": "5.0", "version": "powershell-5.0", "dest": "module/psdocs" },
1919
{ "files": ["**/*.md"], "src": "5.0", "version": "powershell-5.0", "exclude": ["docs-conceptual/**"], "dest": "module" },
2020

21-
{ "files": ["toc.yml"], "src": "docs-conceptual", "version": "powershell-5.1", "dest": "scripting/powershell-5.1" },
21+
{ "files": ["toc.yml","**/**.yml"], "src": "docs-conceptual", "version": "powershell-5.1", "dest": "scripting/powershell-5.1" },
2222
{ "files": ["**/*.md"], "src": "docs-conceptual", "version": "powershell-5.1", "dest": "scripting" },
2323
{ "files": ["toc.yml"], "src": "5.1", "version": "powershell-5.1", "dest": "module/psdocs" },
2424
{ "files": ["**/*.md"], "src": "5.1", "version": "powershell-5.1", "exclude": ["docs-conceptual/**"], "dest": "module" },
2525

26-
{ "files": ["toc.yml"], "src": "docs-conceptual", "version": "powershell-6", "dest": "scripting/powershell-6" },
26+
{ "files": ["toc.yml","**/**.yml"], "src": "docs-conceptual", "version": "powershell-6", "dest": "scripting/powershell-6" },
2727
{ "files": ["**/*.md"], "src": "docs-conceptual", "version": "powershell-6", "dest": "scripting" },
2828
{ "files": ["toc.yml"], "src": "6", "version": "powershell-6", "dest": "module/psdocs" },
2929
{ "files": ["**/*.md"], "src": "6", "version": "powershell-6", "exclude": ["docs-conceptual/**"], "dest": "module" },
3030

31-
{ "files": ["toc.yml"], "src": "docs-conceptual", "version": "powershell-7", "dest": "scripting/powershell-7" },
31+
{ "files": ["toc.yml","**/**.yml"], "src": "docs-conceptual", "version": "powershell-7", "dest": "scripting/powershell-7" },
3232
{ "files": ["**/*.md"], "src": "docs-conceptual", "version": "powershell-7", "dest": "scripting" },
3333
{ "files": ["toc.yml"], "src": "7", "version": "powershell-7", "dest": "module/psdocs" },
3434
{ "files": ["**/*.md"], "src": "7", "version": "powershell-7", "exclude": ["docs-conceptual/**"], "dest": "module" },

reference/docs-conceptual/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"build": {
33
"content": [
4-
{ "files": ["**/**.md"], "exclude": ["**/obj/**"] }
4+
{ "files": ["**/**.md","**/**.yml"], "exclude": ["**/obj/**"] }
55
],
66
"globalMetadata": {
77
"toc_preview": true,

reference/docs-conceptual/samples/Sample-Scripts-for-Administration.md

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
### YamlMime:Landing
2+
3+
title: Sample scripts for system administration # < 60 chars
4+
summary: A collection of examples walks through scenarios for administering systems with PowerShell. # < 160 chars
5+
6+
metadata:
7+
title: Sample scripts for system administration # Required; page title displayed in search results. Include the brand. < 60 chars.
8+
description: A collection of examples walks through scenarios for administering systems with PowerShell. # Required; article description that is displayed in search results. < 160 chars.
9+
ms.topic: landing-page # Required
10+
author: sdwheeler #Required; your GitHub user alias, with correct capitalization.
11+
ms.author: sewhee #Required; microsoft alias of author; optional team alias.
12+
ms.date: 09/05/2019 #Required; mm/dd/yyyy format.
13+
14+
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn |
15+
# overview | quickstart | reference | tutorial | video | whats-new
16+
17+
landingContent:
18+
# Cards and links should be based on top customer tasks or top subjects
19+
# Start card title with a verb
20+
- title: Working with objects
21+
linkLists:
22+
- linkListType: how-to-guide
23+
links:
24+
- text: Viewing object structure
25+
url: ./viewing-object-structure--get-member-.md
26+
- text: Selecting parts of object
27+
url: ./selecting-parts-of-objects--select-object-.md
28+
- text: Filtering objects in the pipeline
29+
url: ./removing-objects-from-the-pipeline--where-object-.md
30+
- text: Sorting objects
31+
url: ./sorting-objects.md
32+
- text: Repeating a task for multiple objects
33+
url: ./repeating-a-task-for-multiple-objects--foreach-object-.md
34+
- text: Creating .NET and COM objects
35+
url: ./creating-.net-and-com-objects--new-object-.md
36+
- text: Using static classes and methods
37+
url: ./using-static-classes-and-methods.md
38+
- text: Getting WMI objects - Get-WmiObject
39+
url: ./getting-wmi-objects--get-wmiobject-.md
40+
- title: Managing computers
41+
linkLists:
42+
- linkListType: how-to-guide
43+
links:
44+
- text: Changing computer state
45+
url: ./changing-computer-state.md
46+
- text: Collecting information about computers
47+
url: ./collecting-information-about-computers.md
48+
- text: Creating Get-WinEvent queries with FilterHashtable
49+
url: ./creating-get-winEvent-queries-with-filterhashtable.md
50+
- title: Managing processes & services
51+
linkLists:
52+
- linkListType: how-to-guide
53+
links:
54+
- text: Managing processes with process cmdlets
55+
url: ./managing-processes-with-process-cmdlets.md
56+
- text: Managing services
57+
url: ./managing-services.md
58+
- text: Managing Windows PowerShell drives
59+
url: ./managing-windows-powershell-drives.md
60+
- text: Working with printers
61+
url: ./working-with-printers.md
62+
- text: Performing networking tasks
63+
url: ./performing-networking-tasks.md
64+
- text: Working with software installations
65+
url: ./working-with-software-installations.md
66+
- text: Decode a PowerShell command from a running process
67+
url: ./decode-powershell-command-from-a-running-process.md
68+
- title: Working with output
69+
linkLists:
70+
- linkListType: concept
71+
links:
72+
- text: Redirecting data with Out-* cmdlets
73+
url: ./redirecting-data-with-out---cmdlets.md
74+
- text: Using format commands to change output view
75+
url: ./using-format-commands-to-change-output-view.md
76+
- title: Managing drives & files
77+
linkLists:
78+
- linkListType: how-to-guide
79+
links:
80+
- text: Managing current location
81+
url: ./managing-current-location.md
82+
- text: Working with files and folders
83+
url: ./working-with-files-and-folders.md
84+
- text: Working with files folders and registry keys
85+
url: ./working-with-files-folders-and-registry-keys.md
86+
- text: Working with registry entries
87+
url: ./working-with-registry-entries.md
88+
- text: Working with registry keys
89+
url: ./working-with-registry-keys.md
90+
- title: Creating UI elements
91+
linkLists:
92+
- linkListType: how-to-guide
93+
links:
94+
- text: Creating a custom input box
95+
url: ./creating-a-custom-input-box.md
96+
- text: Creating a graphical date picker
97+
url: ./creating-a-graphical-date-picker.md
98+
- text: Multiple selection list boxes
99+
url: ./multiple-selection-list-boxes.md
100+
- text: Selecting items from a list box
101+
url: ./selecting-items-from-a-list-box.md

reference/docs-conceptual/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
- name: Sample scripts
200200
items:
201201
- name: Sample scripts for administration
202-
href: samples/sample-scripts-for-administration.md
202+
href: samples/sample-scripts-for-administration.yml
203203
- name: Changing computer state
204204
href: samples/changing-computer-state.md
205205
- name: Collecting information about computers

0 commit comments

Comments
 (0)