Skip to content

Commit

Permalink
[Misc] website: update to latest version
Browse files Browse the repository at this point in the history
update content and dependencies
  • Loading branch information
Pavan-SAP committed Dec 27, 2024
1 parent 99f7129 commit be32e76
Show file tree
Hide file tree
Showing 9 changed files with 1,800 additions and 266 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,32 @@ defaults:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: website
submodules: recursive
fetch-depth: 0

- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version-file: 'go.mod'

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.115.2"
extended: true

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: "22.x"

- name: Update dependencies
run: |
Expand All @@ -61,21 +60,21 @@ jobs:
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: public

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules/
public/
resources/
.hugo_build.lock
1 change: 1 addition & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'td/code-dark';
4 changes: 3 additions & 1 deletion content/en/docs/installation/kyma-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ description: >
How to install CAP Operator in a Kyma cluster
---

> The CAP Operator module is currently available only for SAP internal Kyma clusters.
{{% alert title="Warning" color="warning" %}}
The CAP Operator module is currently available only on SAP Internal Kyma clusters. To install it elsewhere, follow the guide [here](../local-cluster/)
{{% /alert %}}

The CAP Operator is available in both `fast` and `regular` release channels.

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/sap/cap-operator/website

go 1.21
go 1.23.4

require github.com/google/docsy v0.7.1 // indirect
require github.com/google/docsy v0.11.0 // indirect
9 changes: 4 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY=
github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc=
github.com/google/docsy/dependencies v0.7.1/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.11.0 h1:QnV40cc28QwS++kP9qINtrIv4hlASruhC/K3FqkHAmM=
github.com/google/docsy v0.11.0/go.mod h1:hGGW0OjNuG5ZbH5JRtALY3yvN8ybbEP/v2iaK4bwOUI=
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
31 changes: 17 additions & 14 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ languages:

markup:
goldmark:
parser:
attribute:
block: true
renderer:
unsafe: true
highlight:
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
style: "nord"
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
guessSyntax: true
codeFences: true
noClasses: false # Required for dark-mode

# Everything below this are Site Params

Expand All @@ -76,7 +75,7 @@ params:
# set taxonomyCloud = [] to hide taxonomy clouds
taxonomyCloud: ["tags", "categories"]

copyright: "SAP"
copyright: SAP SE or an SAP affiliate company
# privacy_policy = "https://policies.google.com/privacy"

# Menu title if your navbar has a versions selector to access old versions of your site.
Expand All @@ -103,24 +102,24 @@ params:
github_project_repo: "https://github.com/sap/cap-operator-lifecycle"

# Specify a value here if your content directory is not in your repo's root directory
github_subdir: "website"
#github_subdir: "website"

# Uncomment this if you have a newer GitHub repo with "main" as the default branch,
# or specify a new value if you want to reference another branch in your GitHub links
github_branch: "main"

# Enable Algolia DocSearch
algolia_docsearch: false
github_branch: "website"

# Enable Lunr.js offline search
offlineSearch: true

prism_syntax_highlighting: false

# User interface configuration
ui:
showLightDarkModeMenu: true
# Set to true to disable breadcrumb navigation.
breadcrumb_disable: false
# Set to true to disable the About link in the site footer
footer_about_disable: false
# Set to false to disable the About link in the site footer
footer_about_enable: true
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top navbar
navbar_logo: false
# Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage.
Expand All @@ -129,6 +128,7 @@ params:
sidebar_menu_compact: true
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
sidebar_search_disable: true
sidebar_menu_foldable: true

# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
Expand Down Expand Up @@ -162,6 +162,9 @@ params:

# Add docsy as hugo module
module:
hugoVersion:
extended: true
min: 0.135.0
imports:
- path: "github.com/google/docsy"
- path: "github.com/google/docsy/dependencies"
disable: false
Loading

0 comments on commit be32e76

Please sign in to comment.