Integrate homepage with wiki
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
## Home
|
---
|
||||||
|
hide:
|
||||||
|
- navigation # Hide navigation
|
||||||
|
- toc # Hide table of contents
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
TrueCharts is the community that maintains TrueCharts.
|
TrueCharts is the community that maintains TrueCharts.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: "Wiki: Create Docs"
|
name: "Website: Create Docs"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: 'master'
|
path: 'master'
|
||||||
token: ${{ secrets.RENOVPUSH }}
|
token: ${{ secrets.RENOVPUSH }}
|
||||||
- name: Checkout-Wiki
|
- name: Checkout-Website
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: 'truecharts/wiki'
|
repository: 'truecharts/website'
|
||||||
path: 'wiki'
|
path: 'website'
|
||||||
token: ${{ secrets.RENOVPUSH }}
|
token: ${{ secrets.RENOVPUSH }}
|
||||||
|
|
||||||
|
|
||||||
@@ -34,27 +34,27 @@ jobs:
|
|||||||
.tools/gen-helm-docs.sh
|
.tools/gen-helm-docs.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Clean-Wiki
|
- name: Clean-Website
|
||||||
run: |
|
run: |
|
||||||
rm -Rf wiki/content
|
rm -Rf website/content
|
||||||
mkdir -p wiki/content
|
mkdir -p website/content
|
||||||
cp -f wiki/CNAME wiki/content/CNAME
|
cp -f website/CNAME website/content/CNAME
|
||||||
|
|
||||||
- name: Create general wiki
|
- name: Create general website
|
||||||
run: |
|
run: |
|
||||||
cd master
|
cd master
|
||||||
cp -Rf .github/docs/* ../wiki/content/
|
cp -Rf .github/docs/* ../website/content/
|
||||||
cp .github/README.md ../wiki/content/about/index.md || echo "readme copy failed, continuing..."
|
cp .github/README.md ../website/content/about/index.md || echo "readme copy failed, continuing..."
|
||||||
cp .github/CODE_OF_CONDUCT ../wiki/content/about/code_of_conduct.md || echo "CODE_OF_CONDUCT copy failed, continuing..."
|
cp .github/CODE_OF_CONDUCT ../website/content/about/code_of_conduct.md || echo "CODE_OF_CONDUCT copy failed, continuing..."
|
||||||
cp .github/CONTRIBUTING ../wiki/content/development/contributing.md || echo "CONTRIBUTING copy failed, continuing..."
|
cp .github/CONTRIBUTING ../website/content/development/contributing.md || echo "CONTRIBUTING copy failed, continuing..."
|
||||||
cp LICENSE ../wiki/content/about/LICENSE.md || echo "license copy failed, continuing..."
|
cp LICENSE ../website/content/about/LICENSE.md || echo "license copy failed, continuing..."
|
||||||
sed -i '1s/^/# License<br>\n\n/' ../wiki/content/about/LICENSE.md
|
sed -i '1s/^/# License<br>\n\n/' ../website/content/about/LICENSE.md
|
||||||
cp NOTICE ../wiki/content/about/NOTICE.md || echo "license copy failed, continuing..."
|
cp NOTICE ../website/content/about/NOTICE.md || echo "license copy failed, continuing..."
|
||||||
sed -i '1s/^/# NOTICE<br>\n\n/' ../wiki/content/about/NOTICE.md
|
sed -i '1s/^/# NOTICE<br>\n\n/' ../website/content/about/NOTICE.md
|
||||||
ls ../wiki/content/
|
ls ../website/content/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Create apps wiki
|
- name: Create apps website
|
||||||
run: |
|
run: |
|
||||||
cd master
|
cd master
|
||||||
for chart in charts/*; do
|
for chart in charts/*; do
|
||||||
@@ -63,25 +63,25 @@ jobs:
|
|||||||
chartname=$(basename ${chart})
|
chartname=$(basename ${chart})
|
||||||
echo "Processing: ${chart} - folder: ${maxfolderversion}"
|
echo "Processing: ${chart} - folder: ${maxfolderversion}"
|
||||||
|
|
||||||
mkdir -p ../wiki/content/apps/${chartname} || echo "wiki path already exists, continuing..."
|
mkdir -p ../website/content/apps/${chartname} || echo "website path already exists, continuing..."
|
||||||
if [ -d "${chart}/${maxfolderversion}/docs" ]; then
|
if [ -d "${chart}/${maxfolderversion}/docs" ]; then
|
||||||
cp -f ${chart}/${maxfolderversion}/docs/* ../wiki/content/apps/${chartname}/
|
cp -f ${chart}/${maxfolderversion}/docs/* ../website/content/apps/${chartname}/
|
||||||
fi
|
fi
|
||||||
cp ${chart}/${maxfolderversion}/README.md ../wiki/content/apps/${chartname}/index.md || echo "readme copy failed, continuing..."
|
cp ${chart}/${maxfolderversion}/README.md ../website/content/apps/${chartname}/index.md || echo "readme copy failed, continuing..."
|
||||||
cp ${chart}/${maxfolderversion}/LICENSE ../wiki/content/apps/${chartname}/LICENSE.md || echo "license copy failed, continuing..."
|
cp ${chart}/${maxfolderversion}/LICENSE ../website/content/apps/${chartname}/LICENSE.md || echo "license copy failed, continuing..."
|
||||||
sed -i '1s/^/# License<br>\n\n/' ../wiki/content/apps/${chartname}/LICENSE.md || echo "license edit failed, continuing..."
|
sed -i '1s/^/# License<br>\n\n/' ../website/content/apps/${chartname}/LICENSE.md || echo "license edit failed, continuing..."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
ls ../wiki/content/apps/
|
ls ../website/content/apps/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Commit and push updated wiki
|
- name: Commit and push updated website
|
||||||
run: |
|
run: |
|
||||||
cd wiki
|
cd website
|
||||||
git config user.name "$GITHUB_ACTOR"
|
git config user.name "$GITHUB_ACTOR"
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
git add --all
|
git add --all
|
||||||
git commit -sm "Publish general wiki updates" || exit 0
|
git commit -sm "Publish general website updates" || exit 0
|
||||||
git push
|
git push
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user