Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mgmt toc structure #3428

Merged
1 commit merged into from
Jul 5, 2022
Merged

Update mgmt toc structure #3428

1 commit merged into from
Jul 5, 2022

Conversation

sima-zhu
Copy link
Contributor

@sima-zhu sima-zhu commented Jun 10, 2022

@sima-zhu sima-zhu mentioned this pull request Jun 10, 2022
4 tasks
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@weshaggard weshaggard requested a review from danieljurek June 10, 2022 21:42
@@ -266,12 +268,12 @@ if ($otherPackages) {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment above is referring to GetClientPackageNode you should update it to match the new name.

$serviceReadmeBaseName = $service.ToLower().Replace(' ', '-').Replace('/', '-')
$mgmtItems = @()
foreach ($pkg in $mgmtPackages) {
# $children = &$GetDocsMsTocChildrenForManagementPackagesFn `
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function going away or do you plan to call it again?

Copy link
Member

@danieljurek danieljurek Jun 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is used in the Java implementation to fetch namespaces from Preview and GA packages (covering the case that a package is introducing new namespaces we want to show all namespaces in the relevant ToC) -- https://github.com/Azure/azure-sdk-for-java/blob/main/eng/scripts/docs/Docs-ToC.ps1#L54

... I think we should keep it so we get an accurate set of namespaces for a given package.

On closer inspection I think we can get rid of it because we're already doing something similar here: https://github.com/Azure/azure-sdk-for-java/blob/main/eng/scripts/docs/Docs-ToC.ps1#L12

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I planed to remove. The PR is in early stage. Will focus this PR once service level readme is ready

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

High level seems reasonable but I will defer to @danieljurek for sign-off.

# There could be multiple packages, ensure this is treated as an array
# even if it is a single package
children = @($children)
href = "~/docs-ref-services/{moniker}/$serviceReadmeBaseName.md"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this insert the service overview into the ToC underneath management?

  • ...
  • Key vault
    • Overview (service level overview, expected)
    • Keys
      • Overview (package level overview)
      • @azure/keyvault-keys (package ref docs)
    • ...
    • Management
      • Overview <======== (Is this re-inserting the service level overview?)
      • Key Vault Management (whatever the package DisplayName is)
        • Overview (package level overview)
        • @azure/arm-keyvault (package ref docs)
  • ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!!

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@sima-zhu sima-zhu changed the title Update mgmt toc structure [In progress, not ready to review]Update mgmt toc structure Jun 15, 2022
@sima-zhu sima-zhu changed the title [In progress, not ready to review]Update mgmt toc structure Update mgmt toc structure Jun 16, 2022
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@sima-zhu sima-zhu force-pushed the toc_mgmt branch 2 times, most recently from e7d4031 to 6e920d2 Compare June 17, 2022 17:43
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Copy link
Member

@danieljurek danieljurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to Update-DocsMsToc.ps1 look good 👍

One small change to Service-Level-Readme-Automation.ps1 and this is good to go.

eng/common/scripts/Service-Level-Readme-Automation.ps1 Outdated Show resolved Hide resolved
eng/common/scripts/Update-DocsMsToc.ps1 Outdated Show resolved Hide resolved
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@ghost
Copy link

ghost commented Jul 5, 2022

Hello @azure-sdk!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 1b3bd2b into Azure:main Jul 5, 2022
@sima-zhu sima-zhu deleted the toc_mgmt branch July 5, 2022 21:51
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants