diff --git a/doc/ApiDocGeneration/Generate-Api-Docs.ps1 b/doc/ApiDocGeneration/Generate-Api-Docs.ps1 index 657abf1efab3..350d3352ab46 100644 --- a/doc/ApiDocGeneration/Generate-Api-Docs.ps1 +++ b/doc/ApiDocGeneration/Generate-Api-Docs.ps1 @@ -62,6 +62,7 @@ $DocOutApiDir = "${DocOutDir}/api" $DocOutHtmlDir = "${DocOutDir}/_site" $MDocTool = "${BinDirectory}/mdoc/mdoc.exe" $DocFxTool = "${BinDirectory}/docfx/docfx.exe" +$DocCommonGenDir = "$RepoRoot/eng/common/docgeneration" if ($LibType -eq 'management') { $ArtifactName = $ArtifactName.Substring($ArtifactName.LastIndexOf('.Management') + 1) @@ -128,7 +129,7 @@ Write-Verbose "Copy over generated yml and other assets" Copy-Item "${YamlOutDir}/*"-Destination "${DocOutApiDir}" -Recurse -Force Copy-Item "${DocGenDir}/assets/docfx.json" -Destination "${DocOutDir}" -Recurse -Force New-Item -Path "${DocOutDir}" -Name templates -ItemType directory -Copy-Item "${DocGenDir}/templates/**" -Destination "${DocOutDir}/templates" -Recurse -Force +Copy-Item "${DocCommonGenDir}/templates/**" -Destination "${DocOutDir}/templates" -Recurse -Force Write-Verbose "Create Toc for Site Navigation" New-Item "${DocOutDir}/toc.yml" -Force @@ -138,7 +139,7 @@ Write-Verbose "Build Doc Content" & "${DocFxTool}" build "${DocOutDir}/docfx.json" Write-Verbose "Copy over site Logo" -Copy-Item "${DocGenDir}/assets/logo.svg" -Destination "${DocOutHtmlDir}" -Recurse -Force +Copy-Item "${DocCommonGenDir}/assets/logo.svg" -Destination "${DocOutHtmlDir}" -Recurse -Force Write-Verbose "Compress and copy HTML into the staging Area" Compress-Archive -Path "${DocOutHtmlDir}/*" -DestinationPath "${ArtifactStagingDirectory}/${ArtifactName}/${ArtifactName}.docs.zip" -CompressionLevel Fastest \ No newline at end of file diff --git a/doc/ApiDocGeneration/Generate-DocIndex.ps1 b/doc/ApiDocGeneration/Generate-DocIndex.ps1 deleted file mode 100644 index aa6535e6ac03..000000000000 --- a/doc/ApiDocGeneration/Generate-DocIndex.ps1 +++ /dev/null @@ -1,150 +0,0 @@ -# Generates an index page for cataloging different versions of the Docs -[CmdletBinding()] -Param ( - $DocFx, - $RepoRoot, - $DocGenDir, - $DocOutDir = "${RepoRoot}/docfx_project" -) -. "${PSScriptRoot}\..\..\eng\common\scripts\common.ps1" -$GetGithubIoDocIndexFn = "Get-${Language}-GithubIoDocIndex" - -# Given the metadata url under https://github.com/Azure/azure-sdk/tree/master/_data/releases/latest, -# the function will return the csv metadata back as part of response. -function Get-CSVMetadata ([string]$MetadataUri) { - $metadataResponse = Invoke-RestMethod -Uri $MetadataUri -method "GET" -MaximumRetryCount 3 -RetryIntervalSec 10 | ConvertFrom-Csv - return $metadataResponse -} - -# Given the github io blob storage url and language regex, -# the helper function will return a list of artifact names. -function Get-BlobStorage-Artifacts($blobStorageUrl, $blobDirectoryRegex, $blobArtifactsReplacement) { - LogDebug "Reading artifact from storage blob ..." - $returnedArtifacts = @() - $pageToken = "" - Do { - $resp = "" - if (!$pageToken) { - # First page call. - $resp = Invoke-RestMethod -Method Get -Uri $blobStorageUrl - } - else { - # Next page call - $blobStorageUrlPageToken = $blobStorageUrl + "&marker=$pageToken" - $resp = Invoke-RestMethod -Method Get -Uri $blobStorageUrlPageToken - } - # Convert to xml documents. - $xmlDoc = [xml](removeBomFromString $resp) - foreach ($elem in $xmlDoc.EnumerationResults.Blobs.BlobPrefix) { - # What service return like "dotnet/Azure.AI.Anomalydetector/", needs to fetch out "Azure.AI.Anomalydetector" - $artifact = $elem.Name -replace $blobDirectoryRegex, $blobArtifactsReplacement - $returnedArtifacts += $artifact - } - # Fetch page token - $pageToken = $xmlDoc.EnumerationResults.NextMarker - } while ($pageToken) - return $returnedArtifacts - } - -# The sequence of Bom bytes differs by different encoding. -# The helper function here is only to strip the utf-8 encoding system as it is used by blob storage list api. -# Return the original string if not in BOM utf-8 sequence. -function RemoveBomFromString([string]$bomAwareString) { - if ($bomAwareString.length -le 3) { - return $bomAwareString - } - $bomPatternByteArray = [byte[]] (0xef, 0xbb, 0xbf) - # The default encoding for powershell is ISO-8859-1, so converting bytes with the encoding. - $bomAwareBytes = [Text.Encoding]::GetEncoding(28591).GetBytes($bomAwareString.Substring(0, 3)) - if (@(Compare-Object $bomPatternByteArray $bomAwareBytes -SyncWindow 0).Length -eq 0) { - return $bomAwareString.Substring(3) - } - return $bomAwareString -} - -function Get-TocMapping { - Param ( - [Parameter(Mandatory = $true)] [Object[]] $metadata, - [Parameter(Mandatory = $true)] [String[]] $artifacts - ) - # Used for sorting the toc display order - $orderServiceMapping = @{} - - foreach ($artifact in $artifacts) { - $packageInfo = $metadata | ? {$_.Package -eq $artifact} - - if ($packageInfo -and $packageInfo[0].Hide -eq 'true') { - LogDebug "The artifact $artifact set 'Hide' to 'true'." - continue - } - $serviceName = "" - if (!$packageInfo -or !$packageInfo[0].ServiceName) { - LogWarning "There is no service name for artifact $artifact. Please check csv of Azure/azure-sdk/_data/release/latest repo if this is intended. " - # If no service name retrieved, print out warning message, and put it into Other page. - $serviceName = "Other" - } - else { - if ($packageInfo.Length -gt 1) { - LogWarning "There are more than 1 packages fetched out for artifact $artifact. Please check csv of Azure/azure-sdk/_data/release/latest repo if this is intended. " - } - $serviceName = $packageInfo[0].ServiceName.Trim() - } - $orderServiceMapping[$artifact] = $serviceName - } - return $orderServiceMapping -} - -function GenerateDocfxTocContent([Hashtable]$tocContent, [String]$lang) { - LogDebug "Start generating the docfx toc and build docfx site..." - - LogDebug "Initializing Default DocFx Site..." - & $($DocFx) init -q -o "${DocOutDir}" - # The line below is used for testing in local - #docfx init -q -o "${DocOutDir}" - LogDebug "Copying template and configuration..." - New-Item -Path "${DocOutDir}" -Name "templates" -ItemType "directory" -Force - Copy-Item "${DocGenDir}/templates/*" -Destination "${DocOutDir}/templates" -Force -Recurse - Copy-Item "${DocGenDir}/docfx.json" -Destination "${DocOutDir}/" -Force - $YmlPath = "${DocOutDir}/api" - New-Item -Path $YmlPath -Name "toc.yml" -Force - $visitedService = @{} - # Sort and display toc service name by alphabetical order, and then sort artifact by order. - foreach ($serviceMapping in ($tocContent.GetEnumerator() | Sort-Object Value, Key)) { - $artifact = $serviceMapping.Key - $serviceName = $serviceMapping.Value - $fileName = ($serviceName -replace '\s', '').ToLower().Trim() - if ($visitedService.ContainsKey($serviceName)) { - Add-Content -Path "$($YmlPath)/${fileName}.md" -Value "#### $artifact" - } - else { - Add-Content -Path "$($YmlPath)/toc.yml" -Value "- name: ${serviceName}`r`n href: ${fileName}.md" - New-Item -Path $YmlPath -Name "${fileName}.md" -Force - Add-Content -Path "$($YmlPath)/${fileName}.md" -Value "#### $artifact" - $visitedService[$serviceName] = $true - } - } - - # Generate toc homepage. - LogDebug "Creating Site Title and Navigation..." - New-Item -Path "${DocOutDir}" -Name "toc.yml" -Force - Add-Content -Path "${DocOutDir}/toc.yml" -Value "- name: Azure SDK for $lang APIs`r`n href: api/`r`n homepage: api/index.md" - - LogDebug "Copying root markdowns" - Copy-Item "$($RepoRoot)/README.md" -Destination "${DocOutDir}/api/index.md" -Force - Copy-Item "$($RepoRoot)/CONTRIBUTING.md" -Destination "${DocOutDir}/api/CONTRIBUTING.md" -Force - - LogDebug "Building site..." - & $($DocFx) build "${DocOutDir}/docfx.json" - # The line below is used for testing in local - #docfx build "${DocOutDir}/docfx.json" - Copy-Item "${DocGenDir}/assets/logo.svg" -Destination "${DocOutDir}/_site/" -Force -} - -if (Test-Path "function:$GetGithubIoDocIndexFn") -{ - &$GetGithubIoDocIndexFn -} -else -{ - LogWarning "The function '$GetGithubIoDocIndexFn' was not found." -} \ No newline at end of file diff --git a/doc/ApiDocGeneration/assets/logo.svg b/doc/ApiDocGeneration/assets/logo.svg deleted file mode 100644 index 5da99f404886..000000000000 --- a/doc/ApiDocGeneration/assets/logo.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - diff --git a/doc/ApiDocGeneration/templates/matthews/partials/affix.tmpl.partial b/doc/ApiDocGeneration/templates/matthews/partials/affix.tmpl.partial deleted file mode 100644 index 43a33d0120a3..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/partials/affix.tmpl.partial +++ /dev/null @@ -1,17 +0,0 @@ -{{^_disableContribution}} -
- {{#docurl}} - - {{/docurl}} - {{#sourceurl}} - - {{/sourceurl}} -
-{{/_disableContribution}} - - diff --git a/doc/ApiDocGeneration/templates/matthews/partials/class.header.tmpl.partial b/doc/ApiDocGeneration/templates/matthews/partials/class.header.tmpl.partial deleted file mode 100644 index 5f957a0b5ad2..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/partials/class.header.tmpl.partial +++ /dev/null @@ -1,100 +0,0 @@ -

{{>partials/title}}

-
{{{summary}}}
-
{{{conceptual}}}
- -{{#inClass}} -
-
{{__global.inheritance}}
- {{#inheritance}} -
{{{specName.0.value}}}
- {{/inheritance}} -
{{name.0.value}}
-
-{{/inClass}} - -{{#derivedClasses}} -
{{{specName.0.value}}}
-{{/derivedClasses}} - -{{#inheritedMembers.0}} -
-
{{__global.inheritedMembers}}
-{{/inheritedMembers.0}} -{{#inheritedMembers}} -
- {{#definition}} - - {{/definition}} - {{^definition}} - - {{/definition}} -
-{{/inheritedMembers}} -{{#inheritedMembers.0}} -
-{{/inheritedMembers.0}} - -
{{__global.namespace}}: {{{namespace.specName.0.value}}}
-
{{__global.assembly}}: {{assemblies.0}}.dll
- -
{{__global.syntax}}
-
-
{{syntax.content.0.value}}
-
- -{{#syntax.parameters.0}} -
{{__global.parameters}}
- -{{/syntax.parameters.0}} -{{#syntax.parameters}} - - - -{{/syntax.parameters}} -{{#syntax.parameters.0}} -
- {{{type.specName.0.value}}} - {{{id}}} -

{{{description}}}

-
-{{/syntax.parameters.0}} - -{{#syntax.return}} -
{{__global.returns}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/syntax.return}} - -{{#syntax.typeParameters.0}} -
{{__global.typeParameters}}
- -{{/syntax.typeParameters.0}} -{{#syntax.typeParameters}} - - - -{{/syntax.typeParameters}} -{{#syntax.typeParameters.0}} -
- {{{id}}} -

{{{description}}}

-
-{{/syntax.typeParameters.0}} - -{{#remarks}} -
{{__global.remarks}}
-
{{{remarks}}}
-{{/remarks}} - -{{#example.0}} -
{{__global.examples}}
-{{/example.0}} -{{#example}} -{{{.}}} -{{/example}} diff --git a/doc/ApiDocGeneration/templates/matthews/partials/class.tmpl.partial b/doc/ApiDocGeneration/templates/matthews/partials/class.tmpl.partial deleted file mode 100644 index 5f00b822cc76..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/partials/class.tmpl.partial +++ /dev/null @@ -1,210 +0,0 @@ -{{>partials/class.header}} -{{#children}} -

{{>partials/classSubtitle}}

-{{#children}} - -{{^_disableContribution}} -{{#docurl}} - - - - -{{/docurl}} -{{#sourceurl}} - - - -{{/sourceurl}} -{{/_disableContribution}} - -{{#overload}} - -{{/overload}} - -

{{name.0.value}}

- -
-
{{{summary}}}
-
{{{conceptual}}}
-
{{__global.declaration}}
- -{{#syntax}} -
-
{{syntax.content.0.value}}
-
- -{{#parameters.0}} -
{{__global.parameters}}
- -{{/parameters.0}} -{{#parameters}} - - - -{{/parameters}} -{{#parameters.0}} -
- {{{type.specName.0.value}}} - {{{id}}} -

{{{description}}}

-
-{{/parameters.0}} - -{{#return}} -
{{__global.returns}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/return}} - -{{#typeParameters.0}} -
{{__global.typeParameters}}
- -{{/typeParameters.0}} -{{#typeParameters}} - - - -{{/typeParameters}} -{{#typeParameters.0}} -
- {{{id}}} -

{{{description}}}

-
-{{/typeParameters.0}} - -{{#fieldValue}} -
{{__global.fieldValue}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/fieldValue}} - -{{#propertyValue}} -
{{__global.propertyValue}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/propertyValue}} - -{{#eventType}} -
{{__global.eventType}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/eventType}} -{{/syntax}} - -{{#overridden}} -
{{__global.overrides}}
-
-{{/overridden}} - -{{#implements.0}} -
{{__global.implements}}
-{{/implements.0}} -{{#implements}} - {{#definition}} -
- {{/definition}} - {{^definition}} -
- {{/definition}} -{{/implements}} - -{{#remarks}} -
{{__global.remarks}}
-
{{{remarks}}}
-{{/remarks}} - -{{#example.0}} -
{{__global.examples}}
-{{/example.0}} -{{#example}} -{{{.}}} -{{/example}} - -{{#exceptions.0}} -
{{__global.exceptions}}
- -{{/exceptions.0}} -{{#exceptions}} - - - -{{/exceptions}} -{{#exceptions.0}} -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/exceptions.0}} - -{{#seealso.0}} -
{{__global.seealso}}
-
-{{/seealso.0}} -{{#seealso}} - {{#isCref}} -
{{{type.specName.0.value}}}
- {{/isCref}} - {{^isCref}} -
{{{url}}}
- {{/isCref}} -{{/seealso}} -{{#seealso.0}} -
-{{/seealso.0}} -
-{{/children}} -{{/children}} - -{{#extensionMethods.0}} -

{{__global.extensionMethods}}

-{{/extensionMethods.0}} -{{#extensionMethods}} -
- {{#definition}} - - {{/definition}} - {{^definition}} - - {{/definition}} -
-{{/extensionMethods}} - -{{#seealso.0}} -

{{__global.seealso}}

-
-{{/seealso.0}} -{{#seealso}} - {{#isCref}} -
{{{type.specName.0.value}}}
- {{/isCref}} - {{^isCref}} -
{{{url}}}
- {{/isCref}} -{{/seealso}} -{{#seealso.0}} -
-{{/seealso.0}} diff --git a/doc/ApiDocGeneration/templates/matthews/partials/enum.tmpl.partial b/doc/ApiDocGeneration/templates/matthews/partials/enum.tmpl.partial deleted file mode 100644 index 91e7ede1ac83..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/partials/enum.tmpl.partial +++ /dev/null @@ -1,24 +0,0 @@ -{{>partials/class.header}} -{{#children}} - {{#children}} -

{{name.0.value}}

- -
-

{{{summary}}}

-
- {{/children}} -{{/children}} - -{{#extensionMethods.0}} -

{{__global.extensionMethods}}

-{{/extensionMethods.0}} -{{#extensionMethods}} -
- {{#definition}} - - {{/definition}} - {{^definition}} - - {{/definition}} -
-{{/extensionMethods}} diff --git a/doc/ApiDocGeneration/templates/matthews/partials/namespace.tmpl.partial b/doc/ApiDocGeneration/templates/matthews/partials/namespace.tmpl.partial deleted file mode 100644 index f607a3dc61bd..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/partials/namespace.tmpl.partial +++ /dev/null @@ -1,17 +0,0 @@ -

{{>partials/title}}

-
{{{summary}}}
-
{{{conceptual}}}
-
{{{remarks}}}
-{{#children}} -

{{>partials/namespaceSubtitle}}

- - {{#children}} - - - - {{/children}} -
-

-

{{{summary}}}

-
-{{/children}} diff --git a/doc/ApiDocGeneration/templates/matthews/styles/main.css b/doc/ApiDocGeneration/templates/matthews/styles/main.css deleted file mode 100644 index 900153eb813f..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/styles/main.css +++ /dev/null @@ -1,306 +0,0 @@ -@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"); - -/* Clickability fix for selector on sm devices */ -@media (min-width: 768px) and (max-width: 991px) { - article h1:first-of-type:before { - height: 0; - margin-top: 0; - } -} - -#search { - border: none; -} - -.fa-code { - font-size: 19px; -} - -.sidetoc, -body .toc, -.sidefilter, -.sidetoggle { - background-color: #f9fbe7; -} - -.sidenav, -.toc-toggle { - padding: 0; -} - -.sidetoggle { - padding-bottom: 15px; -} - -/* Remove center align from Navbar and Collapsible section */ -.collapse.in, -.collapsing { - text-align: unset; -} - -article h4 { - border-bottom: none; - line-height: normal; -} - -@media (min-width: 768px) { - .sidetoc, .sidefilter { - margin-left: -15px; - } -} - -@media (max-width: 767px) { - .navbar-collapse { - text-align: center !important; - } - - .navbar-collapse li .active { - border-radius: 20px; - } -} - -/* Collapsible Sections - ------------------------------------------------------- */ -.expander:after { - font-family: 'Glyphicons Halflings'; - content: "\e260"; - margin-left: 5px; - color: grey; - font-size: small; -} - -.expander.collapsed:after { - content: "\e259"; -} - -/* Floating buttons - ------------------------------------------------------- */ -.fab { - width: 40px; - height: 40px; - text-align: center; - padding: 11px 0 0 0; - border: none; - outline: none; - color: #FFF; - border-radius: 100%; - box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); - transition:.3s; -} - -.fab:hover { - transform: scale(1.1); -} - -.fab + .fab { - margin-right: 15px; -} - -.contribution-panel { - z-index: 1000; - position: fixed; - right: 30px; - top: 70px; -} - -/* Bootstrap docs like sidebar - ------------------------------------------------------- */ -.affix h5 { - display: none; -} - -/* active & hover links */ -.affix ul > li > a:hover, -.affix ul > li.active > a, -.affix ul > li > a:focus { - color: #563d7c; - text-decoration: none; - background-color: transparent; - border-left-color: #563d7c; -} - -/* all active links */ -.affix ul > li.active > a, -.affix ul > li.active:hover > a, -.affix ul > li.active:focus >a { - font-weight: 700; -} - -/* nested active links */ -.affix ul ul > li.active > a, -.affix ul ul > li.active:hover > a, -.affix ul ul > li.active:focus > a { - font-weight: 500; -} - -/* all links */ -.affix ul > li > a { - color: #999; - border-left: 2px solid transparent; - padding: 4px 20px; - font-size: 13px; - font-weight: 400; -} - -/* nested links */ -.affix ul ul > li > a { - padding-top: 1px; - padding-bottom: 1px; - padding-left: 30px; - font-size: 12px; -} - -/* hide inactive nested list */ -.affix ul ul { - display: none; -} - -/* show active nested list */ -.affix ul > li.active > ul { - display: block; -} - -.affix > ul > li > a:before { - content: ''; -} - -.affix ul ul > li > a:before { - content: ''; -} - -/* Style Buttons - ------------------------------------------------------- */ -.btn-warning { - background-color: #0071c5; -} - -.btn-info { - background-color: #0071c5; -} - -/* Navbar Hamburger - ------------------------------------------------------- */ -.icon-bar { - transition: 0.4s; -} - -/* Rotate first bar */ -.change .icon-bar:nth-of-type(2) { - transform: rotate(-45deg) translate(-4px, 5px) ; -} - -/* Fade out the second bar */ -.change .icon-bar:nth-of-type(3) { - opacity: 0; -} - -/* Rotate last bar */ -.change .icon-bar:nth-of-type(4) { - transform: rotate(45deg) translate(-4px, -5px) ; -} - -/* Custom Navbar - ------------------------------------------------------- */ -.navbar-inverse { - background-color: #0071c5; - opacity: 0.95; - border-color: #0071c5; -} -.navbar-inverse .navbar-brand { - color: #ffffff; -} -.navbar-inverse .navbar-brand:hover, -.navbar-inverse .navbar-brand:focus { - color: #ecdbff; -} -.navbar-inverse .navbar-text { - color: #ffffff; -} -.navbar-inverse .navbar-nav > li > a { - color: #ffffff; -} -.navbar-inverse .navbar-nav > li > a:hover, -.navbar-inverse .navbar-nav > li > a:focus { - color: #ecdbff; -} -.navbar-inverse .navbar-nav > .active > a, -.navbar-inverse .navbar-nav > .active > a:hover, -.navbar-inverse .navbar-nav > .active > a:focus { - color: #ecdbff; - background-color: #0071c5; -} -.navbar-inverse .navbar-nav > .open > a, -.navbar-inverse .navbar-nav > .open > a:hover, -.navbar-inverse .navbar-nav > .open > a:focus { - color: #ecdbff; - background-color: #0071c5; -} -.navbar-inverse .navbar-toggle { - border-color: #0071c5; -} -.navbar-inverse .navbar-toggle:hover, -.navbar-inverse .navbar-toggle:focus { - background-color: #0071c5; -} -.navbar-inverse .navbar-toggle .icon-bar { - background-color: #ffffff; -} -.navbar-inverse .navbar-collapse, -.navbar-inverse .navbar-form { - border: none; -} -.navbar-inverse .navbar-link { - color: #ffffff; -} -.navbar-inverse .navbar-link:hover { - color: #ecdbff; -} -.versionarrow { - margin-left: 0.8em; - margin-top: -1.5em; - margin-bottom: -1em; - padding: 1em; -} -.versionarrow::before { - position: absolute; - content: ''; - width: 0; - height: 0; - border: .5em solid transparent; - border-left-color: gray; - transform-origin: 0 50%; - transition: transform .1s; - margin-top: 0.2em; -} -.versionarrow.disable { - text-decoration: line-through; -} -.versionarrow.down::before { - transform: rotate(90deg); - margin-top: 0em; - transition: transform .1s; -} -@media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { - color: #ffffff; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { - color: #ecdbff; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #ecdbff; - background-color: #0071c5; - } -} - -.navbar-version-select { - padding: 2px; - border: none; - border-radius: 2px; - box-shadow: none; - -webkit-appearance: media-time-remaining-display; - margin-top: 14px; -} \ No newline at end of file diff --git a/doc/ApiDocGeneration/templates/matthews/styles/main.js b/doc/ApiDocGeneration/templates/matthews/styles/main.js deleted file mode 100644 index 25025c5d9d13..000000000000 --- a/doc/ApiDocGeneration/templates/matthews/styles/main.js +++ /dev/null @@ -1,200 +0,0 @@ -// Use container fluid -var containers = $(".container"); -containers.removeClass("container"); -containers.addClass("container-fluid"); - -WINDOW_CONTENTS = window.location.href.split('/') -SELECTED_LANGUAGE = 'dotnet' -BLOB_URI_PREFIX = 'https://azuresdkdocs.blob.core.windows.net/$web/dotnet/' - -ATTR1 = '[System.ComponentModel.EditorBrowsable]\n<' - -// Navbar Hamburger -$(function () { - $(".navbar-toggle").click(function () { - $(this).toggleClass("change"); - }) -}) - -// Select list to replace affix on small screens -$(function () { - var navItems = $(".sideaffix .level1 > li"); - - if (navItems.length == 0) { - return; - } - - var selector = $("