Skip to content

Commit 9d35e91

Browse files
committed
update script to allow : in title
1 parent 7e5de18 commit 9d35e91

File tree

2 files changed

+192
-3
lines changed

2 files changed

+192
-3
lines changed

merge-toc.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ function Replace-ContentTitle
7575
$originalNameLine = "name: " + $name
7676
foreach($line in $lines)
7777
{
78-
if($line -eq $originalNameLine)
78+
if($line.StartsWith("name: "))
7979
{
80-
$line = "name: $($Script:titleMap.$name) - $name"
80+
$line = "name: '$($Script:titleMap.$name) - $name'"
8181
}
8282
$finalLines.Add($line)
8383
}

titleMapping.json

Lines changed: 190 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,192 @@
11
{
2-
"az vm": "Virtual Machines"
2+
"az": "Azure CLI 2.0 (Preview): Command reference",
3+
"az account": "Azure CLI 2.0 (Preview): Subscriptions",
4+
"az acr": "Azure CLI 2.0 (Preview): Container Registry",
5+
"az acr credential": "Azure CLI 2.0 (Preview): Container Registry credentials",
6+
"az acr repository": "Azure CLI 2.0 (Preview): Container Registry repositories",
7+
"az acs": "Azure CLI 2.0 (Preview): Container Service",
8+
"az acs dcos": "Azure CLI 2.0 (Preview): Container Service - DC/OS",
9+
"az acs kubernetes": "Azure CLI 2.0 (Preview): Container Service - Kubernetes",
10+
"az ad": "Azure CLI 2.0 (Preview): Azure Active Directory (AAD)",
11+
"az ad app": "Azure CLI 2.0 (Preview): AAD applications",
12+
"az ad group": "Azure CLI 2.0 (Preview): AAD groups",
13+
"az ad sp": "Azure CLI 2.0 (Preview): AAD service principals",
14+
"az ad user": "Azure CLI 2.0 (Preview): AAD users",
15+
"az appservice": "Azure CLI 2.0 (Preview): App Service",
16+
"az appservice plan": "Azure CLI 2.0 (Preview): App Service plans",
17+
"az appservice web": "Azure CLI 2.0 (Preview): Web apps",
18+
"az appservice web config": "Azure CLI 2.0 (Preview): Web Apps configuration",
19+
"az appservice web config appsettings": "Azure CLI 2.0 (Preview): Web Apps application settings",
20+
"az appservice web config container": "Azure CLI 2.0 (Preview): Web Apps container settings",
21+
"az appservice web config hostname": "Azure CLI 2.0 (Preview): Web Apps hostnames",
22+
"az appservice web deployment": "Azure CLI 2.0 (Preview): Web Apps deployments",
23+
"az appservice web deployment slot": "Azure CLI 2.0 (Preview): Web Apps deployment slots",
24+
"az appservice web deployment user": "Azure CLI 2.0 (Preview): Web Apps deployment users",
25+
"az appservice web log": "Azure CLI 2.0 (Preview): Web Apps logs",
26+
"az appservice web source control": "Azure CLI 2.0 (Preview): Web Apps source control",
27+
"az batch": "Azure CLI 2.0 (Preview): Batch",
28+
"az batch account": "Azure CLI 2.0 (Preview): Batch accounts",
29+
"az batch account autostorage-keys": "Azure CLI 2.0 (Preview): Batch account auto-storage keys",
30+
"az batch account keys": "Azure CLI 2.0 (Preview): Batch account keys",
31+
"az batch application": "Azure CLI 2.0 (Preview): Batch applications",
32+
"az batch application package": "Azure CLI 2.0 (Preview): Batch application packages",
33+
"az batch location": "Azure CLI 2.0 (Preview): Batch locations",
34+
"az batch location quotas": "Azure CLI 2.0 (Preview): Batch location quotas",
35+
"az cloud": "Azure CLI 2.0 (Preview): Could Services",
36+
"az component": "Azure CLI 2.0 (Preview): Components",
37+
"az container": "Azure CLI 2.0 (Preview): Container",
38+
"az container build": "Azure CLI 2.0 (Preview): Docker builds",
39+
"az container release": "Azure CLI 2.0 (Preview): Docker releases",
40+
"az context": "Azure CLI 2.0 (Preview): Azure contexts",
41+
"az documentdb": "Azure CLI 2.0 (Preview): DocumentDB (NoSQL)",
42+
"az feature": "Azure CLI 2.0 (Preview): Resource provider features",
43+
"az group": "Azure CLI 2.0 (Preview): Resource groups",
44+
"az group deployment": "Azure CLI 2.0 (Preview): Depoloyments",
45+
"az group deployment operation": "Azure CLI 2.0 (Preview): Depoloyment operations",
46+
"az iot": "Azure CLI 2.0 (Preview): IoT",
47+
"az iot device": "Azure CLI 2.0 (Preview): IoT devices",
48+
"az iot device message": "Azure CLI 2.0 (Preview): IoT device messaging",
49+
"az iot hub": "Azure CLI 2.0 (Preview): IoT hubs",
50+
"az iot hub consumer-group": "Azure CLI 2.0 (Preview): IoT hub consumer groups",
51+
"az iot hub job": "Azure CLI 2.0 (Preview): IoT hub jobs",
52+
"az iot hub policy": "Azure CLI 2.0 (Preview): IoT hub policies",
53+
"az keyvault": "Azure CLI 2.0 (Preview): Key vaults",
54+
"az keyvault certificate": "Azure CLI 2.0 (Preview): Key vault certificates",
55+
"az keyvault certificate contact": "Azure CLI 2.0 (Preview): Key vault certificate contacts",
56+
"az keyvault certificate issuer": "Azure CLI 2.0 (Preview): Key vault certificate issuers",
57+
"az keyvault certificate issuer admin": "Azure CLI 2.0 (Preview): Key vault certificate issuer administration",
58+
"az keyvault certificate pending": "Azure CLI 2.0 (Preview): Pending key vault certificates",
59+
"az keyvault key": "Azure CLI 2.0 (Preview): Key vault keys",
60+
"az keyvault secret": "Azure CLI 2.0 (Preview): Key vault secrets",
61+
"az network": "Azure CLI 2.0 (Preview): Networks",
62+
"az network application-gateway": "Azure CLI 2.0 (Preview): Application gateways",
63+
"az network application-gateway address-pool": "Azure CLI 2.0 (Preview): Address pools",
64+
"az network application-gateway auth-cert": "Azure CLI 2.0 (Preview): Authorization certificates",
65+
"az network application-gateway frontend-ip": "Azure CLI 2.0 (Preview): Front-end IP addresses",
66+
"az network application-gateway frontend-port": "Azure CLI 2.0 (Preview): Front-end ports",
67+
"az network application-gateway http-listener": "Azure CLI 2.0 (Preview): HTTP listeners",
68+
"az network application-gateway http-settings": "Azure CLI 2.0 (Preview): HTTP settings",
69+
"az network application-gateway probe": "Azure CLI 2.0 (Preview): Application gateway probes",
70+
"az network application-gateway rule": "Azure CLI 2.0 (Preview): Routing rules",
71+
"az network application-gateway ssl-cert": "Azure CLI 2.0 (Preview): SSL certificates",
72+
"az network application-gateway ssl-policy": "Azure CLI 2.0 (Preview): SSL policies",
73+
"az network application-gateway url-path-map": "Azure CLI 2.0 (Preview): URL path maps",
74+
"az network application-gateway url-path-map rule": "Azure CLI 2.0 (Preview): URL path map rules",
75+
"az network application-gateway waf-config": "Azure CLI 2.0 (Preview): Web application firewall settings",
76+
"az network dns": "Azure CLI 2.0 (Preview): DNS domains",
77+
"az network dns record": "Azure CLI 2.0 (Preview): DNS records",
78+
"az network dns record a": "Azure CLI 2.0 (Preview): DNS - A records",
79+
"az network dns record aaaa": "Azure CLI 2.0 (Preview): DNS - AAAA records",
80+
"az network dns record cname": "Azure CLI 2.0 (Preview): DNS - CNAME records",
81+
"az network dns record mx": "Azure CLI 2.0 (Preview): DNS - MX (mail) records",
82+
"az network dns record ns": "Azure CLI 2.0 (Preview): DNS - NS (nameserver) records",
83+
"az network dns record ptr": "Azure CLI 2.0 (Preview): DNS - PTR (pointer) records",
84+
"az network dns record srv": "Azure CLI 2.0 (Preview): DNS - SRV records",
85+
"az network dns record txt": "Azure CLI 2.0 (Preview): DNS - TXT records",
86+
"az network dns record-set": "Azure CLI 2.0 (Preview): DNS - record sets",
87+
"az network dns zone": "Azure CLI 2.0 (Preview): DNS zones",
88+
"az network express-route": "Azure CLI 2.0 (Preview): Express routes",
89+
"az network express-route auth": "Azure CLI 2.0 (Preview): Express route circuit authentication",
90+
"az network express-route peering": "Azure CLI 2.0 (Preview): Express route peering",
91+
"az network lb": "Azure CLI 2.0 (Preview): Load balancers",
92+
"az network lb address-pool": "Azure CLI 2.0 (Preview): Backend address pools",
93+
"az network lb frontend-ip": "Azure CLI 2.0 (Preview): Front-end IP addresses",
94+
"az network lb inbound-nat-pool": "Azure CLI 2.0 (Preview): Inbound NAT address pools",
95+
"az network lb inbound-nat-rule": "Azure CLI 2.0 (Preview): Inbound NAT address rules",
96+
"az network lb probe": "Azure CLI 2.0 (Preview): Load balancer probes",
97+
"az network lb rule": "Azure CLI 2.0 (Preview): Load balancing rules",
98+
"az network local-gateway": "Azure CLI 2.0 (Preview): Local gateways",
99+
"az network nic": "Azure CLI 2.0 (Preview): Network interfaces",
100+
"az network nic ip-config": "Azure CLI 2.0 (Preview): NIC IP configurations",
101+
"az network nic ip-config address-pool": "Azure CLI 2.0 (Preview): Address pools",
102+
"az network nic ip-config inbound-nat-rules": "Azure CLI 2.0 (Preview): Inbound NAT rules",
103+
"az network nsg": "Azure CLI 2.0 (Preview): Network security groups",
104+
"az network nsg rule": "Azure CLI 2.0 (Preview): NSG rules",
105+
"az network public-ip": "Azure CLI 2.0 (Preview): Public IP addresses",
106+
"az network route-table": "Azure CLI 2.0 (Preview): Route tables",
107+
"az network route-table route": "Azure CLI 2.0 (Preview): Routes",
108+
"az network traffic-manager": "Azure CLI 2.0 (Preview): Network traffic managers",
109+
"az network traffic-manager endpoint": "Azure CLI 2.0 (Preview): End points",
110+
"az network traffic-manager profile": "Azure CLI 2.0 (Preview): Traffic manager profiles",
111+
"az network vnet": "Azure CLI 2.0 (Preview): Virtual networks",
112+
"az network vnet peering": "Azure CLI 2.0 (Preview): Peering connections",
113+
"az network vnet subnet": "Azure CLI 2.0 (Preview): Subnets",
114+
"az network vnet revoked-cert": "Azure CLI 2.0 (Preview): Revoked certifications",
115+
"az network vnet root-cert": "Azure CLI 2.0 (Preview): Root certificates",
116+
"az network vnet-gateway": "Azure CLI 2.0 (Preview): Virtual network gateways",
117+
"az network vnet-gateway revoked-cert": "Azure CLI 2.0 (Preview): Revoked certificates",
118+
"az network vnet-gateway root-cert": "Azure CLI 2.0 (Preview): Root certificates",
119+
"az network vpn-connection": "Azure CLI 2.0 (Preview): VPN connections",
120+
"az network vpn-connection shared-key": "Azure CLI 2.0 (Preview): VPN shared keys",
121+
"az policy": "Azure CLI 2.0 (Preview): Resource policies",
122+
"az policy assignment": "Azure CLI 2.0 (Preview): Resource policy assignments",
123+
"az policy definition": "Azure CLI 2.0 (Preview): Resource policy definitions",
124+
"az provider": "Azure CLI 2.0 (Preview): Resource providers",
125+
"az redis": "Azure CLI 2.0 (Preview): Redis cache",
126+
"az redis patch-schedule": "Azure CLI 2.0 (Preview): Patch schedules",
127+
"az resource": "Azure CLI 2.0 (Preview): Resources",
128+
"az role": "Azure CLI 2.0 (Preview): Roles",
129+
"az role assignment": "Azure CLI 2.0 (Preview): Role assignments",
130+
"az role definition": "Azure CLI 2.0 (Preview): Role definitions",
131+
"az sql": "Azure CLI 2.0 (Preview): SQL",
132+
"az sql db": "Azure CLI 2.0 (Preview): SQL Databases",
133+
"az sql db data-warehouse": "Azure CLI 2.0 (Preview): SQL data warehouses",
134+
"az sql db replication-link": "Azure CLI 2.0 (Preview): SQL replication links",
135+
"az sql db restore-point": "Azure CLI 2.0 (Preview): SQL restore points",
136+
"az sql db service-tier-advisor": "Azure CLI 2.0 (Preview): SQL service tier advisors",
137+
"az sql db transparent-data-encryption": "Azure CLI 2.0 (Preview): SQL transparent data encryption",
138+
"az sql elastic-pools db": "Azure CLI 2.0 (Preview): SQL elastic pool database activity",
139+
"az sql elastic-pools recommended": "Azure CLI 2.0 (Preview): SQL recommended elastic pools",
140+
"az sql elastic-pools recommended db": "Azure CLI 2.0 (Preview): SQL elastic pool database",
141+
"az sql elastic-pools": "Azure CLI 2.0 (Preview): SQL Elastic pools",
142+
"az sql server": "Azure CLI 2.0 (Preview): SQL Server",
143+
"az sql server firewall": "Azure CLI 2.0 (Preview): SQL Server firewalls",
144+
"az sql server service-objective": "Azure CLI 2.0 (Preview): SQL Server service objectives",
145+
"az storage": "Azure CLI 2.0 (Preview): Storage",
146+
"az storage account": "Azure CLI 2.0 (Preview): Storage accounts",
147+
"az storage account keys": "Azure CLI 2.0 (Preview): Storage accounts keys",
148+
"az storage blob": "Azure CLI 2.0 (Preview): Blob storage",
149+
"az storage blob copy": "Azure CLI 2.0 (Preview): Blob storage copy operations",
150+
"az storage blob lease": "Azure CLI 2.0 (Preview): Blob storage leases",
151+
"az storage blob metadata": "Azure CLI 2.0 (Preview): Blob storage metadata",
152+
"az storage blob service-properties": "Azure CLI 2.0 (Preview): Blob storage service properties",
153+
"az storage container": "Azure CLI 2.0 (Preview): Storage containers",
154+
"az storage container lease": "Azure CLI 2.0 (Preview): Storage container leases",
155+
"az storage container metadata": "Azure CLI 2.0 (Preview): Storage container metadata",
156+
"az storage container policy": "Azure CLI 2.0 (Preview): Storage container policies",
157+
"az storage cors": "Azure CLI 2.0 (Preview): Cross-origin resorce sharing",
158+
"az storage directory": "Azure CLI 2.0 (Preview): Storage directories",
159+
"az storage directory metadata": "Azure CLI 2.0 (Preview): Directory metadata",
160+
"az storage entity": "Azure CLI 2.0 (Preview): Table storage entities",
161+
"az storage file": "Azure CLI 2.0 (Preview): Files",
162+
"az storage file copy": "Azure CLI 2.0 (Preview): File copy operations",
163+
"az storage file metadata": "Azure CLI 2.0 (Preview): File metadata",
164+
"az storage logging": "Azure CLI 2.0 (Preview): Storage service logging",
165+
"az storage message": "Azure CLI 2.0 (Preview): Storage messages",
166+
"az storage metrics": "Azure CLI 2.0 (Preview): Storage metrics",
167+
"az storage queue": "Azure CLI 2.0 (Preview): Storage queues",
168+
"az storage queue metadata": "Azure CLI 2.0 (Preview): Storage queue metadata",
169+
"az storage queue policy": "Azure CLI 2.0 (Preview): Storage queue policies",
170+
"az storage share": "Azure CLI 2.0 (Preview): File shares",
171+
"az storage share metadata": "Azure CLI 2.0 (Preview): File share metadata",
172+
"az storage share policy": "Azure CLI 2.0 (Preview): File share policies",
173+
"az storage table": "Azure CLI 2.0 (Preview): Tables",
174+
"az storage table policy": "Azure CLI 2.0 (Preview): Table policies",
175+
"az tag": "Azure CLI 2.0 (Preview): Resource tags",
176+
"az taskhelp": "Azure CLI 2.0 (Preview): Help content",
177+
"az vm": "Azure CLI 2.0 (Preview): Virtual machines (VM)",
178+
"az vm access": "Azure CLI 2.0 (Preview): VM user access",
179+
"az vm availability-set": "Azure CLI 2.0 (Preview): VM availability sets",
180+
"az vm boot-diagnostics": "Azure CLI 2.0 (Preview): VM boot diagnostics",
181+
"az vm diagnostics": "Azure CLI 2.0 (Preview): VM diagnostics",
182+
"az vm disk": "Azure CLI 2.0 (Preview): VM storage disks",
183+
"az vm extension": "Azure CLI 2.0 (Preview): VM extensions",
184+
"az vm extension image": "Azure CLI 2.0 (Preview): VM extension images",
185+
"az vm image": "Azure CLI 2.0 (Preview): VM images",
186+
"az vm nic": "Azure CLI 2.0 (Preview): VM network interfaces",
187+
"az vmss": "Azure CLI 2.0 (Preview): VM scale sets (VMSS)",
188+
"az vmss diagnostics": "Azure CLI 2.0 (Preview): VMSS diagnostics",
189+
"az vmss extension": "Azure CLI 2.0 (Preview): VMSS extensions",
190+
"az vmss extension image": "Azure CLI 2.0 (Preview): VMSS extension images",
191+
"az vmss nic": "Azure CLI 2.0 (Preview): VMSS network interfaces"
3192
}

0 commit comments

Comments
 (0)