Skip to content

Commit

Permalink
Merge pull request #50 from axivo/fix/site-structure
Browse files Browse the repository at this point in the history
Implement segmented configuration
  • Loading branch information
fmunteanu authored May 22, 2024
2 parents 46fedcd + b22a690 commit 13b7baa
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 137 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
HUGO_ENVIRONMENT: production
TZ: America/New_York
run: |
hugo --gc --minify -s ./docs
hugo --gc --minify -s ./k3s-cluster -d "$(pwd)/docs/public/k3s-cluster"
hugo --gc --minify -s ./docs --config ../config/hugo.yaml,hugo.yaml
hugo --gc --minify -s ./k3s-cluster --config ../config/hugo.yaml,hugo.yaml
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/public
path: ./public
deploy:
name: Deploy to GitHub Pages
environment:
Expand Down
69 changes: 69 additions & 0 deletions config/hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
build:
buildStats:
disableIDs: true
enable: true
defaultContentLanguage: en
enableInlineShortcodes: true
enableGitInfo: true
enableRobotsTXT: true
hasCJKLanguage: true
languages:
en:
languageName: English
weight: 1
markup:
goldmark:
renderer:
unsafe: true
highlight:
noClasses: false
module:
hugoVersion:
extended: true
min: 0.125.0
imports:
- path: github.com/imfing/hextra
outputs:
home: [HTML]
page: [HTML]
section: [HTML, RSS]
params:
blog:
list:
displayTags: true
comments:
enable: false
giscus:
category: Discussions
categoryId: DIC_kwDOI0Z9Z84Cfhkt
emitMetadata: 0
inputPosition: bottom
lang: en
mapping: pathname
reactionsEnabled: 1
repo: axivo/website
repoId: R_kgDOI0Z9Zw
strict: 0
type: giscus
dateFormat: 'January 2, 2006'
displayUpdatedDate: true
footer:
displayCopyright: true
displayPoweredBy: false
enable: true
width: normal
navbar:
displayTitle: true
displayLogo: true
# logo:
# path: /logo.svg
# dark: /logo.svg
# link: /
# width: 20
# height: 10
# width: wide
page:
width: normal
theme:
default: system
displayToggle: true
67 changes: 1 addition & 66 deletions docs/hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
baseURL: https://axivo.com/
build:
buildStats:
disableIDs: true
enable: true
defaultContentLanguage: en
enableInlineShortcodes: true
enableGitInfo: true
enableRobotsTXT: true
hasCJKLanguage: true
languages:
en:
languageName: English
title: AXIVO
weight: 1
markup:
goldmark:
renderer:
unsafe: true
highlight:
noClasses: false
menu:
main:
- name: Search
Expand All @@ -30,59 +13,11 @@ menu:
icon: github
url: https://github.com/axivo/website
weight: 2
module:
hugoVersion:
extended: true
min: 0.125.0
imports:
- path: github.com/imfing/hextra
outputs:
home: [HTML]
page: [HTML]
section: [HTML, RSS]
params:
blog:
list:
displayTags: true
comments:
enable: false
giscus:
category: Discussions
categoryId: DIC_kwDOI0Z9Z84Cfhkt
emitMetadata: 0
inputPosition: bottom
lang: en
mapping: pathname
reactionsEnabled: 1
repo: axivo/website
repoId: R_kgDOI0Z9Zw
strict: 0
type: giscus
dateFormat: 'January 2, 2006'
description: Imagine. Create.
displayUpdatedDate: true
editURL:
base: https://github.com/axivo/website/edit/main/docs
enable: true
footer:
displayCopyright: true
displayPoweredBy: false
enable: true
width: normal
navbar:
displayTitle: true
displayLogo: true
# logo:
# path: /logo.svg
# dark: /logo.svg
# link: /
# width: 20
# height: 10
# width: wide
page:
width: normal
theme:
default: system
displayToggle: true
variables:
repository: github.com/axivo/website
publishDir: ../public
2 changes: 1 addition & 1 deletion k3s-cluster/content/wiki/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The following hardware was used to deploy the cluster:
## Network

{{< callout type="error" >}}
Prior starting the cluster configuration, the end-user must determine if the [network](/k3s-cluster/tutorials/handbook/network) can support **inbound load balancing**, with [external IP addresses](https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address) assigned from a load balancer [IP pool](https://docs.cilium.io/en/stable/network/lb-ipam). Some retail routers do not offer this capability.
Prior starting the cluster configuration, the end-user must determine if the [network](/k3s-cluster/tutorials/handbook/network) configuration can support **inbound load balancing**, with [external IP addresses](https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address) assigned from a load balancer [IP pool](https://docs.cilium.io/en/stable/network/lb-ipam). Some retail routers do not offer this capability.
{{< /callout >}}

## Help
Expand Down
69 changes: 2 additions & 67 deletions k3s-cluster/hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
baseURL: https://axivo.com/k3s-cluster/
build:
buildStats:
disableIDs: true
enable: true
defaultContentLanguage: en
enableInlineShortcodes: true
enableGitInfo: true
enableRobotsTXT: true
hasCJKLanguage: true
languages:
en:
languageName: English
title: 'AXIVO: K3s Cluster'
weight: 1
markup:
goldmark:
renderer:
unsafe: true
highlight:
noClasses: false
menu:
main:
- name: Documentation
Expand Down Expand Up @@ -57,62 +40,14 @@ menu:
name: "🌐 Issues ↗"
url: "https://github.com/axivo/k3s-cluster/issues"
weight: 3
module:
hugoVersion:
extended: true
min: 0.125.0
imports:
- path: github.com/imfing/hextra
outputs:
home: [HTML]
page: [HTML]
section: [HTML, RSS]
params:
blog:
list:
displayTags: true
comments:
enable: false
giscus:
category: Discussions
categoryId: DIC_kwDOI0Z9Z84Cfhkt
emitMetadata: 0
inputPosition: bottom
lang: en
mapping: pathname
reactionsEnabled: 1
repo: axivo/website
repoId: R_kgDOI0Z9Zw
strict: 0
type: giscus
dateFormat: 'January 2, 2006'
description: K3s cluster deployed with Ansible
displayUpdatedDate: true
description: High Availability K3s cluster deployed with Ansible
editURL:
base: https://github.com/axivo/website/edit/main/k3s-cluster/content
enable: true
footer:
displayCopyright: true
displayPoweredBy: false
enable: true
width: normal
navbar:
displayTitle: true
displayLogo: true
# logo:
# path: /logo.svg
# dark: /logo.svg
# link: /
# width: 20
# height: 10
# width: wide
page:
width: normal
theme:
default: system
displayToggle: true
variables:
os:
previous_version: 22.04
version: 24.04
repository: github.com/axivo/k3s-cluster
publishDir: ../public/k3s-cluster

0 comments on commit 13b7baa

Please sign in to comment.