Skip to content

sphinx: Default values aren't shown in docs #298

Closed

Description

@clareliguori

I'm noticing that the "@default" flag in the code comments is not translating into a default value shown in the docs. From the docs, it reads as though there is no default value, which is confusing.

For example, default value for containerPort (80) in LoadBalancedFargateService:

https://github.com/awslabs/aws-cdk/blob/master/packages/%40aws-cdk/aws-ecs/lib/load-balanced-fargate-service.ts#L62

Is not shown in the docs:

https://awslabs.github.io/aws-cdk/refs/_aws-cdk_aws-ecs.html#@aws-cdk/aws-ecs.LoadBalancedFargateServiceProps.containerPort

Activity

  1. rix0rrr commented on Nov 7, 2018

    @rix0rrr
    Contributor
  2. transferred this issue fromaws/aws-cdkon Nov 8, 2018
  3. changed the title [-]Default values aren't shown in docs[/-] [+]sphinx: Default values aren't shown in docs[/+] on Nov 8, 2018
  4. added a commit that references this issue on Nov 8, 2018
    2888b56
  5. added a commit that references this issue on Nov 8, 2018
    094a215
  6. eladb commented on Nov 13, 2018

    @eladb
    Contributor

    Should be fixed in the latest release

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions