Skip to content

fix: docusaurus-version should work with subcategory#1124

Merged
yangshun merged 1 commit intofacebook:masterfrom
endiliey:versioning
Nov 23, 2018
Merged

fix: docusaurus-version should work with subcategory#1124
yangshun merged 1 commit intofacebook:masterfrom
endiliey:versioning

Conversation

@endiliey
Copy link
Contributor

Motivation

Fix #1115

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

{
  "docs": {
    "Welcome": [
      "index"
    ],
    "Ecosystem": [
      "ecosystem/ecosystem-overview",
      "ecosystem/ecosystem-cloud-native",
      "ecosystem/ecosystem-versioning",
      "ecosystem/ecosystem-upgrading",
      "ecosystem/ecosystem-examples",
      "ecosystem/ecosystem-sqa"
    ],
    "ORY Hydra": [
      "hydra/hydra-index",
      {
        "type": "subcategory",
        "label": "Getting Started",
        "ids": [
          "hydra/hydra-5min-tutorial"
        ]
      },
      {
        "type": "subcategory",
        "label": "Guides",
        "ids": [
          "hydra/hydra-oauth2",
          "hydra/hydra-jwks",
          "hydra/hydra-configure-deploy",
          "hydra/hydra-advanced",
          "hydra/hydra-debugging",
          "hydra/hydra-production",
          "hydra/hydra-integration"
        ]
      },
      {
        "type": "subcategory",
        "label": "SDK",
        "ids": [
          "hydra/sdk/hydra-sdk-index",
          "hydra/sdk/hydra-sdk-api",
          "hydra/sdk/hydra-sdk-go",
          "hydra/sdk/hydra-sdk-js"
        ]
      },
      {
        "type": "subcategory",
        "label": "Further Reading",
        "ids": [
          "hydra/hydra-limitations",
          "hydra/hydra-dependencies-environment",
          "hydra/hydra-security-architecture",
          "hydra/hydra-faq",
          "hydra/hydra-appendix"
        ]
      }
    ],
    "ORY Oathkeeper": [
      "oathkeeper/oathkeeper-index",
      {
        "type": "subcategory",
        "label": "Guides",
        "ids": [
          "oathkeeper/oathkeeper-api-access-rules",
          "oathkeeper/oathkeeper-configure-deploy",
          "oathkeeper/oathkeeper-control-flow"
        ]
      },
      {
        "type": "subcategory",
        "label": "SDK",
        "ids": [
          "oathkeeper/sdk/oathkeeper-sdk-api"
        ]
      }
    ],
    "ORY Keto": [
      "keto/keto-index",
      "keto/1-overview/keto-overview-1-policies",
      "keto/1-overview/keto-overview-2-warden",
      "keto/1-overview/keto-overview-3-roles",
      "keto/1-overview/keto-overview-4-best-practices",
      "keto/1-overview/keto-overview-5-conditions",
      "keto/1-overview/keto-overview-6-installation",
      "keto/1-overview/keto-overview-7-configuration",
      {
        "type": "subcategory",
        "label": "SDK",
        "ids": [
          "keto/sdk/keto-sdk-api"
        ]
      }
    ],
    "Performance": [
      "performance/performance-index",
      "performance/performance-hydra"
    ]
  }
}

Result:

{
  "version-oryOS.9-docs": {
    "Welcome": [
      "version-oryOS.9-index"
    ],
    "Ecosystem": [
      "version-oryOS.9-ecosystem/ecosystem-overview",
      "version-oryOS.9-ecosystem/ecosystem-cloud-native",
      "version-oryOS.9-ecosystem/ecosystem-versioning",
      "version-oryOS.9-ecosystem/ecosystem-upgrading",
      "version-oryOS.9-ecosystem/ecosystem-examples",
      "version-oryOS.9-ecosystem/ecosystem-sqa"
    ],
    "ORY Hydra": [
      "version-oryOS.9-hydra/hydra-index",
      {
        "type": "subcategory",
        "label": "Getting Started",
        "ids": [
          "version-oryOS.9-hydra/hydra-5min-tutorial"
        ]
      },
      {
        "type": "subcategory",
        "label": "Guides",
        "ids": [
          "version-oryOS.9-hydra/hydra-oauth2",
          "version-oryOS.9-hydra/hydra-jwks",
          "version-oryOS.9-hydra/hydra-configure-deploy",
          "version-oryOS.9-hydra/hydra-advanced",
          "version-oryOS.9-hydra/hydra-debugging",
          "version-oryOS.9-hydra/hydra-production",
          "version-oryOS.9-hydra/hydra-integration"
        ]
      },
      {
        "type": "subcategory",
        "label": "SDK",
        "ids": [
          "version-oryOS.9-hydra/sdk/hydra-sdk-index",
          "version-oryOS.9-hydra/sdk/hydra-sdk-api",
          "version-oryOS.9-hydra/sdk/hydra-sdk-go",
          "version-oryOS.9-hydra/sdk/hydra-sdk-js"
        ]
      },
      {
        "type": "subcategory",
        "label": "Further Reading",
        "ids": [
          "version-oryOS.9-hydra/hydra-limitations",
          "version-oryOS.9-hydra/hydra-dependencies-environment",
          "version-oryOS.9-hydra/hydra-security-architecture",
          "version-oryOS.9-hydra/hydra-faq",
          "version-oryOS.9-hydra/hydra-appendix"
        ]
      }
    ],
    "ORY Oathkeeper": [
      "version-oryOS.9-oathkeeper/oathkeeper-index",
      {
        "type": "subcategory",
        "label": "Guides",
        "ids": [
          "version-oryOS.9-oathkeeper/oathkeeper-api-access-rules",
          "version-oryOS.9-oathkeeper/oathkeeper-configure-deploy",
          "version-oryOS.9-oathkeeper/oathkeeper-control-flow"
        ]
      },
      {
        "type": "subcategory",
        "label": "SDK",
        "ids": [
          "version-oryOS.9-oathkeeper/sdk/oathkeeper-sdk-api"
        ]
      }
    ],
    "ORY Keto": [
      "version-oryOS.9-keto/keto-index",
      "version-oryOS.9-keto/1-overview/keto-overview-1-policies",
      "version-oryOS.9-keto/1-overview/keto-overview-2-warden",
      "version-oryOS.9-keto/1-overview/keto-overview-3-roles",
      "version-oryOS.9-keto/1-overview/keto-overview-4-best-practices",
      "version-oryOS.9-keto/1-overview/keto-overview-5-conditions",
      "version-oryOS.9-keto/1-overview/keto-overview-6-installation",
      "version-oryOS.9-keto/1-overview/keto-overview-7-configuration",
      {
        "type": "subcategory",
        "label": "SDK",
        "ids": [
          "version-oryOS.9-keto/sdk/keto-sdk-api"
        ]
      }
    ],
    "Performance": [
      "version-oryOS.9-performance/performance-index",
      "version-oryOS.9-performance/performance-hydra"
    ]
  }
}

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 23, 2018
@endiliey endiliey requested a review from yangshun November 23, 2018 04:59
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 35c3bd6

https://deploy-preview-1124--docusaurus-preview.netlify.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants