From af82c2c910c9b5d3dd68de30c59a9e169a8934a5 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 23 Jun 2021 11:05:58 +0200 Subject: [PATCH] docs: adds package description to the stdlib Index Signed-off-by: Sam Alba --- cmd/dagger/cmd/doc.go | 3 +- docs/reference/universe/README.md | 52 ++++++++++++------------ docs/reference/universe/dagger/README.md | 2 + docs/reference/universe/os.md | 2 + stdlib/dagger/dagger.cue | 1 + stdlib/os/file.cue | 1 + 6 files changed, 34 insertions(+), 27 deletions(-) diff --git a/cmd/dagger/cmd/doc.go b/cmd/dagger/cmd/doc.go index 0e91fc6e..6174e4cf 100644 --- a/cmd/dagger/cmd/doc.go +++ b/cmd/dagger/cmd/doc.go @@ -407,6 +407,7 @@ func walkStdlib(ctx context.Context, output, format string) { // Generate index from sorted list of packages sort.Strings(indexKeys) for _, p := range indexKeys { - fmt.Fprintf(index, "- [%s](./%s)\n", p, getFileName(p)) + description := mdEscape(packages[p].Description) + fmt.Fprintf(index, "- [%s](./%s) - %s\n", p, getFileName(p), description) } } diff --git a/docs/reference/universe/README.md b/docs/reference/universe/README.md index 3ce061f4..baff9870 100644 --- a/docs/reference/universe/README.md +++ b/docs/reference/universe/README.md @@ -1,28 +1,28 @@ # Index -- [alpine](./alpine.md) -- [aws](./aws/README.md) -- [aws/cloudformation](./aws/cloudformation.md) -- [aws/ecr](./aws/ecr.md) -- [aws/ecs](./aws/ecs.md) -- [aws/eks](./aws/eks.md) -- [aws/elb](./aws/elb.md) -- [aws/rds](./aws/rds.md) -- [aws/s3](./aws/s3.md) -- [dagger](./dagger/README.md) -- [dagger/op](./dagger/op.md) -- [docker](./docker.md) -- [gcp](./gcp/README.md) -- [gcp/gcr](./gcp/gcr.md) -- [gcp/gke](./gcp/gke.md) -- [git](./git.md) -- [go](./go.md) -- [io](./io.md) -- [js/yarn](./js/yarn.md) -- [kubernetes](./kubernetes/README.md) -- [kubernetes/helm](./kubernetes/helm.md) -- [kubernetes/kustomize](./kubernetes/kustomize.md) -- [netlify](./netlify.md) -- [os](./os.md) -- [random](./random.md) -- [terraform](./terraform.md) +- [alpine](./alpine.md) - Base package for Alpine Linux +- [aws](./aws/README.md) - AWS base package +- [aws/cloudformation](./aws/cloudformation.md) - AWS CloudFormation +- [aws/ecr](./aws/ecr.md) - Amazon Elastic Container Registry (ECR) +- [aws/ecs](./aws/ecs.md) - AWS Elastic Container Service (ECS) +- [aws/eks](./aws/eks.md) - AWS Elastic Kubernetes Service (EKS) +- [aws/elb](./aws/elb.md) - AWS Elastic Load Balancer (ELBv2) +- [aws/rds](./aws/rds.md) - AWS Relational Database Service (RDS) +- [aws/s3](./aws/s3.md) - AWS Simple Storage Service +- [dagger](./dagger/README.md) - Dagger core types +- [dagger/op](./dagger/op.md) - op: low-level operations for Dagger processing pipelines +- [docker](./docker.md) - Docker container operations +- [gcp](./gcp/README.md) - Google Cloud Platform +- [gcp/gcr](./gcp/gcr.md) - Google Container Registry +- [gcp/gke](./gcp/gke.md) - Google Kubernetes Engine +- [git](./git.md) - Git operations +- [go](./go.md) - Go build operations +- [io](./io.md) - IO operations +- [js/yarn](./js/yarn.md) - Yarn is a package manager for Javascript applications +- [kubernetes](./kubernetes/README.md) - Kubernetes client operations +- [kubernetes/helm](./kubernetes/helm.md) - Helm package manager +- [kubernetes/kustomize](./kubernetes/kustomize.md) - Kustomize config management +- [netlify](./netlify.md) - Netlify client operations +- [os](./os.md) - OS operations +- [random](./random.md) - Random generation utilities +- [terraform](./terraform.md) - Terraform operations diff --git a/docs/reference/universe/dagger/README.md b/docs/reference/universe/dagger/README.md index 83e7c398..b25bc93c 100644 --- a/docs/reference/universe/dagger/README.md +++ b/docs/reference/universe/dagger/README.md @@ -4,6 +4,8 @@ sidebar_label: dagger # dagger.io/dagger +Dagger core types + ```cue import "dagger.io/dagger" ``` diff --git a/docs/reference/universe/os.md b/docs/reference/universe/os.md index 48309e3d..73de74c9 100644 --- a/docs/reference/universe/os.md +++ b/docs/reference/universe/os.md @@ -4,6 +4,8 @@ sidebar_label: os # dagger.io/os +OS operations + ```cue import "dagger.io/os" ``` diff --git a/stdlib/dagger/dagger.cue b/stdlib/dagger/dagger.cue index f0463135..28b67351 100644 --- a/stdlib/dagger/dagger.cue +++ b/stdlib/dagger/dagger.cue @@ -1,3 +1,4 @@ +// Dagger core types package dagger import ( diff --git a/stdlib/os/file.cue b/stdlib/os/file.cue index b484374f..5714c010 100644 --- a/stdlib/os/file.cue +++ b/stdlib/os/file.cue @@ -1,3 +1,4 @@ +// OS operations package os import (