Skip to content

Commit 35d3095

Browse files
committed
Create Hugo documentation directory
1 parent 4524fe8 commit 35d3095

File tree

185 files changed

+5594
-0
lines changed

Some content is hidden

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

185 files changed

+5594
-0
lines changed

Diff for: .github/workflows/publish-github-pages.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Copyright (c) 2021, Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
#
4+
# Description
5+
# Use Hugo to build static site and publish to gh-pages
6+
#
7+
name: "PublishGitHubPages"
8+
9+
on:
10+
push:
11+
branches: [ main ]
12+
schedule:
13+
- cron: '15 3 * * 1'
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
jobs:
20+
publish:
21+
name: Publish
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout main
26+
uses: actions/checkout@v2.3.4
27+
with:
28+
ref: main
29+
fetch-depth: 32
30+
path: main
31+
32+
- name: Checkout gh-pages
33+
uses: actions/checkout@v2.3.4
34+
with:
35+
ref: gh-pages
36+
path: gh-pages
37+
token: ${{ secrets.PUBLISH_SECRET }}
38+
39+
- name: Verify changes to documentation present
40+
id: change-check
41+
run: |
42+
cd $GITHUB_WORKSPACE/main
43+
X=`git diff HEAD~1 --name-only | { grep "^documentation" || test $? = 1; } | wc -l`
44+
if [ $X == "0" ]; then
45+
echo 'No changes to the documenation'
46+
else
47+
echo '::set-output name=DOCUMENTATION_CHANGED::true'
48+
fi
49+
50+
- name: Build and publish site
51+
if: ${{ steps.change-check.outputs.DOCUMENTATION_CHANGED == 'true' }}
52+
run: |
53+
curl -fL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.82.0/hugo_0.82.0_Linux-64bit.tar.gz"
54+
tar -xf hugo.tar.gz
55+
export PATH="$PWD:$PATH"
56+
mkdir $GITHUB_WORKSPACE/WORK
57+
cd $GITHUB_WORKSPACE/main/documentation
58+
./publish.sh -o $GITHUB_WORKSPACE/WORK
59+
cd $GITHUB_WORKSPACE/gh-pages
60+
rm -Rf *
61+
cp -R $GITHUB_WORKSPACE/WORK/* .
62+
git config --global user.name "github-actions[bot]"
63+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
64+
git add --all
65+
git commit -m "Documentation update from publish GitHub Action"
66+
git push origin gh-pages

Diff for: documentation/1.9/.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"git.ignoreLimitWarning": true
3+
}

Diff for: documentation/1.9/archetypes/default.md

+6

Diff for: documentation/1.9/config.toml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# analytics
2+
googleAnalytics = "UA-129126578-2"
3+
4+
baseURL = "/weblogic-kubernetes-operator/"
5+
languageCode = "en-us"
6+
title = "WebLogic Kubernetes Operator"
7+
8+
# Change the default theme to be use when building the site with Hugo
9+
theme = "hugo-theme-learn"
10+
11+
publishDir = "docs"
12+
13+
# For search functionality
14+
[outputs]
15+
home = [ "HTML", "RSS", "JSON"]
16+
17+
[params]
18+
# disable the copy to clipboard links
19+
disableInlineCopyToClipBoard = true

Diff for: documentation/1.9/content/_index.md

+47

Diff for: documentation/1.9/layouts/shortcodes/img.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<img src="{{ .Get 1 | absURL }}" alt="{{ .Get 0 }}">

Diff for: documentation/1.9/layouts/shortcodes/rawhtml.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- raw html -->
2+
{{.Inner}}

Diff for: documentation/1.9/layouts/shortcodes/readfile.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{ $toRead := .Get "file" }}
2+
{{ readFile $toRead | markdownify }}

Diff for: documentation/1.9/runlocal.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Copyright (c) 2019, 2021, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
6+
# 1313 is the hugo default port
7+
port=${1:-1313}
8+
9+
hugo server -b http://localhost:$port/weblogic-kubernetes-operator -D -p $port

Diff for: documentation/1.9/runpublic.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Copyright (c) 2019, 2021, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
6+
# 1313 is the hugo default port
7+
port=${1:-1313}
8+
9+
hugo server -b http://$(hostname).$(dnsdomainname):$port/weblogic-kubernetes-operator -D --bind=$(hostname).$(dnsdomainname) -p $port
194 KB
66.1 KB
52.9 KB

Diff for: documentation/1.9/static/images/docker-memory.png

162 KB
44.7 KB

Diff for: documentation/1.9/static/images/flowchart.png

71.2 KB

Diff for: documentation/1.9/static/images/haproxy-stats.png

375 KB
42.7 KB

Diff for: documentation/1.9/static/images/image-pull.png

50 KB
76.1 KB

Diff for: documentation/1.9/static/images/jaeger.png

86.7 KB

Diff for: documentation/1.9/static/images/kiali.png

114 KB

Diff for: documentation/1.9/static/images/kibana.png

88.2 KB

Diff for: documentation/1.9/static/images/layers.png

10.6 KB

Diff for: documentation/1.9/static/images/logo.png

22.2 KB

Diff for: documentation/1.9/static/images/more-layers.png

17.2 KB

Diff for: documentation/1.9/static/images/n-1.png

3.81 KB

Diff for: documentation/1.9/static/images/no-layers.png

14.4 KB

Diff for: documentation/1.9/static/images/patch-download.png

228 KB

Diff for: documentation/1.9/static/images/primordial.png

8.7 KB

Diff for: documentation/1.9/static/images/rebuild.png

28.5 KB

Diff for: documentation/1.9/static/images/slack.jpeg

6.6 KB

Diff for: documentation/1.9/static/images/updates.png

26.2 KB
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
trim_trailing_whitespace = true
11+
12+
[*.js]
13+
insert_final_newline = true
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

Diff for: documentation/1.9/themes/hugo-theme-learn/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
public/
3+
exampleSite/public
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
dataSource: "prs"
3+
prefix: "v"
4+
onlyMilestones: false
5+
changelogFilename: "CHANGELOG.md"
6+
includeMessages: "all"
7+
ignoreIssuesWith:
8+
- "support"
9+
ignoreLabels:
10+
- "duplicate"
11+
- "invalid"
12+
- "wontfix"
13+
groupBy:
14+
New features:
15+
- "feature"
16+
Bug Fixes:
17+
- "bug"
18+
Enhancements:
19+
- "enhancement"
20+
Internationalisation:
21+
- "i18n"
22+
Theme Meta:
23+
- "meta"
24+
Uncategorised:
25+
- "closed"

0 commit comments

Comments
 (0)