Skip to content

Commit 279c134

Browse files
authored
Hugo configuration fix (#23)
* Multiline Java Springboot stack trace Log Source and Parser * test * test * test * new update * Update docs.yml * Create hugo.yml * hugo test * hugo version * hugo url * hugo build * remove trailing / * make theme * update baseURL * theme menu update * page test * update content k8s * test the config change * public folder cleanup * baseURL update * rebuild hugo * udpate build baseURL * revert hugo baseURL
1 parent aeed5bd commit 279c134

File tree

319 files changed

+7867
-789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

319 files changed

+7867
-789
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,34 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: Publish Docs
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
7-
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
11-
12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13-
permissions:
14-
contents: read
15-
pages: write
16-
id-token: write
17-
18-
# Allow one concurrent deployment
19-
concurrency:
20-
group: "pages"
21-
cancel-in-progress: true
22-
5+
branches:
6+
- master
7+
- docs_update
8+
paths:
9+
- 'docs/**'
2310
jobs:
24-
# Single deploy job since we're just deploying
25-
deploy:
26-
environment:
27-
name: github-pages
28-
url: ${{ steps.deployment.outputs.page_url }}
11+
build-and-deploy:
2912
runs-on: ubuntu-latest
3013
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
33-
- name: Setup Pages
34-
uses: actions/configure-pages@v3
35-
- name: Upload artifact
36-
uses: actions/upload-pages-artifact@v1
37-
with:
38-
# Upload entire repository
39-
path: './docs/public'
40-
- name: Deploy to GitHub Pages
41-
id: deployment
42-
uses: actions/deploy-pages@v1
43-
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Setup Node
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '14'
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v2
22+
with:
23+
hugo-version: '0.114.1'
24+
extended: true
25+
- name: Build Hugo Docs
26+
run: |
27+
cd docs
28+
make build
29+
- name: Publish to Github Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_branch: gh-pages
34+
publish_dir: docs/public

.github/workflows/hugo.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.114.1
35+
steps:
36+
- name: Install Hugo CLI
37+
run: |
38+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+
- name: Install Dart Sass Embedded
41+
run: sudo snap install dart-sass-embedded
42+
- name: Checkout
43+
uses: actions/checkout@v3
44+
with:
45+
submodules: recursive
46+
- name: Setup Pages
47+
id: pages
48+
uses: actions/configure-pages@v3
49+
- name: Install Node.js dependencies
50+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51+
- name: Build with Hugo
52+
env:
53+
# For maximum backward compatibility with Hugo modules
54+
HUGO_ENVIRONMENT: production
55+
HUGO_ENV: production
56+
run: |
57+
cd docs
58+
make theme
59+
hugo \
60+
--minify \
61+
--baseURL "${{ steps.pages.outputs.base_url }}"
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v1
64+
with:
65+
path: docs/public
66+
67+
# Deployment job
68+
deploy:
69+
environment:
70+
name: github-pages
71+
url: ${{ steps.deployment.outputs.page_url }}
72+
runs-on: ubuntu-latest
73+
needs: build
74+
steps:
75+
- name: Deploy to GitHub Pages
76+
id: deployment
77+
uses: actions/deploy-pages@v2

docs/content/E-Business-Suite/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "E Business Suite"
33
date: 2023-01-09T13:45:21-08:00
44
draft: false
5+
url: /E-Business-Suite
56
#type: E-Business-Suite
67
---
78

docs/content/k8s/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Kubernetes"
33
date: 2020-03-09T13:33:46-06:00
44
draft: false
55
weight: 200
6+
url: /k8s
67
showChildren: true
78
orderedChildren: true
89
tags:

docs/config.toml renamed to docs/hugo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Copyright (c) 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

4-
baseURL = ""
4+
baseURL = "https://jujufugh.github.io"
55
languageCode = "en-us"
66
title = "Oracle Observability Dashboards"
77
theme = "redwood"
88
relativeURLs = true
99

1010
[params]
11-
editURL = "https://github.com/oracle-quickstart/oci-o11y-solutions/tree/master/docs/content/"
11+
editURL = "https://github.com/jujufugh/oci-o11y-solutions/tree/master/docs/content/"
1212
showVisitedLinks = false
1313
author = "Oracle Developers"
1414
organization = "Oracle"
1515
description = "Oracle Observability Dashboards"
1616
keywords = ["Kubernetes", "OCI", "OKE", "Microservices"]
17-
ghrepo = "https://github.com/oracle-quickstart/oci-o11y-solutions"
17+
ghrepo = "https://github.com/jujufugh/oci-o11y-solutions"
1818
branch = "master"
1919
logo = "images/Oracle-logo.jpeg"
2020

@@ -55,13 +55,13 @@ weight = 30
5555
[[menu.shortcuts]]
5656
name = "GitHub Source"
5757
pre = "<span uk-icon='icon: github; ratio: 1.25'></span>"
58-
url = "https://github.com/oracle-quickstart/oci-o11y-solutions"
58+
url = "https://github.com/jujufugh/oci-o11y-solutions"
5959
weight = 40
6060

6161
[[menu.shortcuts]]
6262
name = "Report Issue"
6363
pre = "<span uk-icon='icon: warning; ratio: 1.25'></span>"
64-
url = "https://github.com/oracle-quickstart/oci-o11y-solutions/issues"
64+
url = "https://github.com/jujufugh/oci-o11y-solutions/issues"
6565
weight = 50
6666

6767
[outputs]

0 commit comments

Comments
 (0)