diff --git a/.doc_gen/templates/zonbook/example_description_template.xml b/.doc_gen/templates/zonbook/example_description_template.xml deleted file mode 100644 index f7c271f0f95..00000000000 --- a/.doc_gen/templates/zonbook/example_description_template.xml +++ /dev/null @@ -1,4 +0,0 @@ -{{- template "prologue"}} - -{{- template "service_synopsis" .}} - diff --git a/.doc_gen/templates/zonbook/example_language_template.xml b/.doc_gen/templates/zonbook/example_language_template.xml deleted file mode 100644 index 9e6f6ce07fa..00000000000 --- a/.doc_gen/templates/zonbook/example_language_template.xml +++ /dev/null @@ -1,99 +0,0 @@ -{{- template "prologue"}} -{{- $include_base := "file://AWSShared/"}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_base = ""}} - {{- $include_docs = ""}} -{{- end}} -{{- define "github_note"}} - - - There's more on GitHub. Find the complete example and learn how to set up and run in the - {{- if .GitHubName}} - {{.GitHubName}} - repository. - {{- else if hasPrefix .GitHubUrl "https:"}} - {{.Category}} - repository. - {{- else}} - &AWS; Code - Examples Repository. - {{- end}} - - -{{- end}} - - {{- range $version := .Versions}} - - {{- $version.SdkEntity.Short}} - - {{- if $version.Caveat}} - {{$version.Caveat}} - {{- end}} - {{- if $version.BlockContent}} - - - Services used in this example - {{- range $svc_ent := $version.Services}} - {{$svc_ent.Short}} - {{- end}} - - {{- else}} - {{- if and $version.GitHubUrl (not $version.GitHubNoteAtBottom)}} - {{- template "github_note" $version}} - {{- end}} - {{- range $version.Excerpts}} - - {{- if .Description}} - {{- if hasPrefix .Description "{{.Description}} - {{- end}} - {{- end}} - {{- if .SnippetTags}} - - {{range .SnippetTags}} -{{end}} - {{- end}} - - {{- end}} - {{- if or $version.SdkGuideLink.Url (gt (len $version.ApiRefLinks) 0)}} - - {{- if $version.SdkGuideLink.Url}} - - - For more information, see {{$version.SdkGuideLink.Text}}. - - - {{- end}} - {{- if gt (len $version.ApiRefLinks) 0 }} - - {{- if eq (len $version.ApiRefLinks) 1 }} - - For API details, see - {{- range $actionLink := $version.ApiRefLinks}} - {{$actionLink.Text}} - {{- end}} - in {{$version.ApiRefName}}. - - {{- else }} - For API details, see the following topics in {{$version.ApiRefName}}. - - {{- range $actionLink := $version.ApiRefLinks}} - {{$actionLink.Text}} - {{- end }} - - {{- end }} - - {{- end}} - - {{- end}} - {{- end}} - {{- if and $version.GitHubUrl $version.GitHubNoteAtBottom}} - {{- template "github_note" $version}} - {{- end}} - - - {{- end}} - diff --git a/.doc_gen/templates/zonbook/example_tablist_template.xml b/.doc_gen/templates/zonbook/example_tablist_template.xml deleted file mode 100644 index 4cb731fbe16..00000000000 --- a/.doc_gen/templates/zonbook/example_tablist_template.xml +++ /dev/null @@ -1,15 +0,0 @@ -{{- template "prologue"}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} - - {{- range $language, $example_id := .}} - - {{$language}} - - - - - {{- end}} - \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/library_by_sdk_chapter.xml b/.doc_gen/templates/zonbook/library_by_sdk_chapter.xml deleted file mode 100644 index 5a4e126451a..00000000000 --- a/.doc_gen/templates/zonbook/library_by_sdk_chapter.xml +++ /dev/null @@ -1,104 +0,0 @@ -{{- template "prologue"}} -{{- $omitted_sdks := makeSlice "java_1" "javascript_101" "javascript_102"}} -{{- $html_only_sdks := makeSlice "cli_2" "powershell_4"}} -{{- $chapter_id := "code_example_library_by_sdk"}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} - - - Code examples by SDK using &AWS; SDKs - Code examples by SDK - - Code examples that show how to use &AWS-services; with &AWS; SDKs. - - - The following code examples show you how to use &AWS-services; with an &AWS; software - development kit (SDK). This section is organized by SDK language. - - {{- template "note_example_types" makeSlice 1 1 1 1}} - - More resources - - - - - &AWS; Developer Center - - - &endash; Code examples that you can filter by category or full-text search. - - - - - - &AWS; SDK Examples - - &endash; GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code. - - - - Code examples - {{- range $sdk_examples := .}} - {{- $sdk_ver := printf "%s_%s" $sdk_examples.LanguageSlug $sdk_examples.Version}} - {{- $skip_sdk := false}} - {{- range $omit := $omitted_sdks}} - {{- if eq $omit $sdk_ver}} - {{- $skip_sdk = true}} - {{- end}} - {{- end}} - {{- $html_only := ""}} - {{- range $only := $html_only_sdks}} - {{- if eq $only $sdk_ver}} - {{- $html_only = "buildtype=\"html\""}} - {{- end}} - {{- end}} - {{- if not $skip_sdk}} -
- - Code examples for {{$sdk_examples.SdkEntity.Short}} - {{$sdk_examples.SdkEntity.Short}} - - Code examples that show how to use {{$sdk_examples.SdkEntity.Long}} with &AWS;. - - - The following code examples show you how to use the {{$sdk_examples.SdkEntity.Long}} with &AWS;. - {{- template "note_example_types" makeSlice 1 1 1 1}} - - More resources - - - - - {{$sdk_examples.SdkEntity.Short}} Developer Guide - - - &endash; More about using {{$sdk_examples.Language}} with &AWS;. - - - - - - - &AWS; Developer Center - - - &endash; Code examples that you can filter by category or full-text search. - - - - - - &AWS; SDK Examples - - &endash; GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code. - - - - {{- template "sdk_api_examples" makeSlice $sdk_examples $sdk_ver}} -
- {{- end}} - {{- end}} -
diff --git a/.doc_gen/templates/zonbook/library_by_service_chapter.xml b/.doc_gen/templates/zonbook/library_by_service_chapter.xml deleted file mode 100644 index 2bac0577b37..00000000000 --- a/.doc_gen/templates/zonbook/library_by_service_chapter.xml +++ /dev/null @@ -1,76 +0,0 @@ -{{- template "prologue"}} -{{- $chapter_id := "code_example_library_by_service"}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} - - - Code examples by service using &AWS; SDKs - Code examples by service - - Code examples that show how to use &AWS-services; with &AWS; SDKs. - - - The following code examples show you how to use &AWS-services; with an &AWS; software development kit (SDK). - This section is organized by &AWS-service;. - {{- template "note_example_types" makeSlice 1 1 1 1}} - - More resources - - - - - &AWS; Developer Center - - - &endash; Code examples that you can filter by category or full-text search. - - - - - - &AWS; SDK Examples - - &endash; GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code. - - - - Code examples - {{- range $svc_sort, $service := .}} - {{- $hello := index $service.CategorizedExampleSets "Hello"}} - {{- $basics := index $service.CategorizedExampleSets "Basics"}} - {{- $actions := index $service.CategorizedExampleSets "Actions"}} - {{- $scenarios := index $service.CategorizedExampleSets "Scenarios"}} - {{- $section_id := printf "%s_code_examples" $service.Model}} -
- - Code examples for {{$service.ServiceEntity.Short}} using &AWS; SDKs - {{$service.ServiceEntity.Short}} - - Code examples that show how to use {{$service.ServiceEntity.Short}} with an &AWS; SDK. - - - The following code examples show you how to use {{$service.ServiceEntity.Long}} with an &AWS; software development kit (SDK). - {{- template "note_example_types" makeSlice $hello.Examples $basics.Examples $actions.Examples $scenarios.Examples}} - - More resources - - - {{$service.ServiceEntity.Short}} {{$service.ServiceGuide.Text}} - &endash; More information about {{$service.ServiceEntity.Short}}. - {{$service.ServiceEntity.Short}} API Reference - &endash; Details about all available {{$service.ServiceEntity.Short}} actions. - &AWS; Developer Center - &endash; Code examples that you can filter by category or full-text search. - &AWS; SDK Examples - &endash; GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code. - - {{- template "hello" makeSlice $service.CategorizedExampleSets "" $service.Model}} - Code examples - {{- template "basics" makeSlice $service $section_id 1}} - {{- template "scenarios" makeSlice $service $section_id 1}} - {{- template "customs" makeSlice $service $section_id 1}} -
- {{- end}} -
diff --git a/.doc_gen/templates/zonbook/library_by_service_tag_chapter.xml b/.doc_gen/templates/zonbook/library_by_service_tag_chapter.xml deleted file mode 100644 index 40449c5f4e9..00000000000 --- a/.doc_gen/templates/zonbook/library_by_service_tag_chapter.xml +++ /dev/null @@ -1,30 +0,0 @@ -{{- template "prologue"}} -{{- $chapter_id := printf "code_example_library_by_%s" .TagName}} -{{- $grouping := ""}} -{{- if eq .TagName "product_categories"}} - {{- $grouping = " by product category"}} -{{- end}} - - - Code examples{{$grouping}} using &AWS; SDKs - Code examples{{$grouping}} - - Code examples{{$grouping}} that show how to use &AWS-services; with - &AWS; software development kits (SDKs). - - - Code examples{{$grouping}} that show how to use &AWS-services; with - &AWS; software development kits (SDKs). - {{- range $category, $chapters := .TagValues}} -
- - {{$category}} - - - {{- range $chapter := $chapters}} - - {{- end}} - -
- {{- end}} -
diff --git a/.doc_gen/templates/zonbook/sdk_chapter_template.xml b/.doc_gen/templates/zonbook/sdk_chapter_template.xml deleted file mode 100644 index 40d0c407771..00000000000 --- a/.doc_gen/templates/zonbook/sdk_chapter_template.xml +++ /dev/null @@ -1,33 +0,0 @@ -{{- template "prologue"}} -{{- $chapter_title := print .SdkEntity.Short " code examples" }} -{{- $chapter_title_abbrev := "Code examples" }} -{{- if .TitleOverride.Title }} - {{- $chapter_title = .TitleOverride.Title }} -{{- end}} -{{- if .TitleOverride.TitleAbbrev }} - {{- $chapter_title_abbrev = .TitleOverride.TitleAbbrev }} -{{- end }} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} -{{- if eq .OutputType "section" }} -
-{{- else }} - -{{- end }} - - {{$chapter_title}} - {{$chapter_title_abbrev}} - - Code examples that show how to use {{.SdkEntity.Long}} with &AWS;. - - - The code examples in this topic show you how to use the {{.SdkEntity.Long}} with &AWS;. - {{- template "note_example_types" makeSlice 1 1 1 1}} - {{- template "sdk_api_examples" makeSlice . .LanguageSlug}} -{{- if eq .OutputType "section" }} -
-{{- else }} - -{{- end }} diff --git a/.doc_gen/templates/zonbook/service_chapter_bundle_template.xml b/.doc_gen/templates/zonbook/service_chapter_bundle_template.xml deleted file mode 100644 index ad41b332a6e..00000000000 --- a/.doc_gen/templates/zonbook/service_chapter_bundle_template.xml +++ /dev/null @@ -1,21 +0,0 @@ -{{- template "prologue"}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} - - - Code examples for {{.BundleOwner.Short}} using &AWS; SDKs - Code examples - - Code examples that show how to use {{.BundleOwner.Short}} with an &AWS; SDK. - - - The following code examples show how to use {{.BundleOwner.Short}} with an &AWS; software development kit (SDK). - {{.BundleOwner.Caveat}} - {{- template "note_complete_list"}} - Code examples - {{- range $model := .BundledModels}} - - {{- end}} - diff --git a/.doc_gen/templates/zonbook/service_chapter_template.xml b/.doc_gen/templates/zonbook/service_chapter_template.xml deleted file mode 100644 index c1ed034d56b..00000000000 --- a/.doc_gen/templates/zonbook/service_chapter_template.xml +++ /dev/null @@ -1,46 +0,0 @@ -{{- template "prologue"}} -{{- $doc_id := "service_code_examples"}} -{{- $hello := index .CategorizedExampleSets "Hello"}} -{{- $basics := index .CategorizedExampleSets "Basics"}} -{{- $actions := index .CategorizedExampleSets "Actions"}} -{{- $scenarios := index .CategorizedExampleSets "Scenarios"}} -{{- $title := printf "Code examples for %s using &AWS; SDKs" .ServiceEntity.Short }} -{{- if .ChapterOverrideTitle }} - {{- $title = .ChapterOverrideTitle }} -{{- end }} -{{- $title_abbrev := "Code examples"}} -{{- if .ChapterOverrideTitleAbbrev }} - {{- $title_abbrev = .ChapterOverrideTitleAbbrev }} -{{- end }} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} -{{- if .Bundle}} -{{- $doc_id = printf "service_code_examples_%s" .Model }} -{{- $title_abbrev = .ServiceEntity.Short }} -
-{{- else}} - -{{end}} - - {{$title}} - {{$title_abbrev}} - - Code examples that show how to use {{.ServiceEntity.Short}} with an &AWS; SDK. - - - The following code examples show how to use {{.ServiceEntity.Short}} with an &AWS; software development kit (SDK). - {{.ServiceEntity.Caveat}} - {{- template "note_example_types" makeSlice $hello.Examples $basics.Examples $actions.Examples $scenarios.Examples}} - {{- template "note_complete_list"}} - {{- template "hello" makeSlice .CategorizedExampleSets "" 0}} - Code examples - {{- template "basics" makeSlice . $doc_id 0}} - {{- template "scenarios" makeSlice . $doc_id 0}} - {{- template "customs" makeSlice . $doc_id 0}} -{{- if .Bundle}} -
-{{- else}} - -{{end}} diff --git a/.doc_gen/templates/zonbook/utility/basics.xml b/.doc_gen/templates/zonbook/utility/basics.xml deleted file mode 100644 index 21ac3cceb6d..00000000000 --- a/.doc_gen/templates/zonbook/utility/basics.xml +++ /dev/null @@ -1,68 +0,0 @@ -{{- define "basics"}} -{{- $service := index . 0}} -{{- $hello := index $service.CategorizedExampleSets "Hello"}} -{{- $basics := index $service.CategorizedExampleSets "Basics"}} -{{- $actions := index $service.CategorizedExampleSets "Actions"}} -{{- $scenarios := index $service.CategorizedExampleSets "Scenarios"}} -{{- $doc_id := index . 1}} -{{- $is_library := index . 2}} -{{- if or $hello.Examples (or $basics.Examples $actions.Examples) }} -
- - Basic examples for - {{$service.ServiceEntity.Short}} using &AWS; SDKs - - Basics - - The following code examples show how to use the basics of {{$service.ServiceEntity.Short}} - with &AWS; SDKs. - - - -The following code examples show how to use the basics of {{$service.ServiceEntity.Long}} with &AWS; - SDKs. - -Examples -{{- if $hello.Examples}}{{- template "service_examples" makeSlice $hello $service $is_library}}{{- end}} -{{- if $basics.Examples}}{{- template "service_examples" makeSlice $basics $service $is_library}}{{- end}} -{{- if $actions.Examples}} -
- - Actions for {{$service.ServiceEntity.Short}} using &AWS; SDKs - - Actions - - The following code examples show how to use {{$service.ServiceEntity.Short}} with &AWS; SDKs. - - - - The following code examples demonstrate how to perform individual {{$service.ServiceEntity.Short}} - actions with &AWS; SDKs. Each example includes - a link to GitHub, where you can find instructions for setting up and running the code. - - {{- $cat_scenarios := index $service.CategorizedExampleSets "Scenarios"}} - {{- $cat_id_suffix := $cat_scenarios.CategoryIdSuffix}} - {{- if $cat_id_suffix}} - These excerpts call the {{$service.ServiceEntity.Short}} API and - are code excerpts from larger programs that must be run in context. - You can see actions in context in - . - - {{- end}} - - The following examples include only the most commonly used actions. - For a complete list, see the - {{- if $service.ApiRef}} - {{$service.ServiceEntity.Long}} API Reference. - {{- else }} - {{$service.ServiceEntity.Long}} API Reference. - {{- end}} - - Examples - {{- template "service_examples" makeSlice $actions $service $is_library}} -
-{{- end}} -
-{{- end}} -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/customs.xml b/.doc_gen/templates/zonbook/utility/customs.xml deleted file mode 100644 index c554b0e05c6..00000000000 --- a/.doc_gen/templates/zonbook/utility/customs.xml +++ /dev/null @@ -1,22 +0,0 @@ -{{- define "customs"}} -{{- $service := index . 0}} -{{- $doc_id := index . 1}} -{{- $is_library := index . 2}} -{{- range $category := $service.CustomCategoriesSorted}} -{{- $cat_examples := index $service.CategorizedExampleSets $category}} -
- - {{$cat_examples.CategoryName}} for {{$service.ServiceEntity.Short}} using &AWS; SDKs - - {{$cat_examples.CategoryName}} - - - The following code examples show how to use {{$service.ServiceEntity.Short}} with &AWS; SDKs. - - - The following code examples show how to use {{$service.ServiceEntity.Short}} with &AWS; SDKs. - Examples - {{- template "service_examples" makeSlice $cat_examples $service $is_library}} -
-{{- end}} -{{- end}} diff --git a/.doc_gen/templates/zonbook/utility/hello.xml b/.doc_gen/templates/zonbook/utility/hello.xml deleted file mode 100644 index 5f58bf4daa0..00000000000 --- a/.doc_gen/templates/zonbook/utility/hello.xml +++ /dev/null @@ -1,37 +0,0 @@ -{{- define "hello"}} -{{- $example_sets := index . 0}} -{{- $hello := index $example_sets "Hello"}} -{{- $example_suffix := index . 1}} -{{- if not $example_suffix}} - {{- $example_suffix = "tablist"}} -{{- end}} -{{- $prefix := index . 2}} -{{- $example_prefix := ""}} -{{- if $prefix}} - {{- $example_prefix = printf "%s_" $prefix}} -{{- end}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} -{{- if $hello.Examples}} -Get started - - - {{- range $hello.Examples}} -
- - {{.Title}} - {{.TitleAbbrev}} - - {{.Title}} - - - - -
- {{- end}} -
-
-{{- end}} -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/notes.xml b/.doc_gen/templates/zonbook/utility/notes.xml deleted file mode 100644 index 61060857fbc..00000000000 --- a/.doc_gen/templates/zonbook/utility/notes.xml +++ /dev/null @@ -1,24 +0,0 @@ -{{- define "note_example_types"}} -{{- $hello := index . 0}} -{{- $basics := index . 1}} -{{- $actions := index . 2}} -{{- $scenarios := index . 3}} -{{- if or $hello $basics}} -Basics are code examples that show you how to perform the essential operations within a service. -{{- end}} -{{- if $actions}} -Actions are code excerpts from larger programs and must be run in context. While actions - show you how to call individual service functions, you can see actions in context in their related scenarios. -{{- end}} -{{- if $scenarios}} -Scenarios are code examples that show you how to accomplish specific tasks by - calling multiple functions within a service or combined with other &AWS-services;. - -{{- end}} -{{- end}} - -{{- define "note_complete_list"}} -For a complete list of &AWS; SDK developer guides and code examples, see - . - This topic also includes information about getting started and details about previous SDK versions. -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/prologue.xml b/.doc_gen/templates/zonbook/utility/prologue.xml deleted file mode 100644 index 81fc3556cff..00000000000 --- a/.doc_gen/templates/zonbook/utility/prologue.xml +++ /dev/null @@ -1,14 +0,0 @@ -{{- define "prologue"}} - - %xinclude; -{{- if isSnapshot}} - -{{- else}} - -{{- end}} - %phrases-code-examples; - - %phrases-shared; -]> -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/scenarios.xml b/.doc_gen/templates/zonbook/utility/scenarios.xml deleted file mode 100644 index 0eb54dd0f77..00000000000 --- a/.doc_gen/templates/zonbook/utility/scenarios.xml +++ /dev/null @@ -1,28 +0,0 @@ -{{- define "scenarios"}} -{{- $service := index . 0}} -{{- $scenarios := index $service.CategorizedExampleSets "Scenarios"}} -{{- $doc_id := index . 1}} -{{- $is_library := index . 2}} -{{- if $scenarios.Examples}} -
- - Scenarios for - {{$service.ServiceEntity.Short}} using &AWS; SDKs - - Scenarios - - The following code examples show how to use {{$service.ServiceEntity.Short}} with &AWS; SDKs. - - - - The following code examples show you how to implement common scenarios in {{$service.ServiceEntity.Short}} - with &AWS; SDKs. These scenarios show you how to accomplish specific tasks by calling multiple functions - within {{$service.ServiceEntity.Short}} or combined with other &AWS-services;. - Each scenario includes a link to the complete source code, where you can find instructions on how to set up and run the code. - - Scenarios target an intermediate level of experience to help you understand service actions in context. -Examples -{{- template "service_examples" makeSlice $scenarios $service $is_library}} -
-{{- end}} -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/sdk_api_examples.xml b/.doc_gen/templates/zonbook/utility/sdk_api_examples.xml deleted file mode 100644 index 46c3f17b0a0..00000000000 --- a/.doc_gen/templates/zonbook/utility/sdk_api_examples.xml +++ /dev/null @@ -1,41 +0,0 @@ -{{- define "sdk_api_examples"}} -{{- $examples := index . 0}} -{{- $sdk_prefix := index . 1}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} -Services -{{- range $service, $svc_examples := $examples.ApiExamples}} -{{- if $svc_examples.ServiceEntity.Short}} -{{- $basics := index $svc_examples.CategorizedExampleSets "Basics"}} -{{- $actions := index $svc_examples.CategorizedExampleSets "Actions"}} -{{- $scenarios := index $svc_examples.CategorizedExampleSets "Scenarios"}} -
- - {{$svc_examples.ServiceEntity.Short}} examples using {{$examples.SdkEntity.Short}} - {{$svc_examples.ServiceEntity.Short}} - - Code examples that show how to use {{$examples.SdkEntity.Long}} with {{$svc_examples.ServiceEntity.Short}}. - - - The following code examples show you how to perform actions and implement common scenarios by using - the {{$examples.SdkEntity.Long}} with {{$svc_examples.ServiceEntity.Short}}. - {{- template "note_example_types" makeSlice 0 $basics.Examples $actions.Examples $scenarios.Examples}} - Each example includes a link to the complete source code, where you can find - instructions on how to set up and run the code in context. - {{- template "hello" makeSlice $svc_examples.CategorizedExampleSets $examples.Language $examples.LanguageSlug}} - {{- if or $basics.Examples (or $actions.Examples (or $scenarios.Examples $svc_examples.CustomCategoriesSorted))}} - - {{- template "sdk_examples" makeSlice $basics $sdk_prefix $include_docs $examples}} - {{- template "sdk_examples" makeSlice $actions $sdk_prefix $include_docs $examples}} - {{- template "sdk_examples" makeSlice $scenarios $sdk_prefix $include_docs $examples}} - {{- range $category := $svc_examples.CustomCategoriesSorted}} - {{- $cat_examples := index $svc_examples.CategorizedExampleSets $category}} - {{- template "sdk_examples" makeSlice $cat_examples $sdk_prefix $include_docs $examples}} - {{- end}} - {{- end}} -
-{{- end}} -{{- end}} -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/sdk_examples.xml b/.doc_gen/templates/zonbook/utility/sdk_examples.xml deleted file mode 100644 index aa863b9dec9..00000000000 --- a/.doc_gen/templates/zonbook/utility/sdk_examples.xml +++ /dev/null @@ -1,29 +0,0 @@ -{{- define "sdk_examples"}} -{{- $cat_examples := index . 0}} -{{- $sdk_prefix := index . 1}} -{{- $include_docs := index . 2}} -{{- $examples := index . 3}} -{{- if $cat_examples.Examples}} -
- - {{$cat_examples.CategoryName}} - {{$cat_examples.CategoryName}} - - - {{- range $cat_examples.Examples}} -
- - {{.TitleAbbrev}} - {{.TitleAbbrev}} - - {{- template "sdk_synopsis" .}} - {{- if .GuideTopic.Url}} - For more information, see {{.GuideTopic.Text}}. - {{- end}} - -
- {{- end}} -
-
-{{- end}} -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/service_examples.xml b/.doc_gen/templates/zonbook/utility/service_examples.xml deleted file mode 100644 index 8829b7df311..00000000000 --- a/.doc_gen/templates/zonbook/utility/service_examples.xml +++ /dev/null @@ -1,71 +0,0 @@ -{{- define "service_examples"}} -{{- $examples := index . 0}} -{{- $service := index . 1}} -{{- $is_library := index . 2}} -{{- $svc_prefix := ""}} -{{- if or $is_library $service.Bundle}} - {{- $svc_prefix = printf "%s_" $service.Model}} -{{- end}} -{{- $include_docs := "file://AWSShared/code-samples/docs/"}} -{{- if isSnapshot}} - {{- $include_docs = ""}} -{{- end}} -{{- range $examples.Examples}} -{{- $addSvc := ""}} -{{- if .AddService}} - {{- $addSvc = printf "_%s" .AddService}} -{{- end}} -
- - {{.Title}} - {{.TitleAbbrev}} - - {{.Title}} - - - code example - &AWS; SDK - - - - {{- if not $is_library}} - - The source code for these examples is in the - &AWS; Code Examples GitHub repository. - Have feedback on a code example? - Create an Issue - in the code examples repo. - - - {{- end}} - {{- if .GuideTopic.Url}} - For more information, see {{.GuideTopic.Text}}. - {{- end}} - {{- if eq $examples.CategoryName "Actions"}} - {{- if .RelatedExamples}} - {{- $codex_text := "code examples"}} - {{- if eq 1 (len .RelatedExamples)}} - {{- $codex_text = "code example"}} - {{- end}} - Action examples are code excerpts from larger programs and must be run in context. You can see this action in - context in the following {{$codex_text}}: - - - {{- range $rel_example := .RelatedExamples}} - - - - - - {{- end}} - - {{- end}} - {{- end}} - - {{- if not $is_library}} - {{- template "note_complete_list"}} - {{- end}} -
-{{- end}} -{{- end}} \ No newline at end of file diff --git a/.doc_gen/templates/zonbook/utility/synopsis.xml b/.doc_gen/templates/zonbook/utility/synopsis.xml deleted file mode 100644 index 8a394a430fe..00000000000 --- a/.doc_gen/templates/zonbook/utility/synopsis.xml +++ /dev/null @@ -1,41 +0,0 @@ -{{- define "service_synopsis"}} -{{- $synopsis_prefix := "The following code examples show how to"}} -{{- $synopsis_sep := " "}} -{{- $synopsis := "use this service with some of the &AWS; SDKs that are available."}} -{{- if eq .ExampleCount 1}} - {{- $synopsis_prefix = "The following code example shows how to"}} -{{- end}} -{{- if .Synopsis}} - {{- $synopsis = .Synopsis}} -{{- else}} - {{- if .SynopsisList}} - {{- $synopsis_sep = ":"}} - {{- $synopsis = ""}} - {{- end}} -{{- end}} -{{print $synopsis_prefix $synopsis_sep $synopsis}} -{{- if .SynopsisList}} - - {{- range $synitem := .SynopsisList}} - {{$synitem}} - {{- end}} - -{{- end}} -{{- end}} -{{- define "sdk_synopsis"}} -{{- if or .Synopsis .SynopsisList}} - {{- $synopsis_prefix := "The following code example shows how to"}} - {{- $synopsis_sep := " "}} - {{- if not .Synopsis}} - {{- $synopsis_sep = ":"}} - {{- end}} -{{print $synopsis_prefix $synopsis_sep .Synopsis}} - {{- if .SynopsisList}} - - {{- range $synitem := .SynopsisList}} - {{$synitem}} - {{- end}} - - {{- end}} -{{- end}} -{{- end}} \ No newline at end of file