Skip to content

Commit c7d7556

Browse files
Remove public preview from docs generation
1 parent 99cc84b commit c7d7556

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

tools/cmd/docs/api_docs_long_text.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Public Preview: The atlas api sub-command, automatically generated from the MongoDB Atlas Admin API, offers full coverage of the Admin API and is currently in Public Preview (please provide feedback at https://feedback.mongodb.com/forums/930808-atlas-cli).
2-
Admin API capabilities have their own release lifecycle, which you can check via the provided API endpoint documentation link.
3-
41
Syntax
52
------
63

tools/cmd/docs/transformations.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"strconv"
2525
"strings"
2626

27-
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli"
2827
pluginCmd "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/plugin"
2928
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/plugin"
3029
"github.com/mongodb/mongodb-atlas-cli/atlascli/tools/internal/metadatatypes"
@@ -57,14 +56,6 @@ func setDisableAutoGenTag(cmd *cobra.Command) {
5756
cmd.DisableAutoGenTag = true
5857
}
5958

60-
func markExperimentalToAPICommands(cmd *cobra.Command) {
61-
if cmd.CommandPath() == "atlas api" {
62-
return // Skip the root command
63-
}
64-
cmd.Short = "`Public Preview: please provide feedback <https://feedback.mongodb.com/forums/930808-atlas-cli>`_: " + cmd.Short
65-
cmd.Long = cli.ExperimentalText + cmd.Long
66-
}
67-
6859
func updateAPICommandDescription(cmd *cobra.Command) {
6960
if len(cmd.Commands()) > 0 {
7061
return
@@ -285,7 +276,6 @@ func applyTransformations(cmd *cobra.Command) error {
285276

286277
if isAPICommand(cmd) {
287278
removeCommandsWithOnlyPrivatePreview(cmd)
288-
markExperimentalToAPICommands(cmd)
289279
updateAPICommandDescription(cmd)
290280
if err := updateExamples(cmd); err != nil {
291281
return err

0 commit comments

Comments
 (0)