Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ git config --global user.name "Your Name"

### Module Generation

If changes modify CLI documentation in documentation/content/en/reference/cli/:
If changes modify CLI documentation in documentation/content/en/documentation/6-references/cli/:

* Run `make generate` to regenerate `internal/docs/generated/`
* Commit generated files
Expand Down Expand Up @@ -274,7 +274,7 @@ If changes modify CLI documentation in documentation/content/en/reference/cli/:

## Implementation Notes for Code Changes

* **CLI Commands**: Add to `commands/` directory; use Cobra; update `documentation/content/en/reference/cli/` for documentation
* **CLI Commands**: Add to `commands/` directory; use Cobra; update `documentation/content/en/documentation/6-references/cli/` for documentation
* **Library Code**: Place in `pkg/` for public APIs; use `internal/` for internal utilities
* **Tests**: Colocate `*_test.go` files with source; use testdata directories for fixtures
* **Generated Code**: Run `make generate` after modifying templates
Expand Down
14 changes: 7 additions & 7 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mdtogo ../documentation/content/en/reference/cli/live ../internal/docs/generated/livedocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/reference/cli/pkg ../internal/docs/generated/pkgdocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/reference/cli/fn ../internal/docs/generated/fndocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/reference/cli/alpha ../internal/docs/generated/alphadocs --license=none --strategy=cmdDocs --recursive=false
//go:generate mdtogo ../documentation/content/en/reference/cli/alpha/sync ../internal/docs/generated/syncdocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/reference/cli/alpha/wasm ../internal/docs/generated/wasmdocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/reference/cli/_index.md ../internal/docs/generated/overview --license=none --strategy=cmdDocs
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/live ../internal/docs/generated/livedocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/pkg ../internal/docs/generated/pkgdocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/fn ../internal/docs/generated/fndocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/alpha ../internal/docs/generated/alphadocs --license=none --strategy=cmdDocs --recursive=false
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/alpha/sync ../internal/docs/generated/syncdocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/alpha/wasm ../internal/docs/generated/wasmdocs --license=none --strategy=cmdDocs --recursive=true
//go:generate mdtogo ../documentation/content/en/documentation/6-references/cli/_index.md ../internal/docs/generated/overview --license=none --strategy=cmdDocs
package main

import (
Expand Down
4 changes: 2 additions & 2 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ The token is only sent to github.com domains.


8. Links to other kpt doc pages should be absolute:
- Correct: `[pkg]: /reference/cli/pkg/get/`
- Incorrect: `[pkg]: ../../../reference/cli/pkg/get`
- Correct: `[pkg]: /documentation/6-references/cli/pkg/get/`
- Incorrect: `[pkg]: ../../../documentation/6-references/cli/pkg/get`

9. Flags must appear after positional args:

Expand Down
3 changes: 2 additions & 1 deletion documentation/assets/scss/_sidebar-left.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
&::after {
display: inline-flex;
content: '\f078';
font-family: 'Font Awesome 5 Free';
font-family: $td-font-awesome-font-name;
font-weight: 900;
}
}
&.active-path {
Expand Down
2 changes: 1 addition & 1 deletion documentation/content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ kpt is an open source project and anyone can [contribute](https://github.com/kpt
# For users

To get familiar with kpt, the best way to start is with the first 4 chapters of the kpt [Book]({{% relref "book" %}}).
Furthermore it is useful to check the [references]({{% relref "reference" %}}) and the catalog of [selected krm functions](https://catalog.kpt.dev).
Furthermore it is useful to check the [references]({{% relref-or "/documentation/6-references" "/reference" %}}) and the catalog of [selected krm functions](https://catalog.kpt.dev).

Use our [public Dosu space](https://app.dosu.dev/b19fb34f-d249-48ae-a3b1-2bd8ec156e41/ask) to ask anything about kpt.

Expand Down
4 changes: 2 additions & 2 deletions documentation/content/en/book/01-getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Follow the [instructions](https://podman.io/getting-started/installation) to ins
If you want to set up a rootless container runtime, then [this](https://rootlesscontaine.rs/) may be a useful resource for you.

Environment variables can be used to control which container runtime to use. More details can be found in the reference
documents for [`kpt fn render`]({{% relref "/reference/cli/fn/render" %}}) and [`kpt fn eval`]({{% relref "/reference/cli/fn/eval" %}}).
documents for [`kpt fn render`]({{% relref "/documentation/6-references/cli/fn/render" %}}) and [`kpt fn eval`]({{% relref "/documentation/6-references/cli/fn/eval" %}}).

### Kubernetes cluster

Expand Down Expand Up @@ -105,7 +105,7 @@ vim deployment.yaml

#### Automating one-time edits with functions

The [`kpt fn`]({{% relref "/reference/cli/fn" %}}) set of commands enables you to execute programs called _kpt functions_. These programs are
The [`kpt fn`]({{% relref "/documentation/6-references/cli/fn" %}}) set of commands enables you to execute programs called _kpt functions_. These programs are
packaged as containers and take YAML files as input, mutate or validate them, and then output YAML.

For example, you can use a function (`ghcr.io/kptdev/krm-functions-catalog/search-replace:latest`) to search for and replace all the occurrences of the `app` key, in the `spec` section of the YAML document (`spec.**.app`), and set the value to `my-nginx`.
Expand Down
Loading
Loading