Conversation
added 8 commits
March 27, 2023 12:03
bufdev
approved these changes
Mar 27, 2023
Monirul1
pushed a commit
to Monirul1/buf
that referenced
this pull request
Apr 30, 2023
Changes:
- Addition of SlugPrefix and OutputDir fields to the webpagesConfig
struct to allow for better customization of the generated markdown
output.
- Modification of the generateMarkdownTree function to create the
required directories and files for each command and its subcommands,
organizing the output in a more structured manner.
- Refactoring of the generateMarkdownPage function to make the generated
markdown files follow a more standardized format, including slug,
sidebar position, and sidebar label.
- Addition of the websiteSlug and sidebarLabel functions to handle the
generation of the slug and sidebar label for each command.
<details>
<summary>tree structure</summary>
```
.
└── buf
├── beta
│ ├── _category.json
│ ├── index.md
│ ├── migrate-v1beta1.md
│ ├── price.md
│ ├── registry
│ │ ├── commit
│ │ │ ├── get.md
│ │ │ ├── index.md
│ │ │ └── list.md
│ │ ├── draft
│ │ │ ├── delete.md
│ │ │ ├── index.md
│ │ │ └── list.md
│ │ ├── index.md
│ │ ├── organization
│ │ │ ├── create.md
│ │ │ ├── delete.md
│ │ │ ├── get.md
│ │ │ └── index.md
│ │ ├── plugin
│ │ │ ├── create.md
│ │ │ ├── delete.md
│ │ │ ├── deprecate.md
│ │ │ ├── index.md
│ │ │ ├── list.md
│ │ │ ├── undeprecate.md
│ │ │ └── version
│ │ │ ├── index.md
│ │ │ └── list.md
│ │ ├── repository
│ │ │ ├── create.md
│ │ │ ├── delete.md
│ │ │ ├── deprecate.md
│ │ │ ├── get.md
│ │ │ ├── index.md
│ │ │ ├── list.md
│ │ │ ├── undeprecate.md
│ │ │ └── update.md
│ │ ├── tag
│ │ │ ├── create.md
│ │ │ ├── index.md
│ │ │ └── list.md
│ │ ├── template
│ │ │ ├── create.md
│ │ │ ├── delete.md
│ │ │ ├── deprecate.md
│ │ │ ├── index.md
│ │ │ ├── list.md
│ │ │ ├── undeprecate.md
│ │ │ └── version
│ │ │ ├── create.md
│ │ │ ├── index.md
│ │ │ └── list.md
│ │ └── webhook
│ │ ├── create.md
│ │ ├── delete.md
│ │ ├── index.md
│ │ └── list.md
│ └── studio-agent.md
├── breaking.md
├── build.md
├── convert.md
├── curl.md
├── export.md
├── format.md
├── generate.md
├── index.md
├── lint.md
├── mod
│ ├── clear-cache.md
│ ├── index.md
│ ├── init.md
│ ├── ls-breaking-rules.md
│ ├── ls-lint-rules.md
│ ├── open.md
│ ├── prune.md
│ └── update.md
├── push.md
└── registry
├── index.md
├── login.md
└── logout.md
15 directories, 69 files
```
</details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
tree structure