Skip to content

Commit

Permalink
docs: Migrate documentation to the kgateway.dev repository (#10576)
Browse files Browse the repository at this point in the history
Signed-off-by: timflannagan <timflannagan@gmail.com>
  • Loading branch information
timflannagan authored Feb 5, 2025
1 parent 6a2f61d commit f9fba2c
Show file tree
Hide file tree
Showing 824 changed files with 28 additions and 100,713 deletions.
5 changes: 0 additions & 5 deletions .github/CODEOWNERS

This file was deleted.

7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -747,11 +747,12 @@ scan-version: ## Scan all Gloo images with the tag matching {VERSION} env variab
#----------------------------------------------------------------------------------
# Third Party License Management
#----------------------------------------------------------------------------------

.PHONY: update-licenses
update-licenses:
update-licenses: ## Update the licenses for the project
GO111MODULE=on go run hack/utils/oss_compliance/oss_compliance.go osagen -c "GNU General Public License v2.0,GNU General Public License v3.0,GNU Lesser General Public License v2.1,GNU Lesser General Public License v3.0,GNU Affero General Public License v3.0"
GO111MODULE=on go run hack/utils/oss_compliance/oss_compliance.go osagen -s "Mozilla Public License 2.0,GNU General Public License v2.0,GNU General Public License v3.0,GNU Lesser General Public License v2.1,GNU Lesser General Public License v3.0,GNU Affero General Public License v3.0"> docs/content/static/content/osa_provided.md
GO111MODULE=on go run hack/utils/oss_compliance/oss_compliance.go osagen -i "Mozilla Public License 2.0"> docs/content/static/content/osa_included.md
GO111MODULE=on go run hack/utils/oss_compliance/oss_compliance.go osagen -s "Mozilla Public License 2.0,GNU General Public License v2.0,GNU General Public License v3.0,GNU Lesser General Public License v2.1,GNU Lesser General Public License v3.0,GNU Affero General Public License v3.0"> hack/utils/oss_compliance/osa_provided.md
GO111MODULE=on go run hack/utils/oss_compliance/oss_compliance.go osagen -i "Mozilla Public License 2.0"> hack/utils/oss_compliance/osa_included.md

#----------------------------------------------------------------------------------
# Printing makefile variables utility
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h1 align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/content/img/kgateway/logo-dark.svg" alt="kgateway" width="400">
<source media="(prefers-color-scheme: light)" srcset="docs/content/img/kgateway/logo.svg" alt="kgateway" width="400">
<img alt="kgateway" src="docs/content/img/kgateway/logo.svg">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kgateway-dev/kgateway.dev/main/static/logo-dark.svg" alt="kgateway" width="400">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/kgateway-dev/kgateway.dev/main/static/logo.svg" alt="kgateway" width="400">
<img alt="kgateway" src="https://raw.githubusercontent.com/kgateway-dev/kgateway.dev/main/static/logo.svg">
</picture>
<br/>
An Envoy-Powered, Kubernetes-Native API Gateway
Expand All @@ -19,7 +19,7 @@ Please see [the plan](https://github.com/kgateway-dev/kgateway/issues/10363) for
&nbsp; [**Slack invite**](https://slack.cncf.io/) &nbsp; |
&nbsp; [**Slack channel**](https://cloud-native.slack.com/archives/C080D3PJMS4)

<BR><center><img align="center" src="docs/content/img/kgateway/component-architecture.svg" alt="kgateway Architecture" width="700"></center>
<BR><center><img align="center" src="https://raw.githubusercontent.com/kgateway-dev/kgateway.dev/main/assets/img/component-architecture.svg" alt="kgateway Architecture" width="700"></center>

### Using kgateway
- **Kubernetes Gateway API**: Kgateway is a feature-rich ingress controller, built on top of the Envoy Proxy and fully conformant with the Kubernetes Gateway API.
Expand Down
File renamed without changes.
16 changes: 0 additions & 16 deletions docs/.gitignore

This file was deleted.

86 changes: 0 additions & 86 deletions docs/Makefile

This file was deleted.

56 changes: 15 additions & 41 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,24 @@
# Gloo Gateway (Gloo Edge API) docs
# Documentation Has Moved

> [!IMPORTANT]
> This information is relevant only for the Gloo Gateway (Gloo Edge API) docs that are built from this `solo-io/gloo/docs` GitHub repository and rendered on the [docs.solo.io/gloo-edge](https://docs.solo.io/gloo-edge/latest/) website.
> For the documentation for Gloo Gateway (Kubernetes Gateway API), see the `solo-io/docs` GitHub repository or the [docs.solo.io/gateway](https://docs.solo.io/gateway/latest/) website.
> [!NOTE]
> The documentation for this project has moved! You can now find it in two locations:
## Deploying to a test site
* **Documentation Website**: [https://kgateway.dev/](https://kgateway.dev/)
* **Documentation Source**: [github.com/kgateway-dev/kgateway.dev](https://github.com/kgateway-dev/kgateway.dev/)

```
make serve-site
```
## Legacy Content

## Deploying to a versioned test site
The content in this directory is no longer maintained. Please visit the new documentation locations listed above for the most up-to-date information.

NOTE: this process should only be done from main
For historical context, this directory previously contained:

```
make build-docs
firebase hosting:channel:deploy $(git describe --tags) --project=solo-corp --config=docs/ci/firebase.json
```
* Product documentation
* Build and deployment instructions
* Firebase hosting configuration

## Building the docs
## Questions or Issues?

Building the docs is now done directly from the main branch, and occurs each time main is updated.
The docs are built using the `build-docs.sh` script. The script will build all relevant tags/branches of gloo
and then package them in a way which they can be deployed to firebase. The versions used are determined by the
`active_versions.json` file.
If you have any questions about the documentation, please:

`active_versions.json` contains 3 fields.
1. "latest" is the name of the tag/branch which should be the default when visiting the docs. "latest" must
be present in "versions"
2. "versions" is the list of tags/branches which are considered up-to-date
3. "oldVersions" is the list of supported tags/branches which are behind latest.

`build-docs.sh` clones gloo into a subdir, checks the repo out at each "version", and copies the [content](content)
directory to a temporary location. The main branch is then checked out, and each "version" of the docs are built by
replacing the main's content directory with content previously stored for that "version". The built docs are then
moved into `docs/ci/public/edge/<tag>`. Once each version has been built, the whole folder can
be deployed to firebase using the following command:

`firebase deploy --only hosting --project=solo-corp --config=ci/firebase.json`

Building the docs from main allows us to make changes to the way the docs are packaged and published without
needing to backport the changes each time. This allows the build, and styles to remain consistent.


# Shortcode/Hugo tips
- Shortcodes cannot be embedded in other shortcodes
- This means the "readfile" shortcode does not interpolate shortcodes embedded within the file
- "Nesting" is different and allowed: you can "nest" short codes in the same manner that you can nest html tags
1. Visit the new documentation website
2. Open an issue in the [kgateway-dev/kgateway.dev](https://github.com/kgateway-dev/kgateway.dev/) repository
12 changes: 0 additions & 12 deletions docs/active_versions.json

This file was deleted.

Loading

0 comments on commit f9fba2c

Please sign in to comment.